DNM: Enable disabled tests and troubleshoot

Change-Id: I7d520a314c5a5a486e0aa7c8e14240acb3a49e88
This commit is contained in:
Michal Nasiadka 2022-01-20 18:07:57 +01:00
parent 9b9eacfa51
commit 5457eddbde
2 changed files with 7 additions and 8 deletions

View File

@ -16,7 +16,7 @@
vars:
tox_envlist: all
tempest_test_regex: ^magnum_tempest_plugin.tests.api
tempest_exclude_regex: (test_create_list_sign_delete_clusters|test_create_cluster_with_zero_nodes)
tempest_exclude_regex: (test_create_list_sign_delete_clusters)
devstack_local_conf:
test-config:
$TEMPEST_CONFIG:

View File

@ -229,15 +229,14 @@ Q0uA0aVog3f5iJxCa3Hp5gxbJQ6zV6kJ0TEsuaaOhEko9sdpCoPOnRBm2i/XRD2D
@decorators.idempotent_id('262eb132-a857-11e9-9382-00224d6b7bc1')
def test_create_cluster_with_zero_nodes(self):
gen_model = datagen.valid_cluster_data(
cluster_template_id=self.cluster_template.uuid, node_count=0)
cluster_template_id=self.cluster_template.uuid, node_count=0,
master_count=0)
# test cluster create
_, cluster_model = self._create_cluster(gen_model)
self.assertNotIn('status', cluster_model)
# test cluster delete
self._delete_cluster(cluster_model.uuid)
self.clusters.remove(cluster_model.uuid)
resp, cluster_model = self._create_cluster(gen_model)
self.assertRaises(
exceptions.BadRequest,
self.cluster_client.post_cluster, gen_model)
@testtools.testcase.attr('negative')
@decorators.idempotent_id('29c6c5f0-a857-11e9-9382-00224d6b7bc1')