diff --git a/test/expect b/test/expect index cffa78b..4e353d1 100755 --- a/test/expect +++ b/test/expect @@ -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 diff --git a/test/manifest.yaml b/test/manifest.yaml index 5be7093..b8e6b43 100644 --- a/test/manifest.yaml +++ b/test/manifest.yaml @@ -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