forked from keptn/lifecycle-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: re-work test strategy for integration tests (keptn#3443)
Signed-off-by: odubajDT <[email protected]> Signed-off-by: vickysomtee <[email protected]>
- Loading branch information
1 parent
a83ed4b
commit c2e1952
Showing
21 changed files
with
279 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
.github/actions/deploy-keptn-on-cluster/values/values-integration-allowed-namespaces.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
global: | ||
imageRegistry: "localhost:5000" | ||
|
||
certManager: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
|
||
metricsOperator: | ||
enabled: false | ||
|
||
lifecycleOperator: | ||
lifecycleOperator: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
env: | ||
functionRunnerImage: localhost:5000/keptn/deno-runtime:$TAG | ||
pythonRunnerImage: localhost:5000/keptn/python-runtime:$TAG | ||
scheduler: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
allowedNamespaces: [allowed-ns-test] |
23 changes: 23 additions & 0 deletions
23
.github/actions/deploy-keptn-on-cluster/values/values-integration-cert-manager.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
global: | ||
imageRegistry: "localhost:5000" | ||
|
||
certManager: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
|
||
metricsOperator: | ||
enabled: false | ||
|
||
lifecycleOperator: | ||
lifecycleOperator: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
env: | ||
functionRunnerImage: localhost:5000/keptn/deno-runtime:$TAG | ||
pythonRunnerImage: localhost:5000/keptn/python-runtime:$TAG | ||
scheduler: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG |
27 changes: 27 additions & 0 deletions
27
...ions/deploy-keptn-on-cluster/values/values-integration-gates_off-cert_manager_io_off.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
global: | ||
imageRegistry: "localhost:5000" | ||
|
||
certManager: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
|
||
metricsOperator: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
|
||
lifecycleOperator: | ||
promotionTasksEnabled: true | ||
lifecycleOperator: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
env: | ||
functionRunnerImage: localhost:5000/keptn/deno-runtime:$TAG | ||
pythonRunnerImage: localhost:5000/keptn/python-runtime:$TAG | ||
scheduler: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
schedulingGatesEnabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ lifecycleOperator: | |
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
schedulingGatesEnabled: false |
27 changes: 27 additions & 0 deletions
27
...tions/deploy-keptn-on-cluster/values/values-integration-gates_on-cert_manager_io_off.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
global: | ||
imageRegistry: "localhost:5000" | ||
|
||
certManager: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
|
||
metricsOperator: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
|
||
lifecycleOperator: | ||
promotionTasksEnabled: true | ||
lifecycleOperator: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
env: | ||
functionRunnerImage: localhost:5000/keptn/deno-runtime:$TAG | ||
pythonRunnerImage: localhost:5000/keptn/python-runtime:$TAG | ||
scheduler: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
schedulingGatesEnabled: true |
25 changes: 25 additions & 0 deletions
25
.github/actions/deploy-keptn-on-cluster/values/values-integration-lifecycle.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
global: | ||
imageRegistry: "localhost:5000" | ||
|
||
certManager: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
|
||
metricsOperator: | ||
enabled: false | ||
|
||
lifecycleOperator: | ||
promotionTasksEnabled: true | ||
lifecycleOperator: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
env: | ||
functionRunnerImage: localhost:5000/keptn/deno-runtime:$TAG | ||
pythonRunnerImage: localhost:5000/keptn/python-runtime:$TAG | ||
scheduler: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
schedulingGatesEnabled: true |
15 changes: 15 additions & 0 deletions
15
.github/actions/deploy-keptn-on-cluster/values/values-integration-metrics.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
global: | ||
imageRegistry: "localhost:5000" | ||
|
||
certManager: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
|
||
metricsOperator: | ||
imagePullPolicy: Never | ||
image: | ||
tag: $TAG | ||
|
||
lifecycleOperator: | ||
enabled: false |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Integration-Test-Component | ||
on: | ||
workflow_call: | ||
inputs: | ||
runtime_tag: | ||
description: "Tag for the deno and python runner images" | ||
type: "string" | ||
required: true | ||
type: | ||
description: "Type of the tests that are going to be executed" | ||
type: "string" | ||
required: true | ||
|
||
# Declare default permissions as read only. | ||
permissions: read-all | ||
|
||
env: | ||
GO_VERSION: "~1.21" | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
run-integration-test-component: | ||
name: Run Chainsaw Tests | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: Setup cluster | ||
uses: ./.github/actions/deploy-keptn-on-cluster | ||
with: | ||
runtime_tag: ${{ inputs.runtime_tag }} | ||
values-file: values-integration-${{ inputs.type }}.yaml | ||
|
||
- name: Install and expose Prometheus | ||
uses: ./.github/actions/deploy-prometheus-on-cluster | ||
|
||
- name: Install Chainsaw | ||
uses: kyverno/action-install-chainsaw@995cddaee7702e849270b84fa44cdcebe7462da8 # v0.1.9 | ||
|
||
- name: Run Integration Tests ${{ inputs.type }} | ||
working-directory: . | ||
run: make integration-test-${{ inputs.type }} | ||
|
||
- name: Create reports | ||
if: failure() | ||
working-directory: ./.github/scripts | ||
run: ./create-reports-full.sh | ||
|
||
- name: Upload cluster logs | ||
if: failure() | ||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4 | ||
with: | ||
name: logs-integration-tests-${{ inputs.type }} | ||
path: .github/scripts/logs |
Oops, something went wrong.