Skip to content

Commit c05273d

Browse files
reorganize "round-trip" tests into integration tests
1 parent 7662a5e commit c05273d

File tree

17 files changed

+331
-36
lines changed

17 files changed

+331
-36
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

test/round_trip/json_reserialized/operator_precedence.json renamed to test/integration/json_reserialized/operators.json

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"__is_block__": true,
3+
"resource": [
4+
{
5+
"aws_instance": {
6+
"web": {
7+
"__is_block__": true,
8+
"ami": "\"ami-12345\"",
9+
"instance_type": "\"t2.micro\"",
10+
"count": 2
11+
}
12+
}
13+
},
14+
{
15+
"aws_s3_bucket": {
16+
"data": {
17+
"__is_block__": true,
18+
"bucket": "\"my-bucket\"",
19+
"acl": "\"private\""
20+
}
21+
}
22+
},
23+
{
24+
"aws_instance": {
25+
"nested": {
26+
"__is_block__": true,
27+
"ami": "\"ami-99999\"",
28+
"provisioner": [
29+
{
30+
"local-exec": {
31+
"__is_block__": true,
32+
"command": "\"echo hello\""
33+
}
34+
},
35+
{
36+
"remote-exec": {
37+
"__is_block__": true,
38+
"inline": "[\"puppet apply\"]"
39+
}
40+
}
41+
]
42+
}
43+
}
44+
}
45+
],
46+
"variable": [
47+
{
48+
"instance_type": {
49+
"__is_block__": true,
50+
"default": "\"t2.micro\"",
51+
"description": "\"The instance type\""
52+
}
53+
}
54+
],
55+
"locals": [
56+
{
57+
"__is_block__": true,
58+
"port": 8080,
59+
"enabled": true,
60+
"name": "\"my-app\""
61+
}
62+
]
63+
}

0 commit comments

Comments
 (0)