Skip to content

Commit

Permalink
Merge pull request #698 from permitio/rk/fix-app-tests
Browse files Browse the repository at this point in the history
App Tests: Fix setting SSH key path
  • Loading branch information
roekatz authored Nov 11, 2024
2 parents 0b9a6fc + aab5388 commit c7e5bb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
OPAL_TESTS_POLICY_REPO_DEPLOY_KEY: ${{ secrets.OPAL_TESTS_POLICY_REPO_DEPLOY_KEY }}
run: |
# Prepare git for using tests policy repo
export OPAL_POLICY_REPO_SSH_KEY_PATH=$(realpath ./opal-tests-policy-repo-key)
export OPAL_POLICY_REPO_SSH_KEY_PATH=$(realpath .)/opal-tests-policy-repo-key
echo "$OPAL_TESTS_POLICY_REPO_DEPLOY_KEY" > $OPAL_POLICY_REPO_SSH_KEY_PATH
chmod 400 $OPAL_POLICY_REPO_SSH_KEY_PATH
Expand Down
6 changes: 4 additions & 2 deletions app-tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ function test_data_publish {
function test_statistics {
echo "- Testing statistics feature"
# Make sure 2 servers & 2 clients (repeat few times cause different workers might response)
for _ in {1..10}; do
curl -s 'http://localhost:7002/stats' --header "Authorization: Bearer $OPAL_DATA_SOURCE_TOKEN" | grep '"client_count":2,"server_count":2'
for port in {7002..7003}; do
for _ in {1..8}; do
curl -s "http://localhost:${port}/stats" --header "Authorization: Bearer $OPAL_DATA_SOURCE_TOKEN" | grep '"client_count":2,"server_count":2'
done
done
}

Expand Down

0 comments on commit c7e5bb4

Please sign in to comment.