awspec 1.12.6 → 1.12.7

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
  SHA256:
3
- metadata.gz: fd344eca7cdef535b7e962fddd4214c3af86de326cb9fe02b5ded97356c0d709
4
- data.tar.gz: a7bb40c492a2fc190f978a4925376385bbc3b2289c0a51efa18ebbb49a38f50d
3
+ metadata.gz: 5d727d645b806891b8fa371129cece8368ce744d6e875b41a959afc51546e9bc
4
+ data.tar.gz: ab6fad916683fe9f7d1054d1181b38f87568bcea287a2948419fe6415206f5ec
5
5
  SHA512:
6
- metadata.gz: d878ba90f5809d6a8f76ceea08fc94b59f5da8e42cf8e3a4b7546df8874fc107a4497479655f35e4b87c5007fae6e485c28abdc0c6a834f1a77329d83705acaa
7
- data.tar.gz: 02666bd47a44b756f38829136b024de943f4cc2838c1aef9307857f3d7125b33c6659ce1501db060c5739ed750a139d99553fc97c5d96811a63034bba23c3172
6
+ metadata.gz: 64e3616625c521027c12772da54feed43ba85ff96cac6ffdd76b8d8963bf0087b856d42053d38d6aaaf9e67bd0f48fe1162d3679990d1241a5de2019ab322829
7
+ data.tar.gz: e268f784d76b57b858c079bb37f38c50c3ac35606f4bcca4c301644985314448b9b1b5d3fdcfcea1c03f2de5dcea63e74dccbd3970f65585e554cebb15d192ff
@@ -40,8 +40,12 @@ describe autoscaling_group('<%= autoscaling_group.auto_scaling_group_name %>') d
40
40
  <% autoscaling_group[:load_balancer_names].each do |desc| %>
41
41
  it { should have_elb('<%= desc %>') }
42
42
  <% end %>
43
- <% autoscaling_group[:target_group_arns].each do |desc| %>
44
- it { should have_alb_target_group('<%= desc.sub(/^.*targetgroup\/(.[^\/]*).*$/, '\1') %>') }
43
+ <% autoscaling_group[:target_group_arns].join(",").gsub(/arn:.+?:targetgroup\/(.[^\/]*)\/.[^,]*/, '\1').split(",").each do |desc| %>
44
+ <%- if not find_alb_target_group(desc).nil? -%>
45
+ it { should have_alb_target_group('<%= desc %>') }
46
+ <%- elsif not find_nlb_target_group(desc).nil? -%>
47
+ it { should have_nlb_target_group('<%= desc %>') }
48
+ <%- end -%>
45
49
  <% end %>
46
50
  end
47
51
  EOF
@@ -6,4 +6,8 @@ RSpec::Matchers.define :have_tag do |key|
6
6
  chain :value do |val|
7
7
  @value = val
8
8
  end
9
+
10
+ description do
11
+ "have tag \"#{key}\" value \"#{@value}\""
12
+ end
9
13
  end
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '1.12.6'
2
+ VERSION = '1.12.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.6
4
+ version: 1.12.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-10 00:00:00.000000000 Z
11
+ date: 2018-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk