locust-cloud 1.21.7__tar.gz → 1.21.8__tar.gz
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-1.21.7 → locust_cloud-1.21.8}/.github/workflows/daily-check.yml +3 -1
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/PKG-INFO +1 -1
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/apisession.py +1 -1
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/cloud.py +1 -1
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/docs/1-first-run.rst +1 -1
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/web_login.py +1 -1
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locustfile.py +11 -2
- locust_cloud-1.21.8/testdata/requirements.txt +1 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/tests/web_login_test.py +1 -1
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/.github/workflows/tests.yml +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/.gitignore +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/.pre-commit-config.yaml +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/.vscode/extensions.json +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/.vscode/launch.json +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/.vscode/settings.json +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/LICENSE +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/README.md +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/__init__.py +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/actions.py +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/args.py +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/common.py +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/docs/.gitignore +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/docs/2-examples.rst +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/docs/images/locust-cloud-screenshot.png +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/docs/locust-cloud.rst +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/input_events.py +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/websocket.py +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/pyproject.toml +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/testdata/extra-files/extra.txt +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/testdata/extra-package/example/__init__.py +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/testdata/extra-package/setup.py +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/tests/args_test.py +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/tests/cloud_test.py +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/tests/websocket_test.py +0 -0
- {locust_cloud-1.21.7 → locust_cloud-1.21.8}/uv.lock +0 -0
@@ -35,13 +35,15 @@ jobs:
|
|
35
35
|
# any local changes would make hatch-vcs set a "local version" (+dev0...), so we ignore any uv.lock updates:
|
36
36
|
- run: git update-index --assume-unchanged uv.lock
|
37
37
|
- run: uv run locust-cloud --help
|
38
|
-
- run: uv run locust-cloud --image-tag master --profile status-checker --mock-server --autostart --autoquit 0 --run-time 1m --loglevel DEBUG --extra-files testdata/extra-files --extra-packages testdata/extra-package |& tee output.txt
|
38
|
+
- run: uv run locust-cloud --image-tag master --profile status-checker --mock-server --autostart --autoquit 0 --run-time 1m --loglevel DEBUG --extra-files testdata/extra-files --extra-packages testdata/extra-package --requirements testdata/requirements.txt |& tee output.txt
|
39
39
|
# check ok exit
|
40
40
|
- run: grep -m 1 '(exit code 0)' output.txt
|
41
41
|
# check extra files specified were available
|
42
42
|
- run: "grep -m 1 -- '--extra-files verification: pineapple' output.txt"
|
43
43
|
# check extra package were successfully installed
|
44
44
|
- run: "grep -m 1 -- 'Hello from the example package!' output.txt"
|
45
|
+
# check --requirements were successfully installed
|
46
|
+
- run: "grep -m 1 -- 'dotenv imported successfully' output.txt"
|
45
47
|
# check for errors
|
46
48
|
- run: bash -ec "! grep Traceback output.txt"
|
47
49
|
- run: bash -ec "! grep ERROR output.txt"
|
@@ -8,7 +8,7 @@ from locust_cloud.common import VALID_REGIONS, __version__, get_api_url, read_cl
|
|
8
8
|
|
9
9
|
logger = logging.getLogger(__name__)
|
10
10
|
|
11
|
-
unauthorized_message = "You need to log in again. Please run:\n locust --
|
11
|
+
unauthorized_message = "You need to log in again. Please run:\n locust --login"
|
12
12
|
|
13
13
|
|
14
14
|
class ApiSession(requests.Session):
|
@@ -122,7 +122,7 @@ def main():
|
|
122
122
|
logger.error(f"Failed to deploy the load generators: {e}")
|
123
123
|
return 1
|
124
124
|
else:
|
125
|
-
logger.error("Your Locust instance is still running, run locust --
|
125
|
+
logger.error("Your Locust instance is still running, run locust --delete")
|
126
126
|
return 1
|
127
127
|
|
128
128
|
if response.status_code != 200:
|
@@ -62,7 +62,7 @@ If the browser does not open or you wish to use a different device to authorize
|
|
62
62
|
print(f"\nFailed to authorize CLI: {data['reason']}")
|
63
63
|
sys.exit(1)
|
64
64
|
elif data["state"] == "authorized":
|
65
|
-
print("\nAuthorization succeded. Now you can
|
65
|
+
print("\nAuthorization succeded. Now you can start a cloud run using: locust --cloud ...")
|
66
66
|
break
|
67
67
|
else:
|
68
68
|
print("\nGot unexpected response when authorizing CLI")
|
@@ -27,10 +27,19 @@ extra = pathlib.Path("testdata/extra-files/extra.txt")
|
|
27
27
|
if extra.exists():
|
28
28
|
print("--extra-files verification:", extra.read_text())
|
29
29
|
|
30
|
+
try:
|
31
|
+
import example # type: ignore
|
30
32
|
|
31
|
-
|
33
|
+
example.hello()
|
34
|
+
except ImportError:
|
35
|
+
pass # ignore this for local runs
|
32
36
|
|
33
|
-
|
37
|
+
try:
|
38
|
+
import dotenv # type: ignore # noqa: F401
|
39
|
+
|
40
|
+
print("dotenv imported successfully, --requirements seems to be working")
|
41
|
+
except ImportError:
|
42
|
+
pass # ignore this for local runs
|
34
43
|
|
35
44
|
|
36
45
|
if __name__ == "__main__":
|
@@ -0,0 +1 @@
|
|
1
|
+
python-dotenv==1.0.1
|
@@ -72,7 +72,7 @@ def test_browser_login_succeded(mocked_requests, select_region, monkeypatch, cap
|
|
72
72
|
)
|
73
73
|
locust_cloud.web_login.web_login()
|
74
74
|
|
75
|
-
expected = "Authorization succeded. Now you can
|
75
|
+
expected = "Authorization succeded. Now you can start a cloud run using: locust --cloud ..."
|
76
76
|
assert expected in capsys.readouterr().out
|
77
77
|
|
78
78
|
expected_cloud_config = locust_cloud.common.CloudConfig(
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/docs/images/locust-cloud-screenshot.png
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|