aws-must-templates 0.1.6 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +97 -44
- data/lib/tasks/cross-ref.rb +6 -0
- data/lib/tasks/suite.rake +150 -48
- data/lib/test-suites/test_suites.rb +13 -13
- data/mustache/commonDependsOn.mustache +24 -2
- data/mustache/commonRef.mustache +22 -0
- data/mustache/commonValue.mustache +1 -1
- data/mustache/commonXGressRule.mustache +31 -0
- data/mustache/mapping.mustache +3 -1
- data/mustache/mappingAmazonVpcNat.mustache +38 -0
- data/mustache/resource.mustache +4 -0
- data/mustache/resourceInstance.mustache +26 -7
- data/mustache/resourceInternetGateway.mustache +30 -16
- data/mustache/resourceRoute.mustache +50 -0
- data/mustache/resourceRouteTable.mustache +67 -0
- data/mustache/resourceSecurityGroup.mustache +13 -12
- data/mustache/resourceSubnet.mustache +20 -8
- data/mustache/root.mustache +26 -11
- data/spec/aws-must-templates/AllwaysOk/AllwaysOk_spec.rb +35 -0
- data/spec/aws-must-templates/AwsCommandLineInterfaceInstalled/AwsCommandLineInterfaceInstalled_spec.rb +19 -1
- data/spec/aws-must-templates/AwsMustTestRunnerProperties/AwsMustTestRunnerProperties_spec.rb +16 -1
- data/spec/aws-must-templates/CloudFormationHelperScriptsInstalled/CloudFormationHelperScriptsInstalled_spec.rb +17 -0
- data/spec/aws-must-templates/Ec2InstanceType/Ec2InstanceType_spec.rb +47 -0
- data/spec/aws-must-templates/Ec2PrivateIp/Ec2PrivateIp_spec.rb +49 -0
- data/spec/aws-must-templates/Ec2PublicIp/Ec2PublicIp_spec.rb +68 -0
- data/spec/aws-must-templates/Ec2Routes/Ec2Routes_spec.rb +69 -0
- data/spec/aws-must-templates/Ec2SecurityGroups/Ec2SecurityGroups_spec.rb +151 -0
- data/spec/aws-must-templates/Ec2StatusNormal/Ec2StatusNormal_spec.rb +55 -0
- data/spec/aws-must-templates/NetworkCanPing/NetworkCanPing_spec.rb +36 -0
- data/spec/aws-must-templates/ParameterTest/ParameterTest_spec.rb +17 -1
- data/spec/aws-must-templates/RespondsToPing/RespondsToPing_spec.rb +46 -0
- data/spec/aws-must-templates/S3NoAccess/S3NoAccess_spec.rb +17 -3
- data/spec/aws-must-templates/S3ReadAccessAllowed/S3ReadAccessAllowed_spec.rb +18 -1
- data/spec/aws-must-templates/Stack/Stack_spec.rb +28 -1
- data/spec/aws-must-templates/ValidOSVersion/ValidOSVersion_spec.rb +16 -1
- data/spec/aws-must-templates/Vpc/vpc_spec.rb +51 -0
- data/spec/aws-must-templates/table_of_content.mustache +67 -0
- data/spec/lib/test_suites_spec.rb +101 -28
- data/spec/mustache/commonDependsOn_spec.rb +57 -2
- data/spec/mustache/commonInstanceType_spec.rb +1 -1
- data/spec/mustache/mappingAmazonVpcNat_spec.rb +56 -0
- data/spec/mustache/mapping_spec.rb +48 -7
- data/spec/mustache/resourceInstance_spec.rb +102 -1
- data/spec/mustache/resourceInternetGateway_spec.rb +14 -9
- data/spec/mustache/resourcePolicy_spec.rb +1 -1
- data/spec/mustache/resourceS3Bucket_spec.rb +1 -1
- data/spec/mustache/resourceSecurityGroup_spec.rb +3 -3
- data/spec/mustache/resourceSubnet_spec.rb +50 -3
- data/spec/support/lib/aws/aws.rb +6 -0
- data/spec/support/lib/aws/ec2_resource.rb +177 -0
- data/spec/support/lib/aws/mixin_cidr.rb +18 -0
- data/spec/support/lib/aws/mixin_ec2.rb +53 -0
- data/spec/support/lib/aws/mixin_security_group.rb +15 -0
- data/spec/support/lib/aws/mixin_subnet.rb +77 -0
- data/spec/support/lib/aws/mixin_vpc.rb +10 -0
- data/spec/support/lib/aws/route_resource.rb +86 -0
- data/spec/support/lib/aws/security_group_resource.rb +120 -0
- data/spec/support/lib/aws/vpc_resource.rb +69 -0
- data/spec/support/lib/suite_value.rb +38 -0
- data/spec/support/lib/test_parameter.rb +12 -8
- data/spec/support/lib/valid_property.rb +29 -9
- data/spec/support/spec_helper.rb +75 -44
- data/spec/support/utils.rb +4 -0
- metadata +34 -24
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-must-templates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jarjuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-must
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '0.0'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.0.
|
22
|
+
version: 0.0.14.pre
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '0.0'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.0.
|
32
|
+
version: 0.0.14.pre
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rake
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -37,9 +37,6 @@ dependencies:
|
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '10.4'
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 10.4.2
|
43
40
|
type: :runtime
|
44
41
|
prerelease: false
|
45
42
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -47,9 +44,6 @@ dependencies:
|
|
47
44
|
- - "~>"
|
48
45
|
- !ruby/object:Gem::Version
|
49
46
|
version: '10.4'
|
50
|
-
- - ">="
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: 10.4.2
|
53
47
|
- !ruby/object:Gem::Dependency
|
54
48
|
name: rspec
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -57,9 +51,6 @@ dependencies:
|
|
57
51
|
- - "~>"
|
58
52
|
- !ruby/object:Gem::Version
|
59
53
|
version: '3.3'
|
60
|
-
- - ">="
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: 3.3.0
|
63
54
|
type: :runtime
|
64
55
|
prerelease: false
|
65
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -67,9 +58,6 @@ dependencies:
|
|
67
58
|
- - "~>"
|
68
59
|
- !ruby/object:Gem::Version
|
69
60
|
version: '3.3'
|
70
|
-
- - ">="
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: 3.3.0
|
73
61
|
- !ruby/object:Gem::Dependency
|
74
62
|
name: serverspec
|
75
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -77,9 +65,6 @@ dependencies:
|
|
77
65
|
- - "~>"
|
78
66
|
- !ruby/object:Gem::Version
|
79
67
|
version: '2.21'
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 2.21.1
|
83
68
|
type: :runtime
|
84
69
|
prerelease: false
|
85
70
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -87,9 +72,6 @@ dependencies:
|
|
87
72
|
- - "~>"
|
88
73
|
- !ruby/object:Gem::Version
|
89
74
|
version: '2.21'
|
90
|
-
- - ">="
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version: 2.21.1
|
93
75
|
description: |2
|
94
76
|
Set of extensible templates for [aws-must](https://github.com/jarjuk/aws-must) tool to generate
|
95
77
|
CloudFormation JSON from a YAML configuration, and a
|
@@ -109,8 +91,10 @@ files:
|
|
109
91
|
- mustache/commonDependsOn.mustache
|
110
92
|
- mustache/commonInstanceType.mustache
|
111
93
|
- mustache/commonKeyValue.mustache
|
94
|
+
- mustache/commonRef.mustache
|
112
95
|
- mustache/commonStackRef.mustache
|
113
96
|
- mustache/commonValue.mustache
|
97
|
+
- mustache/commonXGressRule.mustache
|
114
98
|
- mustache/initializeCFinit.mustache
|
115
99
|
- mustache/initializeCFtools.mustache
|
116
100
|
- mustache/initializeCfnInitHupFiles.mustache
|
@@ -119,6 +103,7 @@ files:
|
|
119
103
|
- mustache/initializeProvisionChefZero.mustache
|
120
104
|
- mustache/initializeStartCfnHup.mustache
|
121
105
|
- mustache/mapping.mustache
|
106
|
+
- mustache/mappingAmazonVpcNat.mustache
|
122
107
|
- mustache/mappingSubnetConfig.mustache
|
123
108
|
- mustache/mappings.mustache
|
124
109
|
- mustache/output.mustache
|
@@ -132,6 +117,8 @@ files:
|
|
132
117
|
- mustache/resourcePolicy.mustache
|
133
118
|
- mustache/resourceProvisionChef.mustache
|
134
119
|
- mustache/resourceRole.mustache
|
120
|
+
- mustache/resourceRoute.mustache
|
121
|
+
- mustache/resourceRouteTable.mustache
|
135
122
|
- mustache/resourceS3Bucket.mustache
|
136
123
|
- mustache/resourceSecurityGroup.mustache
|
137
124
|
- mustache/resourceStack.mustache
|
@@ -143,14 +130,25 @@ files:
|
|
143
130
|
- mustache/root.mustache
|
144
131
|
- mustache/tag.mustache
|
145
132
|
- pics/test-suites.jpg
|
133
|
+
- spec/aws-must-templates/AllwaysOk/AllwaysOk_spec.rb
|
146
134
|
- spec/aws-must-templates/AwsCommandLineInterfaceInstalled/AwsCommandLineInterfaceInstalled_spec.rb
|
147
135
|
- spec/aws-must-templates/AwsMustTestRunnerProperties/AwsMustTestRunnerProperties_spec.rb
|
148
136
|
- spec/aws-must-templates/CloudFormationHelperScriptsInstalled/CloudFormationHelperScriptsInstalled_spec.rb
|
137
|
+
- spec/aws-must-templates/Ec2InstanceType/Ec2InstanceType_spec.rb
|
138
|
+
- spec/aws-must-templates/Ec2PrivateIp/Ec2PrivateIp_spec.rb
|
139
|
+
- spec/aws-must-templates/Ec2PublicIp/Ec2PublicIp_spec.rb
|
140
|
+
- spec/aws-must-templates/Ec2Routes/Ec2Routes_spec.rb
|
141
|
+
- spec/aws-must-templates/Ec2SecurityGroups/Ec2SecurityGroups_spec.rb
|
142
|
+
- spec/aws-must-templates/Ec2StatusNormal/Ec2StatusNormal_spec.rb
|
143
|
+
- spec/aws-must-templates/NetworkCanPing/NetworkCanPing_spec.rb
|
149
144
|
- spec/aws-must-templates/ParameterTest/ParameterTest_spec.rb
|
145
|
+
- spec/aws-must-templates/RespondsToPing/RespondsToPing_spec.rb
|
150
146
|
- spec/aws-must-templates/S3NoAccess/S3NoAccess_spec.rb
|
151
147
|
- spec/aws-must-templates/S3ReadAccessAllowed/S3ReadAccessAllowed_spec.rb
|
152
148
|
- spec/aws-must-templates/Stack/Stack_spec.rb
|
153
149
|
- spec/aws-must-templates/ValidOSVersion/ValidOSVersion_spec.rb
|
150
|
+
- spec/aws-must-templates/Vpc/vpc_spec.rb
|
151
|
+
- spec/aws-must-templates/table_of_content.mustache
|
154
152
|
- spec/lib/rspec_spec.rb
|
155
153
|
- spec/lib/spec_helper.rb
|
156
154
|
- spec/lib/test_suites_spec.rb
|
@@ -168,6 +166,7 @@ files:
|
|
168
166
|
- spec/mustache/initializeInstallChef_spec.rb
|
169
167
|
- spec/mustache/initializeProvisionChefZero_spec.rb
|
170
168
|
- spec/mustache/initializeStartCfnHup_spec.rb
|
169
|
+
- spec/mustache/mappingAmazonVpcNat_spec.rb
|
171
170
|
- spec/mustache/mappingSubnetConfig_spec.rb
|
172
171
|
- spec/mustache/mapping_spec.rb
|
173
172
|
- spec/mustache/mappings_spec.rb
|
@@ -194,8 +193,19 @@ files:
|
|
194
193
|
- spec/mustache/rspec_spec.rb
|
195
194
|
- spec/mustache/spec_helper.rb
|
196
195
|
- spec/mustache/tag_spec.rb
|
196
|
+
- spec/support/lib/aws/aws.rb
|
197
|
+
- spec/support/lib/aws/ec2_resource.rb
|
198
|
+
- spec/support/lib/aws/mixin_cidr.rb
|
199
|
+
- spec/support/lib/aws/mixin_ec2.rb
|
200
|
+
- spec/support/lib/aws/mixin_security_group.rb
|
201
|
+
- spec/support/lib/aws/mixin_subnet.rb
|
202
|
+
- spec/support/lib/aws/mixin_vpc.rb
|
203
|
+
- spec/support/lib/aws/route_resource.rb
|
204
|
+
- spec/support/lib/aws/security_group_resource.rb
|
205
|
+
- spec/support/lib/aws/vpc_resource.rb
|
197
206
|
- spec/support/lib/stack_output.rb
|
198
207
|
- spec/support/lib/stack_parameter.rb
|
208
|
+
- spec/support/lib/suite_value.rb
|
199
209
|
- spec/support/lib/test_parameter.rb
|
200
210
|
- spec/support/lib/valid_property.rb
|
201
211
|
- spec/support/spec_helper.rb
|
@@ -210,9 +220,9 @@ require_paths:
|
|
210
220
|
- lib
|
211
221
|
required_ruby_version: !ruby/object:Gem::Requirement
|
212
222
|
requirements:
|
213
|
-
- - "
|
223
|
+
- - "~>"
|
214
224
|
- !ruby/object:Gem::Version
|
215
|
-
version: '
|
225
|
+
version: '2'
|
216
226
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
227
|
requirements:
|
218
228
|
- - ">="
|