diff --git a/.github/workflows/helm-test.yml b/.github/workflows/helm-test.yml index b651594d..fb74a2f2 100644 --- a/.github/workflows/helm-test.yml +++ b/.github/workflows/helm-test.yml @@ -34,6 +34,11 @@ jobs: - name: Kubernetes KinD Cluster uses: container-tools/kind-action@v1 + with: + # upgrade version, default (v0.17.0) uses node image v1.21.1 and doesn't work with more recent node image versions + version: v0.19.0 + # default value for event_name != workflow_dispatch + node_image: ${{ github.event.inputs.node_image || 'kindest/node:v1.24.6' }} - name: Build image uses: docker/build-push-action@v3 @@ -61,7 +66,7 @@ jobs: run: | changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) if [[ -n "$changed" ]]; then - echo "::set-output name=changed::true" + echo "changed=true" >> $GITHUB_OUTPUT fi - name: Run chart-testing (lint) run: ct lint --validate-maintainers=false --target-branch ${{ github.event.repository.default_branch }} --config charts/chart-testing-config.yaml diff --git a/charts/registry/Chart.yaml b/charts/registry/Chart.yaml index 2b481282..69c97dfd 100644 --- a/charts/registry/Chart.yaml +++ b/charts/registry/Chart.yaml @@ -23,7 +23,7 @@ name: registry description: Tractus-X Digital Twin Registry Helm Chart type: application -version: 0.3.10 +version: 0.3.11 appVersion: 0.3.9-M1 dependencies: diff --git a/charts/registry/templates/tests/test-connection.yaml b/charts/registry/templates/tests/test-connection.yaml index f7899f82..ec90f729 100644 --- a/charts/registry/templates/tests/test-connection.yaml +++ b/charts/registry/templates/tests/test-connection.yaml @@ -8,11 +8,10 @@ spec: containers: - name: test-container image: python:3.8-slim - workingDir: /tests - command: ['./test-script.sh'] securityContext: - runAsUser: 100 allowPrivilegeEscalation: false + workingDir: /tests + command: ['./test-script.sh'] volumeMounts: - name: test-script mountPath: /tests diff --git a/charts/registry/templates/tests/test-script-configmap.yaml b/charts/registry/templates/tests/test-script-configmap.yaml index 6c48a7ef..48baf603 100644 --- a/charts/registry/templates/tests/test-script-configmap.yaml +++ b/charts/registry/templates/tests/test-script-configmap.yaml @@ -62,7 +62,7 @@ data: stages: - name: Test get shell descriptors without access token request: - url: "{aas_registry_api_url:s}/registry/shell-descriptors" + url: "{aas_registry_api_url:s}/api/v3.0/shell-descriptors" method: GET response: status_code: 401 @@ -72,7 +72,7 @@ data: - name: Authenticated request request: - url: "{aas_registry_api_url:s}/registry/shell-descriptors" + url: "{aas_registry_api_url:s}/api/v3.0/shell-descriptors" method: GET headers: Content-Type: application/json @@ -95,13 +95,13 @@ data: - name: Create shell descriptor expect success request: - url: "{aas_registry_api_url:s}/registry/shell-descriptors" + url: "{aas_registry_api_url:s}/api/v3.0/shell-descriptors" method: POST headers: Content-Type: application/json Authorization: "Bearer {access_token}" json: - identification: !uuid + id: !uuid idShort: twin of a break (Testing) response: status_code: 201 @@ -109,11 +109,11 @@ data: content-type: application/json save: json: - returned_identification: identification + returned_id: id - - name: Get shell descriptor by identification + - name: Get shell descriptor by id request: - url: "{aas_registry_api_url:s}/registry/shell-descriptors/{returned_identification:s}" + url: "{aas_registry_api_url:s}/api/v3.0/shell-descriptors/{returned_id:s}" method: GET headers: Content-Type: application/json @@ -123,28 +123,29 @@ data: headers: content-type: application/json json: - identification: "{returned_identification:s}" - idShort: twin of a break (Testing) description: [] + displayName: [] + idShort: twin of a break (Testing) + id: "{returned_id:s}" specificAssetIds: [] submodelDescriptors: [] - - name: Update shell descriptor by identification + - name: Update shell descriptor by id request: - url: "{aas_registry_api_url:s}/registry/shell-descriptors/{returned_identification:s}" + url: "{aas_registry_api_url:s}/api/v3.0/shell-descriptors/{returned_id:s}" method: PUT headers: Content-Type: application/json Authorization: "Bearer {access_token}" json: - identification: "{returned_identification:s}" + id: "{returned_id:s}" idShort: twin of a break (Testing Update) response: status_code: 204 - - name: Delete shell descriptor by identification + - name: Delete shell descriptor by id request: - url: "{aas_registry_api_url:s}/registry/shell-descriptors/{returned_identification:s}" + url: "{aas_registry_api_url:s}/api/v3.0/shell-descriptors/{returned_id:s}" method: DELETE headers: Content-Type: application/json