Skip to content

Commit

Permalink
(CAT-2052) Fix nightlies
Browse files Browse the repository at this point in the history
(CAT-2052) Fix nightlies

(CAT-2052) updated workflow

(CAT-2052) Update enforcing mode

(CAT-2052) Execute foreman apipie:cache command
  • Loading branch information
skyamgarp committed Oct 17, 2024
1 parent ea51a7e commit b6da5fa
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Run provision Tests
run: |
bundle exec bolt --tmpdir /tmp --modulepath spec/fixtures/modules -i $INVENTORY_PATH plan run satellite_pe_tools::test_03_test_run --stream
bundle exec bolt --tmpdir /tmp --log-level debug --modulepath spec/fixtures/modules -i $INVENTORY_PATH plan run satellite_pe_tools::test_03_test_run --stream
- name: Run Integration tests
run: |
Expand Down
2 changes: 2 additions & 0 deletions config/scripts/install_satellite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ if ! [ -d /opt/satellite ]; then

puppet agent -t

setenforce 0
satellite-installer --scenario satellite --enable-puppet --enable-foreman-cli-puppet --foreman-initial-admin-password "puppetlabs" --tuning development -l DEBUG
setenforce 1
fi
2 changes: 1 addition & 1 deletion plans/test_01_provision.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plan satellite_pe_tools::test_01_provision(
) {
# provision server machine, set role
run_task('provision::provision_service', 'localhost', action => 'provision', platform => 'centos-stream-8', vars => 'role: pe')
run_task('provision::provision_service', 'localhost', action => 'provision', platform => 'centos-stream-9', vars => 'role: pe')
# provision satellite
run_task('provision::provision_service', 'localhost', action => 'provision', platform => 'rhel-8', vars => 'role: satellite')
}
2 changes: 1 addition & 1 deletion plans/test_02_server_setup.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'password' => 'puppetlabs',
'configure_tuning' => false,
},
'version' => '2021.7.4',
'version' => '2021.7.6',
}
run_plan('deploy_pe::provision_master', $server, $params)
}
1 change: 1 addition & 0 deletions spec/spec_helper_acceptance_local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def scp_from(host, target, local, username, password)

def satellite_update_setting(server, satellite, setting, value)
change_target_host(satellite)
Helper.instance.run_shell("foreman-rake apipie:cache")

Check failure on line 132 in spec/spec_helper_acceptance_local.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols. (https://rubystyle.guide#consistent-string-literals)

Check failure on line 132 in spec/spec_helper_acceptance_local.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols. (https://rubystyle.guide#consistent-string-literals)
Helper.instance.run_shell("hammer --username admin --password puppetlabs settings set --id '#{setting}' --name '#{setting}' --value '#{value}'")
# Create activation key
# rubocop:disable Layout/LineLength
Expand Down

0 comments on commit b6da5fa

Please sign in to comment.