62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# File 'lib/awspec/generator/spec/network_interface.rb', line 62
def network_interface_spec_template
"describe network_interface('<%= network_interface_id %>') do\n it { should exist }\n it { should be_<%= interface.status.tr('-', '_') %> }\n<%- if instance_spec -%>\n <%= instance_spec %>\n<%- end -%>\n it { should belong_to_vpc('<%= @vpc_tag_name %>') }\n<%- if subnet_spec -%>\n <%= subnet_spec %>\n<%- end -%>\n<% linespecs.each do |line| %>\n <%= line %>\n<% end %>\n its(:private_ip_addresses_count) { should eq <%= interface.private_ip_addresses.count %> }\nend\n"
end
|