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)