Add describe_endpoint and register_certificate_without_ca in iot_mock module with unittest (#3279)
Co-authored-by: Zhi Li <zhi_li@trendmicro.com>
This commit is contained in:
parent
d2e16ecc2e
commit
8854fd06e8
5 changed files with 148 additions and 2 deletions
10
moto/utilities/utils.py
Normal file
10
moto/utilities/utils.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import random
|
||||
import string
|
||||
|
||||
|
||||
def random_string(length=None):
|
||||
n = length or 20
|
||||
random_str = "".join(
|
||||
[random.choice(string.ascii_letters + string.digits) for i in range(n)]
|
||||
)
|
||||
return random_str
|
||||
Loading…
Add table
Add a link
Reference in a new issue