locust-cloud 1.0.18__py3-none-any.whl → 1.0.20__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/auth.py +3 -3
- locust_cloud/cloud.py +3 -1
- locust_cloud/webui/dist/assets/{index-Cj0_NN88.js → index-BG65KOq7.js} +84 -84
- locust_cloud/webui/dist/index.html +1 -1
- {locust_cloud-1.0.18.dist-info → locust_cloud-1.0.20.dist-info}/METADATA +1 -1
- {locust_cloud-1.0.18.dist-info → locust_cloud-1.0.20.dist-info}/RECORD +8 -8
- {locust_cloud-1.0.18.dist-info → locust_cloud-1.0.20.dist-info}/WHEEL +0 -0
- {locust_cloud-1.0.18.dist-info → locust_cloud-1.0.20.dist-info}/entry_points.txt +0 -0
locust_cloud/auth.py
CHANGED
@@ -59,10 +59,10 @@ def register_auth(environment):
|
|
59
59
|
|
60
60
|
return response
|
61
61
|
|
62
|
-
@environment.web_ui.app.route("/authenticate")
|
62
|
+
@environment.web_ui.app.route("/authenticate", methods=["POST"])
|
63
63
|
def login_submit():
|
64
|
-
username = request.
|
65
|
-
password = request.
|
64
|
+
username = request.form.get("username")
|
65
|
+
password = request.form.get("password")
|
66
66
|
|
67
67
|
try:
|
68
68
|
auth_response = requests.post(f"{LAMBDA}/auth/login", json={"username": username, "password": password})
|
locust_cloud/cloud.py
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import importlib.metadata
|
1
2
|
import json
|
2
3
|
import logging
|
3
4
|
import math
|
@@ -22,6 +23,7 @@ from locust_cloud.constants import (
|
|
22
23
|
from locust_cloud.credential_manager import CredentialError, CredentialManager
|
23
24
|
|
24
25
|
LOCUST_ENV_VARIABLE_IGNORE_LIST = ["LOCUST_BUILD_PATH", "LOCUST_SKIP_MONKEY_PATCH"]
|
26
|
+
__version__ = importlib.metadata.version("locust-cloud")
|
25
27
|
|
26
28
|
|
27
29
|
class LocustTomlConfigParser(configargparse.TomlConfigParser):
|
@@ -188,7 +190,7 @@ def main() -> None:
|
|
188
190
|
)
|
189
191
|
sys.exit(1)
|
190
192
|
|
191
|
-
logger.info(f"Logging you into Locust Cloud ({options.lambda_url}, {options.aws_region_name})")
|
193
|
+
logger.info(f"Logging you into Locust Cloud ({options.lambda_url}, {options.aws_region_name}, v{__version__})")
|
192
194
|
|
193
195
|
credential_manager = CredentialManager(
|
194
196
|
lambda_url=options.lambda_url,
|