diff options
author | Colleen Murphy <colleen@puppetlabs.com> | 2015-04-10 09:09:46 -0700 |
---|---|---|
committer | Colleen Murphy <colleen@puppetlabs.com> | 2015-04-10 09:15:15 -0700 |
commit | 65116dafd507c5111044853861f9b10b02c91854 (patch) | |
tree | 0084d0bb0dc159f412d09f9301d3f57b66d00f07 /spec/acceptance/fqdn_rand_string_spec.rb | |
parent | e43f0582960707f8a7ff9f087ca2b521c1797a91 (diff) |
Fix acceptance tests for #405
This fixes the acceptance tests by:
- Ensuring the fqdn_rand_string spec is passed undef as the second
parameter so that the seed is not used as the charset
- Ensuring the pw_hash spec is passed the key specifying the type of
hash, rather than the value that will be used to generate the
password
- Expecting puppet to report nil instead of empty string for undef
passwords
- Removing the fqdn_rand_base64 test because there is no such function
Diffstat (limited to 'spec/acceptance/fqdn_rand_string_spec.rb')
-rw-r--r-- | spec/acceptance/fqdn_rand_string_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/acceptance/fqdn_rand_string_spec.rb b/spec/acceptance/fqdn_rand_string_spec.rb index a934fbb..8fe1a69 100644 --- a/spec/acceptance/fqdn_rand_string_spec.rb +++ b/spec/acceptance/fqdn_rand_string_spec.rb @@ -44,7 +44,7 @@ describe 'fqdn_rand_string function', :unless => UNSUPPORTED_PLATFORMS.include?( pp = <<-eos $l = 10 $s = 'seed' - $o = fqdn_rand_string($l, $s) + $o = fqdn_rand_string($l, undef, $s) notice(inline_template('fqdn_rand_string is <%= @o.inspect %>')) eos |