diff options
author | Jason DeTiberus <detiber@gmail.com> | 2017-03-06 13:55:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-06 13:55:28 -0500 |
commit | a56fd2d8383b60e95aba7336006ac0ff718c179c (patch) | |
tree | fd2f7dca3fa46bdd83d42e7172c79a5ecfccbbe9 /utils | |
parent | 839f19377361bbf562f59e833baf2c0799921402 (diff) | |
parent | 700d907c0771405c3deb464d4972a1510025941d (diff) | |
download | openshift-a56fd2d8383b60e95aba7336006ac0ff718c179c.tar.gz openshift-a56fd2d8383b60e95aba7336006ac0ff718c179c.tar.bz2 openshift-a56fd2d8383b60e95aba7336006ac0ff718c179c.tar.xz openshift-a56fd2d8383b60e95aba7336006ac0ff718c179c.zip |
Merge pull request #3570 from rhcarvalho/more-misc-cleanup
Remove lots of dead code in tests
Diffstat (limited to 'utils')
-rw-r--r-- | utils/test/oo_config_tests.py | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/utils/test/oo_config_tests.py b/utils/test/oo_config_tests.py index 2b4fce512..5651e6e7a 100644 --- a/utils/test/oo_config_tests.py +++ b/utils/test/oo_config_tests.py @@ -266,42 +266,3 @@ class HostTests(OOInstallFixture): self.assertIn(node_labels_expected, legacy_inventory_line) # An unquoted version is not present self.assertNotIn(node_labels_bad, legacy_inventory_line) - - - # def test_new_write_inventory_same_as_legacy(self): - # """Verify the original write_host function produces the same output as the new method""" - # yaml_props = { - # 'ip': '192.168.0.1', - # 'hostname': 'a.example.com', - # 'connect_to': 'a-private.example.com', - # 'public_ip': '192.168.0.1', - # 'public_hostname': 'a.example.com', - # 'new_host': True, - # 'roles': ['node'], - # 'other_variables': { - # 'zzz': 'last', - # 'foo': 'bar', - # 'aaa': 'first', - # }, - # } - - # new_node = Host(**yaml_props) - # inventory = cStringIO() - - # # This is what the original 'write_host' function will - # # generate. write_host has no return value, it just writes - # # directly to the file 'inventory' which in this test-case is - # # a StringIO object - # ooinstall.openshift_ansible.write_host( - # new_node, - # 'node', - # inventory, - # schedulable=True) - # legacy_inventory_line = inventory.getvalue() - - # # This is what the new method in the Host class generates - # new_inventory_line = new_node.inventory_string('node', schedulable=True) - - # self.assertEqual( - # legacy_inventory_line, - # new_inventory_line) |