Skip to content

Commit a6a6e02

Browse files
committed
feat: expose runtime type choice to smoke test script (defaults to micro)
1 parent 26c39e8 commit a6a6e02

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/smoke.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@
1414
from wherobots.db.constants import DEFAULT_ENDPOINT, DEFAULT_SESSION_TYPE
1515
from wherobots.db.connection import Connection
1616
from wherobots.db.region import Region
17+
from wherobots.db.runtime import Runtime
1718
from wherobots.db.session_type import SessionType
1819

1920
if __name__ == "__main__":
2021
parser = argparse.ArgumentParser()
2122
parser.add_argument("--api-key-file", help="File containing the API key")
2223
parser.add_argument("--token-file", help="File containing the token")
2324
parser.add_argument("--region", help="Region to connect to (ie. aws-us-west-2)")
25+
parser.add_argument("--runtime", help="Runtime type (ie. tiny)")
2426
parser.add_argument("--version", help="Runtime version (ie. latest)")
2527
parser.add_argument(
2628
"--session-type",
@@ -83,6 +85,7 @@
8385
api_key=api_key,
8486
shutdown_after_inactive_seconds=args.shutdown_after_inactive_seconds,
8587
wait_timeout=900,
88+
runtime=Runtime(args.runtime) if args.runtime else Runtime.MICRO,
8689
region=Region(args.region) if args.region else Region.AWS_US_WEST_2,
8790
version=args.version,
8891
session_type=SessionType(args.session_type),

0 commit comments

Comments
 (0)