From 87974d4327b371ea7f52cb91887b3a36374a2fe1 Mon Sep 17 00:00:00 2001 From: index-git Date: Thu, 20 Feb 2025 11:11:38 +0100 Subject: [PATCH] Run against preprod demo instance --- run_inspect.py | 6 +++--- start_layman.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/run_inspect.py b/run_inspect.py index 6aaabc7..2df539d 100644 --- a/run_inspect.py +++ b/run_inspect.py @@ -28,14 +28,14 @@ class WmsCapabilitiesRequest: def main(): - n_cycles_per_user = 15 - n_users = 4 + n_cycles_per_user = 20 + n_users = 3 n_cycles = n_cycles_per_user*n_users csv_file_path = 'tmp/performance.csv' with ((OAuth2ProviderMock())): - client = RestClient("http://localhost:8000") + client = RestClient("http://localhost") for user_n in range(1, n_users + 1): username = f'{USERNAME_PREFIX}{user_n}' diff --git a/start_layman.sh b/start_layman.sh index 8f853d4..bfea976 100755 --- a/start_layman.sh +++ b/start_layman.sh @@ -6,9 +6,9 @@ pushd ../layman make stop-and-remove-all-docker-containers || true # start Layman with oauth2_provider_mock authentication -cp .env.dev .env +# cp .env.dev .env sed -i -e "s/OAUTH2_INTROSPECTION_URL=.*/OAUTH2_INTROSPECTION_URL=http:\\/\\/host.docker.internal:8123\\/rest\\/test-oauth2\\/introspection?is_active=true/" .env sed -i -e "s/OAUTH2_USER_PROFILE_URL=.*/OAUTH2_USER_PROFILE_URL=http:\\/\\/host.docker.internal:8123\\/rest\\/test-oauth2\\/user-profile/" .env -make start-dev -docker logs -f layman_dev 2>&1 | sed '/Layman successfully started/ q' +make start-demo +docker logs -f layman 2>&1 | sed '/Layman successfully started/ q' popd