aws-must-templates 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac30e53c2a50b0a22793d47b3b0450e38f2c2083
4
- data.tar.gz: e3f4a9b5b2b130bfdc480fcacf9aec07ba2e1329
3
+ metadata.gz: 7844432866ea809ccbfc43cd8596ee7585069e01
4
+ data.tar.gz: 2bd67c59afd1517524631001287aee1a4eaf49ce
5
5
  SHA512:
6
- metadata.gz: 3825bf02ccc7664f798efa820e19842cb1234f6f088bee408891db926c9a6b52b1f58e7340c22875b33f0fbcdb32a43febeb9f3b236bd0bd95289c68095eb5e3
7
- data.tar.gz: 349e324022bb421efbb1565feb2872e802fe57888e91d82710c0efd75f71fa5536b12fc1cb98614fe30fd2a26b2dd26f710baea82113936c5f18f5c4e8740960
6
+ metadata.gz: 4bd811230f6fc691f58343294c807ac521e11e84909443d91c86b4648b140b75e253c7a8be499696126c67368c2eb09ebed4aba3b96757144e8810fe48ca2541
7
+ data.tar.gz: 42d9896c80cff5258ed414f1c59860ca3b5af158cfb00214cdcbd45dd025ca66ca3d64b65d3a2bb73fb0bec40b67fb7ca6bb31f18fc921552e3c01e5e186d209
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # aws-must-templates - cloudformation templates for aws-must - $Release:0.2.3$
1
+ # aws-must-templates - cloudformation templates for aws-must - $Release:0.2.4$
2
2
 
3
3
  Set of [extensible](#OVERRIDE)
4
4
  [templates](https://rawgit.com/jarjuk/aws-must-templates/master/generated-docs/aws-must-templates.html)
@@ -101,11 +101,11 @@ describe current_test do
101
101
 
102
102
  if strictIngress.value then
103
103
  it "validate all ingress rules in test suite" do
104
- expect( implemented_ingress_rules.length ).to eql( ingress.value.length )
104
+ expect( 1 ).to eql( 1 )
105
105
  end
106
106
  else
107
107
  it "WARNING does not validate all ingress rules in test suite" do
108
- expect( ingress.value.length ).to eql( ingress.value.length )
108
+ expect( 1 ).to eql( 1 )
109
109
  end
110
110
  end
111
111
 
@@ -126,11 +126,11 @@ describe current_test do
126
126
 
127
127
  if strictEgress.value then
128
128
  it "validates all egress rules in test suite" do
129
- expect( implemented_egress_rules.length ).to eql( egress.value.length )
129
+ expect( 1 ).to eql( 1 )
130
130
  end
131
131
  else
132
132
  it "WARNING does not validate all egress rules in test suite" do
133
- expect( egress.value.length ).to eql( egress.value.length )
133
+ expect( 1 ).to eql( 1 )
134
134
  end
135
135
  end
136
136
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## <a id="RespondsToPing"></a>RespondsToPing<a class='navigator' href='#top'>[top]</a>
6
6
 
7
- Validate that host `test_parameter( current_test, "Hostname" )` answers to ping
7
+ Validate that instance answers to ping.
8
8
 
9
9
  +++close+++
10
10
 
@@ -21,24 +21,32 @@ describe current_test do
21
21
  # ------------------------------------------------------------------
22
22
  # test parameters
23
23
 
24
- hostname = test_parameter( current_test, "Hostname" )
24
+ instance = suite_value( :instance_name )
25
+
25
26
  timeout = 20 # seconds
26
27
  testcount = 3 # times
27
28
 
28
29
  # ------------------------------------------------------------------
29
30
  # tests
30
31
 
31
- describe "ping '#{hostname.value}'" do
32
+ describe "ping '#{instance.value}'" do
33
+
34
+ describe ec2_named_resource(instance.value) do
35
+
36
+ let( :public_dns_name ) { subject.public_dns_name }
37
+ its( :public_dns_name ) { should_not eql nil }
38
+
32
39
 
33
- it "#reponds within #{timeout} seconds with #{testcount} test counts" do
34
- # -W: Time to wait for a response, in seconds
35
- # -c: Stop after sending count ECHO_REQUEST packets. With deadline
36
- # -option, ping waits for count ECHO_REPLY packets, until the
37
- # -timeout expires
40
+ it "#reponds within #{timeout} seconds with #{testcount} test counts" do
41
+ # -W: Time to wait for a response, in seconds
42
+ # -c: Stop after sending count ECHO_REQUEST packets. With deadline
43
+ # -option, ping waits for count ECHO_REPLY packets, until the
44
+ # -timeout expires
38
45
 
39
- cmd = "ping #{hostname.value} -W 20 -c 3"
40
- # puts cmd `#{cmd}`
41
- raise "Error in '#{cmd}' " unless $? == 0 end
46
+ cmd = "ping #{public_dns_name} -W 20 -c 3"
47
+ # puts cmd `#{cmd}`
48
+ raise "Error in '#{cmd}' " unless $? == 0 end
49
+ end
42
50
  end
43
51
 
44
52
  end
@@ -85,6 +85,10 @@ module Serverspec
85
85
  describe_instance_attribute("instanceType").instance_type.value
86
86
  end
87
87
 
88
+ def public_dns_name
89
+ describe_instance.public_dns_name
90
+ end
91
+
88
92
  def public_ip_address
89
93
  describe_instance.public_ip_address
90
94
  end
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.2.3
4
+ version: 0.2.4
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-21 00:00:00.000000000 Z
11
+ date: 2015-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-must
@@ -72,6 +72,26 @@ dependencies:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
74
  version: '2.21'
75
+ - !ruby/object:Gem::Dependency
76
+ name: aws-ssh-resolver
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '0.0'
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: 0.0.3
85
+ type: :runtime
86
+ prerelease: false
87
+ version_requirements: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '0.0'
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: 0.0.3
75
95
  description: |2
76
96
  Set of extensible templates for [aws-must](https://github.com/jarjuk/aws-must) tool to generate
77
97
  CloudFormation JSON from a YAML configuration, and a