Method: Awspec::Generator::Spec::RdsProxy#rds_proxy_spec_template
- Defined in:
- lib/awspec/generator/spec/rds_proxy.rb
#rds_proxy_spec_template ⇒ Object
rubocop:disable all
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/awspec/generator/spec/rds_proxy.rb', line 20 def rds_proxy_spec_template template = "describe rds_proxy('<%= db_proxy.db_proxy_name %>') do\n it { should exist }\n it { should be_<%= db_proxy.status %> }\n it { should belong_to_vpc('<%= @vpc_id %>') }\n<% db_proxy.vpc_security_group_ids.each do |sg_group_id| %>\n it { should have_security_group('<%= sg_group_id %>') }\n<% end %>\n<% db_proxy.vpc_subnet_ids.each do |subnet_id| %>\n it { should belong_to_subnet('<%= subnet_id %>') }\n<% end %>\nend\n" template end |