locust-cloud 1.0.19__py3-none-any.whl → 1.0.21__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 +5 -1
- locust_cloud/cloud.py +3 -2
- 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.19.dist-info → locust_cloud-1.0.21.dist-info}/METADATA +1 -1
- {locust_cloud-1.0.19.dist-info → locust_cloud-1.0.21.dist-info}/RECORD +8 -8
- {locust_cloud-1.0.19.dist-info → locust_cloud-1.0.21.dist-info}/WHEEL +0 -0
- {locust_cloud-1.0.19.dist-info → locust_cloud-1.0.21.dist-info}/entry_points.txt +0 -0
locust_cloud/auth.py
CHANGED
@@ -4,8 +4,9 @@ from datetime import UTC, datetime, timedelta
|
|
4
4
|
import requests
|
5
5
|
from flask import redirect, request, url_for
|
6
6
|
from flask_login import UserMixin, current_user, login_user
|
7
|
+
from locust_cloud.constants import DEFAULT_LAMBDA_URL
|
7
8
|
|
8
|
-
LAMBDA =
|
9
|
+
LAMBDA = DEFAULT_LAMBDA_URL
|
9
10
|
|
10
11
|
|
11
12
|
class AuthUser(UserMixin):
|
@@ -17,6 +18,9 @@ class AuthUser(UserMixin):
|
|
17
18
|
|
18
19
|
|
19
20
|
def set_credentials(credentials, response):
|
21
|
+
if not credentials.get("cognito_client_id_token"):
|
22
|
+
return response
|
23
|
+
|
20
24
|
id_token = credentials["cognito_client_id_token"]
|
21
25
|
user_sub_id = credentials["user_sub_id"]
|
22
26
|
refresh_token = credentials["refresh_token"]
|
locust_cloud/cloud.py
CHANGED
@@ -190,8 +190,8 @@ def main() -> None:
|
|
190
190
|
)
|
191
191
|
sys.exit(1)
|
192
192
|
|
193
|
-
logger.info(f"Logging you into Locust Cloud ({options.
|
194
|
-
|
193
|
+
logger.info(f"Logging you into Locust Cloud ({options.aws_region_name}, v{__version__})")
|
194
|
+
logger.debug(f"Lambda url: {options.lambda_url}")
|
195
195
|
credential_manager = CredentialManager(
|
196
196
|
lambda_url=options.lambda_url,
|
197
197
|
access_key=options.aws_access_key_id,
|
@@ -255,6 +255,7 @@ def main() -> None:
|
|
255
255
|
{"name": "LOCUST_REQUIREMENTS_URL", "value": requirements_url},
|
256
256
|
{"name": "LOCUST_FLAGS", "value": " ".join(locust_options)},
|
257
257
|
{"name": "LOCUST_WEB_HOST_DISPLAY_NAME", "value": "_____"},
|
258
|
+
{"name": "LOCUST_API_BASE_URL", "value": DEFAULT_LAMBDA_URL},
|
258
259
|
*locust_env_variables,
|
259
260
|
],
|
260
261
|
"worker_count": worker_count,
|