Skip to content

Commit 217add8

Browse files
committed
(PUP-11752) fqdn_rand_string_spec.rb relies on legacy fqdn fact
There could potentially be other modules that are impacted too
1 parent dfd9b30 commit 217add8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: spec/functions/fqdn_rand_string_spec.rb

+1-1
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)