Skip to content

Commit

Permalink
Drop support for Foreman < 3.8, retain 3.5 version
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver committed Sep 4, 2024
1 parent a19ad17 commit 7e6fd50
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 81 deletions.
12 changes: 0 additions & 12 deletions bats/fb-katello-content.bats
Original file line number Diff line number Diff line change
Expand Up @@ -252,18 +252,6 @@ setup() {
--name="${ACTIVATION_KEY}" --auto-attach=false
}

@test "add subscription to activation key" {
tSkipIfNewerThan45

sleep 10
activation_key_id=$(hammer --csv --no-headers activation-key info --organization="${ORGANIZATION}" \
--name="${ACTIVATION_KEY}" | cut -d, -f2)
subscription_id=$(hammer --csv --no-headers subscription list --organization="${ORGANIZATION}" \
| grep "${PRODUCT}" | cut -d, -f1)
hammer activation-key add-subscription --id=$activation_key_id \
--subscription-id=$subscription_id | grep -q "Subscription added to activation key"
}

@test "promote first content view again" {
hammer content-view version promote --organization="${ORGANIZATION}" \
--content-view="${CONTENT_VIEW}" --to-lifecycle-environment="${LIFECYCLE_ENVIRONMENT}" --from-lifecycle-environment="Library"
Expand Down
7 changes: 1 addition & 6 deletions bats/fb-test-foreman-rex.bats
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@ load os_helper
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'
else
job_template='Run Command - Script Default'
fi
job_template='Run Command - Script Default'

SMART_PROXY_NAME=$(hostname -f)

Expand Down
7 changes: 0 additions & 7 deletions bats/foreman_helper.bash
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ tSkipIfOlderThan43() {
fi
}

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

tIsPulp2() {
tPackageExists pulp-server
}
Expand Down
8 changes: 4 additions & 4 deletions roles/forklift_versions/molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@
vars:
scenario: "{{ pipeline_type }}"
scenario_os: "almalinux8"
scenario_version: "4.9"
scenario_version: "4.14"
upgrade: True
upgrade_step: 2
- name: Ensure upgrade steps have been determined correctly
assert:
that:
- forklift_upgrade_version_start == '4.5'
- forklift_upgrade_version_intermediate == '4.7'
- forklift_upgrade_version_final == '4.9'
- forklift_upgrade_version_start == '4.10'
- forklift_upgrade_version_intermediate == '4.12'
- forklift_upgrade_version_final == '4.14'
52 changes: 0 additions & 52 deletions vagrant/config/versions.yaml
Original file line number Diff line number Diff line change
@@ -1,57 +1,5 @@
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'
pulpcore: '3.18'
puppet: 7
boxes:
- 'almalinux8'
- 'centos8-stream'
- 'debian11'
- 'ubuntu2004'

- foreman: '3.5'
katello: '4.7'
pulpcore: '3.21'
puppet: 7
boxes:
- 'almalinux8'
- 'centos8-stream'
- 'debian11'
- 'ubuntu2004'

- foreman: '3.6'
katello: '4.8'
pulpcore: '3.22'
puppet: 7
boxes:
- 'almalinux8'
- 'centos8-stream'
- 'debian11'
- 'ubuntu2004'

- foreman: '3.7'
katello: '4.9'
pulpcore: '3.22'
puppet: 7
boxes:
- 'almalinux8'
- 'centos8-stream'
- 'debian11'
- 'ubuntu2004'
- foreman: '3.8'
katello: '4.10'
pulpcore: '3.28'
Expand Down

0 comments on commit 7e6fd50

Please sign in to comment.