spec/spec_helper.rb in kumogata-0.2.14 vs spec/spec_helper.rb in kumogata-0.2.15
- old
+ new
@@ -55,10 +55,14 @@
if options[:add_encryption_password]
add_encryption_password(template)
end
+ if options[:add_encryption_password_for_validation]
+ add_encryption_password_for_validation(template)
+ end
+
return template
end
def update_deletion_policy(template)
template['Resources'].each do |k, v|
@@ -70,9 +74,18 @@
template['Parameters'] ||= {}
template['Parameters'][Kumogata::ENCRYPTION_PASSWORD] = {
'Type' => 'String',
'NoEcho' => 'true',
+ }
+end
+
+def add_encryption_password_for_validation(template)
+ template['Parameters'] ||= {}
+
+ template['Parameters'][Kumogata::ENCRYPTION_PASSWORD] = {
+ 'Type' => 'String',
+ 'Default' => "(#{Kumogata::ENCRYPTION_PASSWORD})",
}
end
def make_double(name)
obj = double(name)