cfme.utils.generators module¶
-
cfme.utils.generators.
random_vm_name
(context=None, max_length=15)[source]¶ Generates a valid VM name that should be valid for any provider we use.
- Constraints:
Maximum string length 15 characters (by default)
Only [a-z0-9-]
- Parameters
context – If you want to provide some custom string after
test-
instead ofvm
. It is recommended to use a maximum of 5 characters with the default 15 character limit. Longer strings will be truncated- Returns
A valid randomized VM name.