Skip to content

Commit

Permalink
Drop support for Foreman < 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver committed Sep 3, 2024
1 parent 6762c81 commit 1161d1f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 19 deletions.
4 changes: 2 additions & 2 deletions bats/fb-test-foreman-rex.bats
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ load foreman_helper

@test "run 'uptime' via Remote Execution" {
FOREMAN_VERSION=$(tForemanVersion)
if ! tIsVersionNewer "${FOREMAN_VERSION}" 3.3; then
job_template='Run Command - SSH Default'
if ! tIsVersionNewer "${FOREMAN_VERSION}" 3.7; then
skip "Skipping test for versions older than 3.8"
else
job_template='Run Command - Script Default'
fi
Expand Down
6 changes: 3 additions & 3 deletions bats/foreman_helper.bash
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ tSkipIfOlderThan43() {
fi
}

tSkipIfNewerThan45() {
tSkipIfNewerThan46() {
KATELLO_VERSION=$(tKatelloVersion)
if tIsVersionNewer "${KATELLO_VERSION}" 4.6; then
skip "Skip if Katello is newer than 4.5"
if tIsVersionNewer "${KATELLO_VERSION}" 4.7; then
skip "Skip if Katello is newer than 4.6"
fi
}

Expand Down
2 changes: 1 addition & 1 deletion roles/forklift_versions/molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@
- name: Ensure upgrade steps have been determined correctly
assert:
that:
- forklift_upgrade_version_start == '4.5'
- forklift_upgrade_version_start == '4.6'
- forklift_upgrade_version_intermediate == '4.7'
- forklift_upgrade_version_final == '4.9'
13 changes: 0 additions & 13 deletions vagrant/config/versions.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
installers:
- foreman: '3.3'
katello: '4.5'
pulpcore: '3.18'
puppet: 7
boxes:
- 'almalinux8'
- 'centos7'
- 'centos7-fips'
- 'centos8'
- 'centos8-stream'
- 'debian10'
- 'debian11'
- 'ubuntu2004'

- foreman: '3.4'
katello: '4.6'
Expand Down

0 comments on commit 1161d1f

Please sign in to comment.