support - intial commit to kick off trusted advisor checks (#3685)
* support - intial commit to kick off trusted advisor checks * edit - expanded testing to include checking for expected check ids and check names. Added server testing added support resource json to manifest file and simplified support response return from reviewed comments * Streamline loading of resource files * edit - ensured regions are assigned in models Co-authored-by: Bert Blommers <info@bertblommers.nl>
This commit is contained in:
parent
e8f1522d1a
commit
4d0ee82f98
14 changed files with 1690 additions and 8 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import json
|
||||
import random
|
||||
import string
|
||||
|
||||
|
|
@ -8,3 +9,14 @@ def random_string(length=None):
|
|||
[random.choice(string.ascii_letters + string.digits) for i in range(n)]
|
||||
)
|
||||
return random_str
|
||||
|
||||
|
||||
def load_resource(filename):
|
||||
"""
|
||||
Open a file, and return the contents as JSON.
|
||||
Usage:
|
||||
from pkg_resources import resource_filename
|
||||
load_resource(resource_filename(__name__, "resources/file.json"))
|
||||
"""
|
||||
with open(filename, "r") as f:
|
||||
return json.load(f)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue