From a42793b69691fa00651dab67dc3367f289c5659a Mon Sep 17 00:00:00 2001 From: Mario Villaplana Date: Wed, 16 Nov 2016 19:12:40 +0000 Subject: [PATCH] Test discovered nodes are in ENROLL state and fix typo This adds additional coverage to the discovery tempest test to check that discovered nodes start in the ENROLL state. A small typo is also corrected. Change-Id: I7b3ad1ec4d8779f4c4e58776280d955a1b061fb7 --- .../test/inspector_tempest_plugin/tests/test_discovery.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ironic_inspector/test/inspector_tempest_plugin/tests/test_discovery.py b/ironic_inspector/test/inspector_tempest_plugin/tests/test_discovery.py index 592fa8163..c4508b7d9 100644 --- a/ironic_inspector/test/inspector_tempest_plugin/tests/test_discovery.py +++ b/ironic_inspector/test/inspector_tempest_plugin/tests/test_discovery.py @@ -115,7 +115,7 @@ class InspectorDiscoveryTest(manager.InspectorScenarioTest): @test.idempotent_id('dd3abe5e-0d23-488d-bb4e-344cdeff7dcb') @test.services('baremetal', 'compute') - def test_berametal_auto_discovery(self): + def test_bearmetal_auto_discovery(self): """This test case follows this set of operations: * Choose appropriate node, based on provision state; @@ -145,3 +145,5 @@ class InspectorDiscoveryTest(manager.InspectorScenarioTest): self.verify_node_flavor(inspected_node) self.verify_node_introspection_data(inspected_node) self.verify_node_driver_info(self.node_info, inspected_node) + self.assertEqual(ProvisionStates.ENROLL, + inspected_node['provision_state'])