Skip to content

Commit

Permalink
(PUP-10853) Fix structured facts in acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielNagy committed Mar 1, 2021
1 parent a12743c commit e972610
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion acceptance/tests/direct_puppet/supports_utf8.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
file { '#{environmentpath}/#{tmp_environment}/manifests/site.pp':
ensure => file,
content => '
\$test_path = \$facts['networking']['fqdn'] ? #{tmp_file}
\$test_path = \$facts["networking"]["fqdn"] ? #{tmp_file}
file { \$test_path:
content => @(UTF8)
#{file_contents}
Expand Down
2 changes: 1 addition & 1 deletion acceptance/tests/reports/corrective_change_new_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
file { '#{environmentpath}/#{tmp_environment}/manifests/site.pp':
ensure => file,
content => '
\$test_path = \$facts['networking']['fqdn'] ? #{tmp_file}
\$test_path = \$facts["networking"]["fqdn"] ? #{tmp_file}
file { \$test_path:
content => @(UTF8)
#{file_contents}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
file { '#{environmentpath}/#{tmp_environment}/manifests/site.pp':
ensure => file,
content => '
\$test_path = \$facts['networking']['fqdn'] ? #{tmp_file}
\$test_path = \$facts["networking"]["fqdn"] ? #{tmp_file}
file { \$test_path:
content => @(UTF8)
#{file_contents}
Expand Down
2 changes: 1 addition & 1 deletion acceptance/tests/reports/corrective_change_via_puppet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def create_manifest_for_file_resource(file_resource, file_contents, environment_
file { '#{environmentpath}/#{environment_name}/manifests/site.pp':
ensure => file,
content => '
\$test_path = \$facts['networking']['fqdn'] ? #{file_resource}
\$test_path = \$facts["networking"]["fqdn"] ? #{file_resource}
file { \$test_path:
content => @(UTF8)
#{file_contents}
Expand Down

0 comments on commit e972610

Please sign in to comment.