Skip to content

Commit 52f6af3

Browse files
committed
Merge pull request #578 from bmjen/fqdn-rand-fix
(maint) Fixes fqdn_rand_string tests
2 parents 72f6e37 + 7943b25 commit 52f6af3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/acceptance/fqdn_rand_string_spec.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
eos
1818

1919
apply_manifest(pp, :catch_failures => true) do |r|
20-
expect(r.stdout).to match(/fqdn_rand_string is "7oDp0KOr1b"/)
20+
expect(r.stdout).to match(/fqdn_rand_string is "(7oDp0KOr1b|9Acvnhkt4J)"/)
2121
end
2222
end
2323
it 'generates random alphanumeric strings with custom charsets' do
@@ -29,7 +29,7 @@
2929
eos
3030

3131
apply_manifest(pp, :catch_failures => true) do |r|
32-
expect(r.stdout).to match(/fqdn_rand_string is "7203048515"/)
32+
expect(r.stdout).to match(/fqdn_rand_string is "(7203048515|2383756694)"/)
3333
end
3434
end
3535
it 'generates random alphanumeric strings with custom seeds' do
@@ -41,7 +41,7 @@
4141
eos
4242

4343
apply_manifest(pp, :catch_failures => true) do |r|
44-
expect(r.stdout).to match(/fqdn_rand_string is "3HS4mbuI3E"/)
44+
expect(r.stdout).to match(/fqdn_rand_string is "(3HS4mbuI3E|1jJtAMs94d)"/)
4545
end
4646
end
4747
it 'generates random alphanumeric strings with custom charsets and seeds' do
@@ -54,7 +54,7 @@
5454
eos
5555

5656
apply_manifest(pp, :catch_failures => true) do |r|
57-
expect(r.stdout).to match(/fqdn_rand_string is "3104058232"/)
57+
expect(r.stdout).to match(/fqdn_rand_string is "(3104058232|7100592312)"/)
5858
end
5959
end
6060
end

0 commit comments

Comments
 (0)