diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-08-15 13:25:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-15 13:25:20 -0400 |
commit | 6339f90c666796b17720e4212f56036cdc2e6d02 (patch) | |
tree | b208ba1916b808010a936cd43f0d72657bc6c27c /roles/openshift_health_checker/test | |
parent | 9edfc0f8b2f18db18e9652f4281ca85224b33358 (diff) | |
parent | 7df38035f5e20d49d6cd5eb7a3310070a63a2f78 (diff) | |
download | openshift-6339f90c666796b17720e4212f56036cdc2e6d02.tar.gz openshift-6339f90c666796b17720e4212f56036cdc2e6d02.tar.bz2 openshift-6339f90c666796b17720e4212f56036cdc2e6d02.tar.xz openshift-6339f90c666796b17720e4212f56036cdc2e6d02.zip |
Merge pull request #5036 from Miciah/openshift_checks-support-ovs-2.7-on-ocp-3.5-and-3.6
openshift_checks: allow OVS 2.7 on OCP 3.5 and 3.6
Diffstat (limited to 'roles/openshift_health_checker/test')
-rw-r--r-- | roles/openshift_health_checker/test/ovs_version_test.py | 4 | ||||
-rw-r--r-- | roles/openshift_health_checker/test/rpm_version_test.py | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/roles/openshift_health_checker/test/ovs_version_test.py b/roles/openshift_health_checker/test/ovs_version_test.py index b6acef5a6..e1bf29d2a 100644 --- a/roles/openshift_health_checker/test/ovs_version_test.py +++ b/roles/openshift_health_checker/test/ovs_version_test.py @@ -38,8 +38,8 @@ def test_invalid_openshift_release_format(): @pytest.mark.parametrize('openshift_release,expected_ovs_version', [ - ("3.5", "2.6"), - ("3.6", "2.6"), + ("3.5", ["2.6", "2.7"]), + ("3.6", ["2.6", "2.7"]), ("3.4", "2.4"), ("3.3", "2.4"), ("1.0", "2.4"), diff --git a/roles/openshift_health_checker/test/rpm_version_test.py b/roles/openshift_health_checker/test/rpm_version_test.py index 2f09ef965..2c1bcf876 100644 --- a/roles/openshift_health_checker/test/rpm_version_test.py +++ b/roles/openshift_health_checker/test/rpm_version_test.py @@ -49,7 +49,7 @@ def test_check_pkg_found(pkgs, expect_not_found): }, { "eggs": { - "required_version": "3.2", + "required_versions": ["3.2"], "found_versions": ["3.3"], } }, # not the right version @@ -61,11 +61,11 @@ def test_check_pkg_found(pkgs, expect_not_found): }, { "eggs": { - "required_version": "3.2", + "required_versions": ["3.2"], "found_versions": ["3.3", "1.2"], }, "spam": { - "required_version": "3.2", + "required_versions": ["3.2"], "found_versions": ["3.1", "3.3"], } }, # not the right version |