diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-12-08 10:45:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-08 10:45:47 -0500 |
commit | 7ced91bcef775e3bcdc1cc1b380ad28b2e20ae77 (patch) | |
tree | 40badea9dfe299ed6f1e16f0c395cce5946d92da /roles/openshift_master_facts/test | |
parent | 8001a090e8711b3d9d5be3d7cd3864b77b64deab (diff) | |
parent | d38303c7cfc7c6d946922df696f5422bb2a32dc5 (diff) | |
download | openshift-7ced91bcef775e3bcdc1cc1b380ad28b2e20ae77.tar.gz openshift-7ced91bcef775e3bcdc1cc1b380ad28b2e20ae77.tar.bz2 openshift-7ced91bcef775e3bcdc1cc1b380ad28b2e20ae77.tar.xz openshift-7ced91bcef775e3bcdc1cc1b380ad28b2e20ae77.zip |
Merge pull request #2943 from detiber/fixOpenShiftRelease
Properly handle x.y.z formatted versions for openshift_release
Diffstat (limited to 'roles/openshift_master_facts/test')
-rw-r--r-- | roles/openshift_master_facts/test/openshift_master_facts_default_predicates_tests.py | 7 | ||||
-rw-r--r-- | roles/openshift_master_facts/test/openshift_master_facts_default_priorities_tests.py | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/roles/openshift_master_facts/test/openshift_master_facts_default_predicates_tests.py b/roles/openshift_master_facts/test/openshift_master_facts_default_predicates_tests.py index 0428ad465..c95356908 100644 --- a/roles/openshift_master_facts/test/openshift_master_facts_default_predicates_tests.py +++ b/roles/openshift_master_facts/test/openshift_master_facts_default_predicates_tests.py @@ -14,7 +14,6 @@ DEFAULT_PREDICATES_1_1 = [ {'name': 'PodFitsResources'}, {'name': 'NoDiskConflict'}, {'name': 'MatchNodeSelector'}, - {'name': 'Hostname'} ] DEFAULT_PREDICATES_1_2 = [ @@ -23,7 +22,6 @@ DEFAULT_PREDICATES_1_2 = [ {'name': 'NoDiskConflict'}, {'name': 'NoVolumeZoneConflict'}, {'name': 'MatchNodeSelector'}, - {'name': 'Hostname'}, {'name': 'MaxEBSVolumeCount'}, {'name': 'MaxGCEPDVolumeCount'} ] @@ -211,6 +209,11 @@ class TestOpenShiftMasterFactsDefaultPredicates(object): for release, deployment_type, default_predicates in TEST_VARS: yield self.check_defaults_deployment_type_kwarg, release, deployment_type, default_predicates, regions_enabled + def test_trunc_openshift_release(self): + for release, deployment_type, default_predicates in TEST_VARS: + release = release + '.1' + yield self.check_defaults_release, release, deployment_type, default_predicates, False + @raises(AnsibleError) def test_unknown_deployment_types(self): facts = copy.deepcopy(self.default_facts) diff --git a/roles/openshift_master_facts/test/openshift_master_facts_default_priorities_tests.py b/roles/openshift_master_facts/test/openshift_master_facts_default_priorities_tests.py index a13b546d1..5427a07a1 100644 --- a/roles/openshift_master_facts/test/openshift_master_facts_default_priorities_tests.py +++ b/roles/openshift_master_facts/test/openshift_master_facts_default_priorities_tests.py @@ -200,6 +200,11 @@ class TestOpenShiftMasterFactsDefaultPredicates(object): for short_version, deployment_type, default_priorities in TEST_VARS: yield self.check_defaults_short_version_kwarg, short_version, deployment_type, default_priorities, zones_enabled + def test_trunc_openshift_release(self): + for release, deployment_type, default_priorities in TEST_VARS: + release = release + '.1' + yield self.check_defaults_release, release, deployment_type, default_priorities, False + @raises(AnsibleError) def test_unknown_origin_version(self): facts = copy.deepcopy(self.default_facts) |