Skip to content

Commit

Permalink
test dns issue on GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
m00g3n committed Mar 27, 2024
1 parent 2729094 commit 4a407eb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/kyma-integration-k3d-agent-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
jobs:
test:
runs-on: ubuntu-latest
environment: compass-runtime-agent
steps:
- uses: azure/setup-helm@v4.1.0
id: install
Expand All @@ -26,8 +27,16 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: test
env:
COMPASS_HOST: ${{ secrets.COMPASS_HOST }}
run: |
echo $COMPASS_HOST
- name: Run unit tests
run: make -C tests/hack/ci k3d-agent-tests
env:
COMPASS_CLIENT_ID: ${{ secrets.COMPASS_CLIENT_ID }}
COMPASS_CLIENT_SECRET: ${{ secrets.COMPASS_CLIENT_SECRET }}
run: make -C tests/hack/ci k3d-agent-tests COMPASS_HOST=${{ secrets.COMPASS_HOST }}
- name: Archive test results
if: always()
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion tests/Makefile.test-compass-runtime-agent
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
NAMESPACE ?= test
GOPATH ?= $(shell go env GOPATH)
DIRECTOR_URL=https://compass-gateway-auth-oauth.$(COMPASS_HOST)/director/graphql
TOKENS_ENDPOINT=https://oauth2.${COMPASS_HOST}/oauth2/token
TOKENS_ENDPOINT=https://oauth2.$(COMPASS_HOST)/oauth2/token

TEST_TIMEOUT = "4m"
CLUSTER_NAME ?= kyma
Expand Down
5 changes: 3 additions & 2 deletions tests/scripts/fetch-test-logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function fetch_tests() {
fi
local LOGS_OUT=${2:-${PWD}}
local NAMESPACE=${3:-test}
local TEST_TIMEOUT=${4:-900s}
local TEST_TIMEOUT=${4:-300s}
# wait for the job to finish
kubectl wait job/$JOB_NAME \
-n $NAMESPACE \
Expand All @@ -31,5 +31,6 @@ function fetch_tests() {
exit $__job_result__
}

echo "host:"$COMPASS_HOST

fetch_tests $@

0 comments on commit 4a407eb

Please sign in to comment.