diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fa95010f83..68640c4c3c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -104,3 +104,4 @@ jobs: run: bundle exec rake test:e2e env: BEAKER_set: ${{ matrix.dist }} + OOD_BUILD_REPO: ${{ matrix.version }} diff --git a/spec/e2e/e2e_helper.rb b/spec/e2e/e2e_helper.rb index 918ff59a94..93bec23ec5 100644 --- a/spec/e2e/e2e_helper.rb +++ b/spec/e2e/e2e_helper.rb @@ -112,10 +112,15 @@ def ondemand_repo end end +def build_repo_version + ENV['OOD_BUILD_REPO'] || '2.0' +end + def install_ondemand if host_inventory['platform'] == 'redhat' release_rpm = 'https://yum.osc.edu/ondemand/latest/ondemand-release-web-latest-1-6.noarch.rpm' on hosts, "[ -f /etc/yum.repos.d/ondemand-web.repo ] || #{packager} install -y #{release_rpm}" + on hosts, "sed -i 's|/latest/|/build/#{build_repo_version}/|g' /etc/yum.repos.d/ondemand-web.repo" config_manager = if host_inventory['platform_version'] =~ /^7/ 'yum-config-manager' else