basic emr done
This commit is contained in:
parent
02fa630a3c
commit
cea25e75c5
8 changed files with 634 additions and 0 deletions
14
moto/emr/utils.py
Normal file
14
moto/emr/utils.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import random
|
||||
import string
|
||||
|
||||
|
||||
def random_job_id(size=13):
|
||||
chars = range(10) + list(string.uppercase)
|
||||
job_tag = ''.join(unicode(random.choice(chars)) for x in range(size))
|
||||
return 'j-{}'.format(job_tag)
|
||||
|
||||
|
||||
def random_instance_group_id(size=13):
|
||||
chars = range(10) + list(string.uppercase)
|
||||
job_tag = ''.join(unicode(random.choice(chars)) for x in range(size))
|
||||
return 'i-{}'.format(job_tag)
|
||||
Loading…
Add table
Add a link
Reference in a new issue