Skip to content

Commit

Permalink
restore test_load.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vimauro committed Sep 5, 2023
1 parent a5ec4ac commit 1ee2573
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions test/test_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,12 @@
from pyscitt import crypto
from pyscitt.client import Client

NUM_CLAIMS = 100
LOCUST_PEAK_USERS = 500
LOCUST_USERS_SPAWN_RATE = 10
LOCUST_RUNTIME_SEC = 60

@pytest.mark.perf
@pytest.mark.disable_proxy
class TestLoad:
def test_load(self, client: Client, did_web, tmp_path: Path):
for i in range(NUM_CLAIMS):
for i in range(100):
identity = did_web.create_identity()
claim = crypto.sign_json_claimset(identity, {"foo": "bar"})
(tmp_path / f"claim{i}.cose").write_bytes(claim)
Expand All @@ -36,11 +32,11 @@ def test_load(self, client: Client, did_web, tmp_path: Path):
"--host",
client.url,
"--users",
str(LOCUST_PEAK_USERS),
"100",
"--spawn-rate",
str(LOCUST_USERS_SPAWN_RATE),
"10",
"--run-time",
str(LOCUST_RUNTIME_SEC) + "s",
"1m",
"--scitt-claims",
str(tmp_path),
],
Expand Down

0 comments on commit 1ee2573

Please sign in to comment.