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:
Connor 2021-02-14 12:22:16 +00:00 committed by GitHub
commit 4d0ee82f98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 1690 additions and 8 deletions

View file

@ -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)