Skip to content

Commit

Permalink
update helm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Aug 5, 2023
1 parent 3e8d09d commit d8ae5f2
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
{{/* Poke the pod's management API */}}
- name: readiness
image: curlimages/curl
command: [ 'curl' ]
command: [ 'curl', '--fail' ]
args: [ '{{- printf "http://%s-controlplane:%v%s/check/readiness" (include "txdc.fullname" $ ) $.Values.controlplane.endpoints.default.port $.Values.controlplane.endpoints.default.path -}}' ]

{{/* Try adding a BPN Group to the store via the management API */}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
containers:
- name: wget
image: curlimages/curl
command: [ 'curl' ]
command: [ 'curl', '--fail' ]
args: [ '{{- printf "http://%s-dataplane:%v%s/check/readiness" (include "txdc.fullname" $ ) $.Values.dataplane.endpoints.default.port $.Values.dataplane.endpoints.default.path -}}' ]
restartPolicy: Never
securityContext:
Expand All @@ -40,4 +40,4 @@ spec:
runAsNonRoot: true
runAsUser: 100 # curl_user
seccompProfile:
type: RuntimeDefault
type: RuntimeDefault
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,8 @@ spec:
containers:
- name: readiness
image: curlimages/curl
command: [ 'curl' ]
command: [ 'curl', '--fail' ]
args: [ '{{- printf "http://%s-runtime:%v%s/check/readiness" (include "txdc.fullname" $ ) $.Values.runtime.endpoints.default.port $.Values.runtime.endpoints.default.path -}}' ]
{{/* Try adding a BPN Group to the store via the management API */}}
- name: mgmt-api-bpn-store
image: curlimages/curl
command: [ 'curl', '-X', 'POST', '--fail','-H','Content-Type: application/json', '-H', '{{- printf "x-api-key: %s" $.Values.runtime.endpoints.management.authKey }}', '-d', '{
@context": {
"tx": "https://w3id.org/tractusx/v0.0.1/ns/"
},
"@id": "tx:BPN000001234",
"tx:groups": ["group1", "group2", "group3"]
}' ]
args: [ '{{- printf "http://%s-runtime:%v%s/business-partner-groups" (include "txdc.fullname" $ ) $.Values.runtime.endpoints.management.port $.Values.runtime.endpoints.management.path -}}' ]
restartPolicy: Never
securityContext:
fsGroup: 101 # curl_group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
{{/* Poke the pod's management API */}}
- name: readiness
image: curlimages/curl
command: [ 'curl' ]
command: [ 'curl', '--fail' ]
args: [ '{{- printf "http://%s-controlplane:%v%s/check/readiness" (include "txdc.fullname" $ ) $.Values.controlplane.endpoints.default.port $.Values.controlplane.endpoints.default.path -}}' ]

{{/* Try adding a BPN Group to the store via the management API */}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#
# Copyright (c) 2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (c) 2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
#

---
apiVersion: v1
Expand All @@ -31,7 +31,7 @@ spec:
containers:
- name: wget
image: curlimages/curl
command: [ 'curl' ]
command: [ 'curl', '--fail' ]
args: [ '{{- printf "http://%s-dataplane:%v%s/check/readiness" (include "txdc.fullname" $ ) $.Values.dataplane.endpoints.default.port $.Values.dataplane.endpoints.default.path -}}' ]
restartPolicy: Never
securityContext:
Expand All @@ -40,4 +40,4 @@ spec:
runAsNonRoot: true
runAsUser: 100 # curl_user
seccompProfile:
type: RuntimeDefault
type: RuntimeDefault

0 comments on commit d8ae5f2

Please sign in to comment.