Skip to content

Commit

Permalink
fixup! wip: functional integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phbelitz committed Nov 1, 2024
1 parent 886f4c8 commit 08cbc10
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 144 deletions.
19 changes: 0 additions & 19 deletions .github/actions/alerting-endpoint/action.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/actions/integration-test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,35 @@ runs:
env:
ALERTING_ENDPOINT_IP: ${{ steps.get_ip.outputs.ip }}
shell: bash
- name: Display Connaisseur configuration
if: always()
run: |
echo "::group::values.yaml"
yq e '... comments=""' charts/connaisseur/values.yaml
echo "::endgroup::"
echo "# ${{ inputs.test }} test" >> ${GITHUB_STEP_SUMMARY}
echo "<details><summary>values.yaml</summary>" >> ${GITHUB_STEP_SUMMARY}
echo "<pre lang=\"yaml\"><code>$(yq e '... comments=""' charts/connaisseur/values.yaml)</code></pre>" >> ${GITHUB_STEP_SUMMARY}
echo "</details>" >> ${GITHUB_STEP_SUMMARY}
shell: bash
- name: Display k8s state if integration test failed
if: failure()
run: |
kubectl describe deployments.apps -n connaisseur -lapp.kubernetes.io/name=connaisseur
echo "<details><summary>connaisseur deployment</summary>" >> ${GITHUB_STEP_SUMMARY}
echo "<pre lang=\"yaml\"><code>$(kubectl describe deployments.apps -n connaisseur -lapp.kubernetes.io/name=connaisseur)</code></pre>" >> ${GITHUB_STEP_SUMMARY}
echo "</details>" >> ${GITHUB_STEP_SUMMARY}
kubectl describe pods -n connaisseur -lapp.kubernetes.io/name=connaisseur
echo "<details><summary>connaisseur pods</summary>" >> ${GITHUB_STEP_SUMMARY}
echo "<pre lang=\"yaml\"><code>$(kubectl describe pods -n connaisseur -lapp.kubernetes.io/name=connaisseur)</code></pre>" >> ${GITHUB_STEP_SUMMARY}
echo "</details>" >> ${GITHUB_STEP_SUMMARY}
shell: bash
- name: Display logs if integration test failed
if: failure()
run: |
kubectl logs -n connaisseur -lapp.kubernetes.io/name=connaisseur --prefix=true --tail=-1
echo "<details><summary>connaisseur logs</summary>" >> ${GITHUB_STEP_SUMMARY}
echo "<pre lang=\"yaml\"><code>$(kubectl logs -n connaisseur -lapp.kubernetes.io/name=connaisseur --prefix=true --tail=-1)</code></pre>" >> ${GITHUB_STEP_SUMMARY}
echo "</details>" >> ${GITHUB_STEP_SUMMARY}
shell: bash
73 changes: 0 additions & 73 deletions .github/actions/k3s-cluster/action.yaml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/actions/k8s-version-config/action.yaml

This file was deleted.

34 changes: 8 additions & 26 deletions .github/workflows/107_integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ jobs:
[
"regular",
"notaryv1",
"cosign",
"namespaced",
"deployment",
"pre-config",
"cert",
"redis-cert",
"alerting",
"other-ns",
# "cosign",
# "namespaced",
# "deployment",
# "pre-config",
# "cert",
# "redis-cert",
# "alerting",
# "other-ns",
]
services:
alerting-endpoint:
Expand All @@ -73,21 +73,3 @@ jobs:
image: ${{ inputs.build_image_repository }}
tag: ${{ inputs.build_tag }}
test: ${{ matrix.integration-test-arg }}
- name: Display Connaisseur configuration
if: always()
run: |
echo "::group::values.yaml"
yq e '... comments=""' charts/connaisseur/values.yaml
echo "::endgroup::"
shell: bash
- name: Display k8s state if integration test failed
if: failure()
run: |
kubectl describe deployments.apps -n connaisseur -lapp.kubernetes.io/name=connaisseur
kubectl describe pods -n connaisseur -lapp.kubernetes.io/name=connaisseur
shell: bash
- name: Display logs if integration test failed
if: failure()
run: |
kubectl logs -n connaisseur -lapp.kubernetes.io/name=connaisseur --prefix=true --tail=-1
shell: bash
2 changes: 1 addition & 1 deletion test/integration/notaryv1/cases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
txt: Testing ephemeral container with signed image...
type: debug
ref: securesystemsengineering/testimage:signed@sha256:fe542477b92fb84c38eda9c824f6566d5c2536ef30af9c47152fa8a5fadb58dd
expected_msg: Defaulting debug container name to debugger-
expected_msg: AAAAAAAAAAADefaulting debug container name to debugger-

0 comments on commit 08cbc10

Please sign in to comment.