commit | 9f0671e6471cba720dbaec40446728cb8efd00a6 | [log] [tgz] |
---|---|---|
author | jackychang <ya2648130@gmail.com> | Thu Mar 06 04:15:10 2025 +0000 |
committer | jackychang <ya2648130@gmail.com> | Thu Mar 06 04:15:10 2025 +0000 |
tree | e2614c4edd72d0d8087ab2ca7e0765974255eb1b | |
parent | 56fe73e0edb28cb2a94db5a332217dd61b750a53 [diff] |
Replaced all punctuation with an underscore in the node resource class. If we want to associate a flavor with a custom resource class, it must follow the rules (refer tohttps://docs.openstack.org/ironic/latest/install/configure-nova-flavors.html ). However, if we only want to define a class of nodes, it does not have to follow these rules. The formatting of the node resource class has been adjusted to pass the test. Change-Id: Ia14cbaa2c53d6a6c3e22f1a10b70597aec4afeca
diff --git a/ironic_tempest_plugin/tests/scenario/test_baremetal_basic_ops.py b/ironic_tempest_plugin/tests/scenario/test_baremetal_basic_ops.py index dcfc023..0d15fd4 100644 --- a/ironic_tempest_plugin/tests/scenario/test_baremetal_basic_ops.py +++ b/ironic_tempest_plugin/tests/scenario/test_baremetal_basic_ops.py
@@ -177,6 +177,9 @@ # CUSTOM_ prefix. Normalise it. node_resource_class = node['resource_class'] node_resource_class = node_resource_class.upper() + node_resource_class = node_resource_class.translate( + str.maketrans(" -.:", "____", "!@#$%^&*()+=/\\?<>|\"'") + ) node_resource_class = 'CUSTOM_' + node_resource_class self.assertEqual(resource_class, node_resource_class)