locust-cloud 1.23.3.dev3__py3-none-any.whl → 1.23.3.dev10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- locust_cloud/args.py +1 -5
- locust_cloud/cloud.py +6 -4
- {locust_cloud-1.23.3.dev3.dist-info → locust_cloud-1.23.3.dev10.dist-info}/METADATA +1 -1
- {locust_cloud-1.23.3.dev3.dist-info → locust_cloud-1.23.3.dev10.dist-info}/RECORD +7 -7
- {locust_cloud-1.23.3.dev3.dist-info → locust_cloud-1.23.3.dev10.dist-info}/WHEEL +0 -0
- {locust_cloud-1.23.3.dev3.dist-info → locust_cloud-1.23.3.dev10.dist-info}/entry_points.txt +0 -0
- {locust_cloud-1.23.3.dev3.dist-info → locust_cloud-1.23.3.dev10.dist-info}/licenses/LICENSE +0 -0
locust_cloud/args.py
CHANGED
@@ -288,14 +288,10 @@ Parameters specified on command line override env vars, which in turn override c
|
|
288
288
|
add_config_file_help=False,
|
289
289
|
add_env_var_help=False,
|
290
290
|
)
|
291
|
+
# We do not use this, but we keep it here to consume it from CLI if provided
|
291
292
|
combined_cloud_parser.add_argument(
|
292
293
|
"-f",
|
293
294
|
"--locustfile",
|
294
|
-
metavar="<filename>",
|
295
|
-
default="locustfile.py",
|
296
|
-
help="The Python file that contains your test. Defaults to 'locustfile.py'.",
|
297
|
-
env_var="LOCUST_LOCUSTFILE",
|
298
|
-
type=transfer_encoded_file,
|
299
295
|
)
|
300
296
|
combined_cloud_parser.add_argument(
|
301
297
|
"-u",
|
locust_cloud/cloud.py
CHANGED
@@ -7,7 +7,7 @@ from threading import Thread
|
|
7
7
|
import requests
|
8
8
|
from locust_cloud.actions import delete
|
9
9
|
from locust_cloud.apisession import ApiSession
|
10
|
-
from locust_cloud.args import combined_cloud_parser
|
10
|
+
from locust_cloud.args import combined_cloud_parser, transfer_encoded_file
|
11
11
|
from locust_cloud.common import __version__
|
12
12
|
from locust_cloud.input_events import input_listener
|
13
13
|
from locust_cloud.websocket import SessionMismatchError, Websocket, WebsocketTimeout
|
@@ -27,15 +27,17 @@ def configure_logging(loglevel: str) -> None:
|
|
27
27
|
logging.getLogger("urllib3").setLevel(logging.INFO)
|
28
28
|
|
29
29
|
|
30
|
-
def main():
|
30
|
+
def main(locustfiles: list[str]):
|
31
31
|
options, locust_options = combined_cloud_parser.parse_known_args()
|
32
32
|
|
33
33
|
configure_logging(options.loglevel)
|
34
34
|
|
35
|
-
if not
|
35
|
+
if not locustfiles:
|
36
36
|
logger.error("A locustfile is required to run a test.")
|
37
37
|
return 1
|
38
38
|
|
39
|
+
s3_locustfiles = [transfer_encoded_file(locustfile) for locustfile in locustfiles]
|
40
|
+
|
39
41
|
session = ApiSession(options.non_interactive)
|
40
42
|
websocket = Websocket()
|
41
43
|
|
@@ -67,7 +69,7 @@ def main():
|
|
67
69
|
|
68
70
|
payload = {
|
69
71
|
"locust_args": locust_args,
|
70
|
-
"locustfile":
|
72
|
+
"locustfile": s3_locustfiles,
|
71
73
|
"user_count": options.users,
|
72
74
|
"mock_server": options.mock_server,
|
73
75
|
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
locust_cloud/__init__.py,sha256=6z2hE5rUP9WJyYgr-7XC2GhIV-05m8XxjOsnb8ae1WY,56
|
2
2
|
locust_cloud/actions.py,sha256=lMxKZCwfcsbYf9t5ti20QP60gKt8HHwyz8yjYm0H-a8,762
|
3
3
|
locust_cloud/apisession.py,sha256=JkXiGEtJCBxOW11P0KGr0AUc_AmfqAlO5SijC0zf85w,4368
|
4
|
-
locust_cloud/args.py,sha256=
|
5
|
-
locust_cloud/cloud.py,sha256=
|
4
|
+
locust_cloud/args.py,sha256=NUHgPBoLCuMXOclHPce-ABVmPGB1tJM-Q5BOUlbqI3M,10865
|
5
|
+
locust_cloud/cloud.py,sha256=krfuOE57YJwKbqpAxiSCrAxxRCk27nvtsrl_cAxrSjo,6021
|
6
6
|
locust_cloud/common.py,sha256=GVKkWcbbqd9n8oU-fHZRVZw3jGtuIVGSCLD2ZizeEo0,1160
|
7
7
|
locust_cloud/input_events.py,sha256=6gariDmjZfqQZDFOO_AbrqqMpDesQALEKfXZ3Lps6GQ,3417
|
8
8
|
locust_cloud/web_login.py,sha256=2RC2NHczVdlz2bzmcPDDOR5UbL5ymBK2DUeo_5V6gY0,2553
|
@@ -12,8 +12,8 @@ locust_cloud/docs/1-first-run.rst,sha256=4CyEoreZfbuon30bRocx7mmKWEso-pVQeWqPiRW
|
|
12
12
|
locust_cloud/docs/2-examples.rst,sha256=urm5twTrQahpkclXee7OOPf2q5DEHYzFA_BDu3HJCCA,10557
|
13
13
|
locust_cloud/docs/locust-cloud.rst,sha256=KwolrGHH4RtU7VvzO6-QRAJu-ekPPR6XVzdf8i9qZGM,156
|
14
14
|
locust_cloud/docs/images/locust-cloud-screenshot.png,sha256=ag0IxBi-40VexC84MApol1GCgRCL2h-l8NQDTMaeTyE,477350
|
15
|
-
locust_cloud-1.23.3.
|
16
|
-
locust_cloud-1.23.3.
|
17
|
-
locust_cloud-1.23.3.
|
18
|
-
locust_cloud-1.23.3.
|
19
|
-
locust_cloud-1.23.3.
|
15
|
+
locust_cloud-1.23.3.dev10.dist-info/METADATA,sha256=ztGw2mmd67ycwb9lttMru-yAgkY9O3vtr6BsY0VFHBc,828
|
16
|
+
locust_cloud-1.23.3.dev10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
17
|
+
locust_cloud-1.23.3.dev10.dist-info/entry_points.txt,sha256=PGyAb4e3aTsGS3N3VGShDl6VzJaXy7QwsEgsLOC7V00,57
|
18
|
+
locust_cloud-1.23.3.dev10.dist-info/licenses/LICENSE,sha256=Ow6fY6ta4KIjdlWalmxGvRP8yLmetvkbkl-SdHMjPIs,1093
|
19
|
+
locust_cloud-1.23.3.dev10.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|