86
86
- name : Checkout
87
87
uses : actions/checkout@v4
88
88
- uses : ./.github/actions/run-deployment-test
89
- name : " Run deployment test using KinD and Helm"
89
+ name : " Run deployment test using KinD and Helm - tokenbased auth "
90
90
with :
91
91
imagename : " edc-controlplane-postgresql-hashicorp-vault edc-dataplane-hashicorp-vault"
92
92
rootDir : " edc-controlplane/edc-controlplane-postgresql-hashicorp-vault edc-dataplane/edc-dataplane-hashicorp-vault"
@@ -101,8 +101,40 @@ jobs:
101
101
kubectl rollout status deployment tx-prod-controlplane
102
102
kubectl rollout status deployment tx-prod-dataplane
103
103
104
- # execute the helm test
105
- helm test tx-prod
104
+ # execute the helm test using token based auth in the Management API
105
+ helm test tx-prod --filter name=controlplane-with-token-auth-test
106
+
107
+ - uses : ./.github/actions/run-deployment-test
108
+ name : " Run deployment test using KinD and Helm - delegated auth"
109
+ with :
110
+ imagename : " edc-controlplane-postgresql-hashicorp-vault edc-dataplane-hashicorp-vault"
111
+ rootDir : " edc-controlplane/edc-controlplane-postgresql-hashicorp-vault edc-dataplane/edc-dataplane-hashicorp-vault"
112
+ k8sversion : ${{ matrix.k8s-version }}
113
+ helm_command : |-
114
+ helm install tx-prod charts/tractusx-connector \
115
+ -f edc-tests/deployment/src/main/resources/helm/tractusx-connector-test.yaml \
116
+ --set controlplane.endpoints.management.jwksUrl="http://foo-bar.com/.well-known/jwks.json" \
117
+ --dependency-update \
118
+ --wait-for-jobs --timeout=120s
119
+
120
+ # wait for the pod to become ready
121
+ kubectl rollout status deployment tx-prod-controlplane
122
+ kubectl rollout status deployment tx-prod-dataplane
123
+
124
+ kubectl port-forward service/tx-prod-controlplane 8081:8081 &
125
+
126
+ code=$(curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer sdfasdfasdf" -d '{
127
+ "@context": {
128
+ "tx": "https://w3id.org/tractusx/v0.0.1/ns/"
129
+ },
130
+ "@id": "tx:BPN000001234",
131
+ "tx:groups": ["group1", "group2", "group3"]
132
+ }' --silent -o /dev/null -w '%{http_code}' http://localhost:8081/management/v3/business-partner-groups)
133
+
134
+ if [[ $code -ne 401 ]]; then
135
+ echo "Expected a HTTP 401, got $code"
136
+ exit 1;
137
+ fi
106
138
107
139
test-azure-vault-postgres :
108
140
runs-on : ubuntu-latest
0 commit comments