Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(maint) Disable Single Git Source test for el-9, replace 'operatingsystemmajrelease' legacy fact #1360

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

if ENV['GIT_PROVIDER'] == 'shellgit'
skip_test('Skipping test because removing Git from the system affects other "shellgit" tests.')
elsif fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "operatingsystemmajrelease").to_i < 6
elsif fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "os.release.major").to_i < 6
skip_test('This version of EL is not supported by this test case!')
end

Expand Down Expand Up @@ -87,7 +87,7 @@
if master_platform == 'RedHat'
on(master, 'yum remove -y git')
elsif master_platform == 'Debian'
if fact_on(master, "operatingsystemmajrelease") == '10.04'
if fact_on(master, "os.release.major") == '10.04'
on(master, 'apt-get remove -y git-core')
else
on(master, 'apt-get remove -y git')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

if ENV['GIT_PROVIDER'] == 'shellgit'
skip_test('Skipping test because removing Git from the system affects other "shellgit" tests.')
elsif fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "operatingsystemmajrelease").to_i < 6
elsif fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "os.release.major").to_i < 6
skip_test('This version of EL is not supported by this test case!')
end

Expand Down Expand Up @@ -86,7 +86,7 @@
if master_platform == 'RedHat'
on(master, 'yum remove -y git')
elsif master_platform == 'Debian'
if fact_on(master, "operatingsystemmajrelease") == '10.04'
if fact_on(master, "os.release.major") == '10.04'
on(master, 'apt-get remove -y git-core')
else
on(master, 'apt-get remove -y git')
Expand Down
2 changes: 1 addition & 1 deletion integration/tests/git_source/git_source_git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

confine(:to, :platform => 'el')

if fact_on(master, "operatingsystemmajrelease").to_i < 6
if fact_on(master, "os.release.major").to_i < 6 || fact_on(master, "os.release.major").to_i > 8
skip_test('This version of EL is not supported by this test case!')
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'r10k_utils'
test_name 'CODEMGMT-86 - C59265 - Attempt to Deploy Environment to Disk with Insufficient Free Space'

if fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "operatingsystemmajrelease").to_i < 6
if fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "os.release.major").to_i < 6
skip_test('This version of EL is not supported by this test case!')
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'master_manipulator'
test_name 'CODEMGMT-62 - C59239 - Single Environment with 10,000 Files'

if fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "operatingsystemmajrelease").to_i < 6
if fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "os.release.major").to_i < 6
skip_test('This version of EL is not supported by this test case!')
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'master_manipulator'
test_name 'CODEMGMT-62 - C59242 - Single Environment with Large Binary Files'

if fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "operatingsystemmajrelease").to_i < 6
if fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "os.release.major").to_i < 6
skip_test('This version of EL is not supported by this test case!')
end

Expand Down