[CVP-SPT] generate keypair without flavor name
Flavor name can have 'dot' symbol (like m1.tiny)
so the creating of keypair fails with "BadRequest: Keypair data is invalid:
Keypair name contains unsafe characters" error
Change-Id: Iced36a35900f054152ce65a0a1a9604f95d76df3
Related-Prod:#PROD-34391(PROD:34391)
diff --git a/test_set/cvp-spt/fixtures/base.py b/test_set/cvp-spt/fixtures/base.py
index 56bdb1b..5b01101 100644
--- a/test_set/cvp-spt/fixtures/base.py
+++ b/test_set/cvp-spt/fixtures/base.py
@@ -75,7 +75,8 @@
os_resource['sec_group'] = os_actions.create_sec_group()
os_resource['keypair'] = openstack_clients.compute.keypairs.create(
- '{}-{}'.format(flavor_name, random.randrange(100, 999)))
+ '{}-{}'.format('spt-key', random.randrange(100, 999))
+ )
os_resource['net1'] = os_actions.create_network_resources()
os_resource['ext_net'] = os_actions.get_external_network()
adm_tenant = os_actions.get_admin_tenant()