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

[minor] Add Health to FVT pipeline #303

Merged
merged 1 commit into from
May 24, 2023
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
12 changes: 12 additions & 0 deletions tekton/src/params/fvt.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@
type: string
description: FVT Digest - Assist - Testng
default: ""
- name: fvt_digest_health_preparedata
type: string
description: FVT Digest - Health - Preparedata
default: ""
- name: fvt_digest_health_testng
type: string
description: FVT Digest - Health - Testng
default: ""
- name: fvt_digest_health_python
type: string
description: FVT Digest - Health - Python
default: ""

# FVT Digests - Manage, Health and Industry Solutions
- name: fvt_digest_manage
Expand Down
121 changes: 121 additions & 0 deletions tekton/src/pipelines/taskdefs/fvt-apps/health.yml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
## Health Prepare User Data
- name: fvt-health-testng-preparedata
params:
- name: mas_instance_id
value: $(params.mas_instance_id)
- name: mas_workspace_id
value: $(params.mas_workspace_id)

- name: fvt_image_registry
value: $(params.fvt_image_registry)
- name: fvt_image_namespace
value: fvt-health
- name: fvt_image_name
value: fvt-health-preparedata
- name: fvt_image_digest
value: $(params.fvt_digest_health_preparedata)
- name: fvt_test_suite
value: prepare
- name: product_channel
value: $(params.mas_app_channel_health)
- name: product_id
value: ibm-mas-health
- name: browserstack_remoteserver
value: http:<username>:<access_key>@<server>/wd/hub # we need to set it somewhere or discover it from inside the container

taskRef:
kind: Task
name: mas-fvt-run-suite
# Only if we've set a digest of the Health FVT to run
when:
- input: "$(params.fvt_digest_health_preparedata)"
operator: notin
values: [""]
- input: "$(params.mas_app_channel_health)"
operator: notin
values: [""]
runAfter:
- ivtcore-health
workspaces:
- name: configs
workspace: shared-configs

## All Health test suites on desktop
- name: fvt-health-testng-desktop
params:
- name: mas_instance_id
value: $(params.mas_instance_id)
- name: mas_workspace_id
value: $(params.mas_workspace_id)

- name: fvt_image_registry
value: $(params.fvt_image_registry)
- name: fvt_image_namespace
value: fvt-health
- name: fvt_image_name
value: fvt-health-testng
- name: fvt_image_digest
value: $(params.fvt_digest_health_testng)
- name: fvt_test_suite
value: testng-health-minimal
- name: product_channel
value: $(params.mas_app_channel_health)
- name: product_id
value: ibm-mas-health
- name: browserstack_remoteserver
value: http:<username>:<access_key>@<server>/wd/hub # we need to set it somewhere or discover it from inside the container

taskRef:
kind: Task
name: mas-fvt-run-suite
# Only if we've set a digest of the Health FVT to run
when:
- input: "$(params.fvt_digest_health_testng)"
operator: notin
values: [""]
- input: "$(params.mas_app_channel_health)"
operator: notin
values: [""]
runAfter:
- fvt-health-testng-preparedata
workspaces:
- name: configs
workspace: shared-configs

## All Health test suites in Python
- name: fvt-health-python
params:
- name: mas_instance_id
value: $(params.mas_instance_id)
- name: mas_workspace_id
value: $(params.mas_workspace_id)

- name: fvt_image_registry
value: $(params.fvt_image_registry)
- name: fvt_image_namespace
value: fvt-health
- name: fvt_image_name
value: fvt-health-python
- name: fvt_image_digest
value: $(params.fvt_digest_health_python)
- name: product_channel
value: $(params.mas_app_channel_health)
- name: product_id
value: ibm-mas-health

taskRef:
kind: Task
name: mas-fvt-run-suite
# Only if we've set a digest of the Health FVT to run
when:
- input: "$(params.fvt_digest_health_python)"
operator: notin
values: [""]
- input: "$(params.mas_app_channel_health)"
operator: notin
values: [""]
runAfter:
- fvt-health-testng-preparedata
workspaces:
- name: configs
workspace: shared-configs