Add py35 gate for ironic-inspector
This patch adds py35 gate for ironic-inspector and also adds support for inspection in python3 environment by rolling out configuration of swift in inspector. Change-Id: I83429a1ba79208245f6c6e1f8b4eb8a16f014868
This commit is contained in:
parent
04aed9fa85
commit
40e2bbc6dd
@ -21,7 +21,6 @@ from ironic_inspector.test.inspector_tempest_plugin.tests import manager
|
||||
class InspectorBasicTest(manager.InspectorScenarioTest):
|
||||
|
||||
def verify_node_introspection_data(self, node):
|
||||
self.assertEqual('yes', node['extra']['rule_success'])
|
||||
data = self.introspection_data(node['uuid'])
|
||||
self.assertEqual(data['cpu_arch'],
|
||||
self.flavor['properties']['cpu_arch'])
|
||||
@ -58,7 +57,7 @@ class InspectorBasicTest(manager.InspectorScenarioTest):
|
||||
interval=self.wait_provisioning_state_interval)
|
||||
|
||||
@decorators.idempotent_id('03bf7990-bee0-4dd7-bf74-b97ad7b52a4b')
|
||||
@utils.services('compute', 'image', 'network', 'object_storage')
|
||||
@utils.services('compute', 'image', 'network')
|
||||
def test_baremetal_introspection(self):
|
||||
"""This smoke test case follows this set of operations:
|
||||
|
||||
@ -93,6 +92,8 @@ class InspectorBasicTest(manager.InspectorScenarioTest):
|
||||
|
||||
for node_id in self.node_ids:
|
||||
node = self.node_show(node_id)
|
||||
self.assertEqual('yes', node['extra']['rule_success'])
|
||||
if CONF.service_available.swift:
|
||||
self.verify_node_introspection_data(node)
|
||||
self.verify_node_flavor(node)
|
||||
|
||||
|
@ -143,6 +143,7 @@ class InspectorDiscoveryTest(manager.InspectorScenarioTest):
|
||||
|
||||
inspected_node = self.node_show(self.node_info['name'])
|
||||
self.verify_node_flavor(inspected_node)
|
||||
if CONF.service_available.swift:
|
||||
self.verify_node_introspection_data(inspected_node)
|
||||
self.verify_node_driver_info(self.node_info, inspected_node)
|
||||
self.assertEqual(ProvisionStates.ENROLL,
|
||||
|
Loading…
Reference in New Issue
Block a user