Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dnstls-azure task to the nightly pipeline #48

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions main/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ spec:
description: Makefile target for tests
name: make-target
type: string
- default: ""
description: Pytest flags to use with Make (flags="${pytest-flags}" make kuadrant)
name: pytest-flags
type: string
- default: pipeline-settings
description: Config Map with settings for the testsuite
name: settings-cm
Expand Down Expand Up @@ -59,6 +63,8 @@ spec:
value: $(params.project)
- name: make-target
value: $(params.make-target)
- name: pytest-flags
value: $(params.pytest-flags)
- name: settings-cm
value: $(params.settings-cm)
- name: additional-env
Expand Down
2 changes: 2 additions & 0 deletions nightly/eventlistener.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
value: kuadrant
- name: make-target
value: all
- name: pytest-flags
value: ""
- name: settings-cm
value: pipeline-settings
- name: additional-env
Expand Down
35 changes: 35 additions & 0 deletions nightly/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ spec:
description: Makefile target for tests (doesn't affect nightly pipeline, kept for compatibility)
name: make-target
type: string
- default: ""
description: Pytest flags to use with Make (flags="${pytest-flags}" make kuadrant)
name: pytest-flags
type: string
- default: pipeline-settings
description: Config Map with settings for the testsuite
name: settings-cm
Expand Down Expand Up @@ -62,6 +66,8 @@ spec:
value: $(params.project)
- name: make-target
value: kuadrant
- name: pytest-flags
value: $(params.pytest-flags)
- name: settings-cm
value: $(params.settings-cm)
- name: additional-env
Expand All @@ -83,6 +89,8 @@ spec:
value: $(params.project)
- name: make-target
value: authorino-standalone
- name: pytest-flags
value: $(params.pytest-flags)
- name: settings-cm
value: $(params.settings-cm)
- name: additional-env
Expand Down Expand Up @@ -117,6 +125,8 @@ spec:
value: $(params.settings-cm)
- name: make-target
value: multicluster
- name: pytest-flags
value: $(params.pytest-flags)
- name: additional-env
value: '$(params.additional-env) KUADRANT_CONTROL_PLANE__cluster2__kubeconfig_path=$(tasks.kubectl-login-second-cluster.results.kubeconfig-path)'
- name: kubeconfig-path
Expand All @@ -137,6 +147,8 @@ spec:
value: $(params.project)
- name: make-target
value: dnstls
- name: pytest-flags
value: "$(params.pytest-flags) --junitxml=$(workspaces.shared-workspace.path)/junit-dnstls-gcp.xml -o junit_suite_name=dnstls-gcp"
- name: settings-cm
value: $(params.settings-cm)
- name: additional-env
Expand All @@ -150,6 +162,29 @@ spec:
name: run-tests
workspaces:
- name: shared-workspace
- name: run-tests-dnstls-azure
params:
- name: testsuite-image
value: $(params.testsuite-image)
- name: project
value: $(params.project)
- name: make-target
value: dnstls
- name: pytest-flags
value: "$(params.pytest-flags) --junitxml=$(workspaces.shared-workspace.path)/junit-dnstls-azure.xml -o junit_suite_name=dnstls-azure"
- name: settings-cm
value: $(params.settings-cm)
- name: additional-env
value: "$(params.additional-env) KUADRANT_CONTROL_PLANE__provider_secret=azure-credentials"
- name: kubeconfig-path
value: $(tasks.kubectl-login.results.kubeconfig-path)
runAfter:
- run-tests-dnstls-gcp
taskRef:
kind: Task
name: run-tests
workspaces:
- name: shared-workspace
finally:
- name: upload-results
when:
Expand Down
5 changes: 4 additions & 1 deletion tasks/run-tests-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ spec:
- description: Makefile target for tests
name: make-target
type: string
- description: Pytest flags to use with Make (flags="${pytest-flags}" make kuadrant)
name: pytest-flags
type: string
- description: Config Map with settings for the testsuite
name: settings-cm
type: string
Expand All @@ -26,7 +29,7 @@ spec:
- args:
- >-
cp /var/kuadrant-settings/settings.local.yaml /opt/workdir/kuadrant-testsuite/config &&
export $(params.additional-env) &> /dev/null && (flags="-vv" make $(params.make-target) || true)
export $(params.additional-env) &> /dev/null && (flags="-vv $(params.pytest-flags)" make $(params.make-target) || true)
command:
- /bin/bash
- -cveo
Expand Down