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
diff --git a/ironic_tempest_plugin/tests/test_discovery.py b/ironic_tempest_plugin/tests/test_discovery.py
index 592fa81..c4508b7 100644
--- a/ironic_tempest_plugin/tests/test_discovery.py
+++ b/ironic_tempest_plugin/tests/test_discovery.py
@@ -115,7 +115,7 @@
@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 @@
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'])