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
This commit is contained in:
Mario Villaplana 2016-11-16 19:12:40 +00:00
parent 2d228cd6b9
commit a42793b696

View File

@ -115,7 +115,7 @@ class InspectorDiscoveryTest(manager.InspectorScenarioTest):
@test.idempotent_id('dd3abe5e-0d23-488d-bb4e-344cdeff7dcb') @test.idempotent_id('dd3abe5e-0d23-488d-bb4e-344cdeff7dcb')
@test.services('baremetal', 'compute') @test.services('baremetal', 'compute')
def test_berametal_auto_discovery(self): def test_bearmetal_auto_discovery(self):
"""This test case follows this set of operations: """This test case follows this set of operations:
* Choose appropriate node, based on provision state; * Choose appropriate node, based on provision state;
@ -145,3 +145,5 @@ class InspectorDiscoveryTest(manager.InspectorScenarioTest):
self.verify_node_flavor(inspected_node) self.verify_node_flavor(inspected_node)
self.verify_node_introspection_data(inspected_node) self.verify_node_introspection_data(inspected_node)
self.verify_node_driver_info(self.node_info, inspected_node) self.verify_node_driver_info(self.node_info, inspected_node)
self.assertEqual(ProvisionStates.ENROLL,
inspected_node['provision_state'])