Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions run_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
Expand Down
6 changes: 3 additions & 3 deletions start_layman.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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