Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning- committed May 21, 2024
1 parent d426d75 commit 9bf7c6c
Showing 1 changed file with 56 additions and 1 deletion.
57 changes: 56 additions & 1 deletion spec/spec_helper_acceptance_local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,61 @@ def create_remote_file(name, dest_filepath, file_content)
path: "common.yaml"
EOS

hiera_data_content = <<-EOS
if os[:family].eql?('debian')
hiera_data_content = <<-EOS
---
# Created by puppet litmus
php::composer: true
php::extensions:
bcmath: {}
dba: {}
gd: {}
gmp: {}
intl: {}
json: {}
ldap: {}
mbstring: {}
mysqlnd: {}
opcache: {}
pdo: {}
xml: {}
zip: {}
php::fpm: false
php::manage_repos: false
php::settings:
'PHP/memory_limit': '768M'
php::globals::php_version: '7.4'
mysql::server::root_password: 'strongpassword'
EOS
elsif os[:family].eql?('ubuntu')
hiera_data_content = <<-EOS
---
# Created by puppet litmus
php::composer: true
php::extensions:
bcmath: {}
dba: {}
gd: {}
gmp: {}
intl: {}
json: {}
ldap: {}
mbstring: {}
mysqlnd: {}
opcache: {}
pdo: {}
process: {}
xml: {}
zip: {}
php::fpm: false
php::manage_repos: false
php::settings:
'PHP/memory_limit': '768M'
php::globals::php_version: '7.4'
mysql::server::root_password: 'strongpassword'
EOS
else
hiera_data_content = <<-EOS
---
# Created by puppet litmus
php::composer: true
Expand All @@ -55,6 +109,7 @@ def create_remote_file(name, dest_filepath, file_content)
php::globals::php_version: '7.4'
mysql::server::root_password: 'strongpassword'
EOS
end

setup_php_pp = <<-EOS
if (($facts['os']['family'] == 'RedHat') and ($facts['os']['release']['major'] == '8')) {
Expand Down

0 comments on commit 9bf7c6c

Please sign in to comment.