Skip to content

Commit

Permalink
test: added test auth in integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobressan committed Jul 16, 2024
1 parent 5b5d747 commit 37009fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/expect
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ while true; do
fi
done

TOKEN=$(curl --request POST --url https://dev-dflg0ssi.us.auth0.com/oauth/token --header 'content-type: application/json' --data "$TEST_CREDENTIAL" | jq -r '.access_token')
echo $TOKEN

NODE_IP=$(kubectl get nodes -o jsonpath='{.items[0].status.addresses[?(@.type=="InternalIP")].address}')
NAMESPACE=$(./grpcurl -plaintext -d '{"name": "New Namespace"}' "$NODE_IP":30950 demeter.ops.v1alpha.ProjectService.CreateProject | jq -r '.namespace')
NAMESPACE=$(./grpcurl -plaintext -H "Authorization: Bearer $TOKEN" -d '{"name": "New Namespace"}' "$NODE_IP":30950 demeter.ops.v1alpha.ProjectService.CreateProject | jq -r '.namespace')
ATTEMPT=1
MAX_ATTEMPT=120

Expand Down
2 changes: 1 addition & 1 deletion test/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ data:
brokers="redpanda.demeter-kafka.svc.cluster.local:19092"
[auth]
url="https://us.auth0.com"
url="https://dev-dflg0ssi.us.auth0.com"
kind: ConfigMap
metadata:
name: rpc-config
Expand Down

0 comments on commit 37009fb

Please sign in to comment.