hcl/test-fixtures
Mitchell Hashimoto b699557f16 Decode into proper arrays of things, add many test cases
/cc @armon - This changes how Consul has to define its structure. Ping
me tomorrow to learn more, but going to leave it here for reference too:

The Consul case (there is a test case) never worked even with go-libucl,
because there is an ambiguity of whether you want the inner children or
the array of outer elements (the slice in the Policy struct).

I've added a new modifier you can specify with a tag called "expand"
which will tell hcl to expand the value to its children for decoding.
You can see me use it in the test case which verifies that the Consul
ACLs parse.
2014-08-17 23:50:44 -07:00
..
basic.hcl Start the decoder 2014-08-02 15:44:45 -07:00
basic.json Add tests for equality in JSON and HCL 2014-08-02 20:48:36 -07:00
decode_policy.hcl Fix consul test case 2014-08-08 15:16:42 -07:00
decode_policy.json decode JSON equally 2014-08-08 15:58:34 -07:00
decode_tf_variable.hcl Failing test 2014-08-11 14:19:35 -07:00
decode_tf_variable.json Failing test 2014-08-11 14:19:35 -07:00
empty.hcl Decode into proper arrays of things, add many test cases 2014-08-17 23:50:44 -07:00
flat.hcl decoder can decode into structures 2014-08-03 14:06:18 -07:00
structure2.hcl structure2 test 2014-08-02 22:18:39 -07:00
structure2.json Decode into proper arrays of things, add many test cases 2014-08-17 23:50:44 -07:00
structure_flat.json Decoder expands exact objects into lists 2014-08-02 21:29:59 -07:00
structure_flatmap.hcl Decode into flat structures for objects 2014-08-03 13:09:08 -07:00
structure_multi.hcl unix line endings 2014-08-02 22:05:36 -07:00
structure_multi.json Tests pass. 2014-08-11 20:58:20 -07:00
structure.hcl Passing tests 2014-08-02 20:40:41 -07:00
structure.json Add tests for equality in JSON and HCL 2014-08-02 20:48:36 -07:00
terraform_heroku.hcl Decode into proper arrays of things, add many test cases 2014-08-17 23:50:44 -07:00
terraform_heroku.json Decode into proper arrays of things, add many test cases 2014-08-17 23:50:44 -07:00