Skip to content

Commit 7571612

Browse files
committed
(PUP-11752) fqdn_rand_string_spec.rb relies on legacy fqdn fact
1 parent 934328e commit 7571612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/functions/fqdn_rand_string_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def fqdn_rand_string(max, args = {})
5757

5858
# workaround not being able to use let(:facts) because some tests need
5959
# multiple different hostnames in one context
60-
allow(scope).to receive(:lookupvar).with('::fqdn', {}).and_return(host)
60+
allow(scope).to receive(:lookupvar).with('facts', {}).and_return({'networking' => {'fqdn' => host}})
6161

6262
function_args = [max]
6363
if args.key?(:charset) || !extra.empty?

0 commit comments

Comments
 (0)