22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# File 'lib/awspec/generator/spec/elasticache.rb', line 22
def cache_clusters_spec_template
"<% clusters.each do |cluster| %>\ndescribe elasticache('<%= cluster.cache_cluster_id %>') do\n it { should exist }\n it { should be_available }\n it { should have_cache_parameter_group('<%= cluster.cache_parameter_group.cache_parameter_group_name %>') }\n it { should belong_to_cache_subnet_group('<%= cluster.cache_subnet_group_name %>') }\n<% unless cluster.replication_group_id.nil? %>\n its(:replication_group_id) { should eq '<%= cluster.replication_group_id %>' }\n<% end %>\n its(:engine) { should eq '<%= cluster.engine %>' }\n its(:engine_version) { should eq '<%= cluster.engine_version %>' }\n its(:cache_node_type) { should eq '<%= cluster.cache_node_type %>' }\n<% unless cluster.snapshot_retention_limit.nil? %>\n its(:snapshot_retention_limit) { should eq <%= cluster.snapshot_retention_limit %> }\n its(:snapshot_window) { should eq '<%= cluster.snapshot_window %>' }\n<% end %>\nend\n<% end %>\n"
end
|