|
1 | | -apiVersion: appstudio.redhat.com/v1beta2 |
2 | | -kind: IntegrationTestScenario |
| 1 | +--- |
| 2 | +apiVersion: tekton.dev/v1 |
| 3 | +kind: Pipeline |
3 | 4 | metadata: |
4 | | - name: rhoai-cluster-provision-test |
5 | | - namespace: rhoai-tenant |
6 | | - labels: |
7 | | - appstudio.openshift.io/application: testops-playpen |
8 | | - appstudio.openshift.io/component: rhoai-health |
9 | | - test.appstudio.openshift.io/type: integration |
10 | | - annotations: |
11 | | - test.appstudio.openshift.io/kind: cluster-provision |
12 | | - test.appstudio.openshift.io/description: "Provision Hypershift cluster on AWS and run RHOAI integration tests" |
| 5 | + name: opendatahub-operator-e2e-test |
13 | 6 | spec: |
14 | | - application: testops-playpen |
15 | | - contexts: |
16 | | - - name: application |
17 | | - description: RHOAI integration testing with cluster provisioning |
| 7 | + description: | |
| 8 | + An integration test which provisions an ephemeral Hypershift cluster, deploys opendatahub-operator |
| 9 | + from a Konflux snapshot and runs the e2e tests against it. |
18 | 10 | params: |
19 | | - # Cluster provisioning parameters |
20 | | - - name: CLUSTER_NAME |
21 | | - value: "rhoai-test-$(date +%s)" |
22 | | - - name: HYPERSHIFT_AWS_REGION |
23 | | - value: "us-east-1" |
24 | | - - name: HYPERSHIFT_NODE_COUNT |
25 | | - value: "3" |
26 | | - - name: HYPERSHIFT_INSTANCE_TYPE |
27 | | - value: "m5.xlarge" |
28 | | - - name: OPENSHIFT_VERSION |
29 | | - value: "4.17" |
30 | | - |
31 | | - # Test execution parameters |
32 | | - - name: SNAPSHOT |
33 | | - value: "{{SNAPSHOT}}" |
34 | | - - name: TEST_IMAGE |
35 | | - value: "{{SNAPSHOT_IMAGE}}" |
36 | | - |
37 | | - resolverRef: |
38 | | - resolver: git |
39 | | - params: |
40 | | - - name: url |
41 | | - value: https://github.com/konflux-ci/build-definitions |
42 | | - - name: revision |
43 | | - value: main |
44 | | - - name: pathInRepo |
45 | | - value: pipelines/integration-test-with-hypershift.yaml |
46 | | - |
47 | | - environment: |
48 | | - name: staging |
49 | | - type: POC |
| 11 | + - description: Snapshot of the application |
| 12 | + name: SNAPSHOT |
| 13 | + default: '{"components": [{"name":"odh-operator", "containerImage": "quay.io/opendatahub/opendatahub-operator:latest"}]}' |
| 14 | + type: string |
| 15 | + - name: NAMESPACE |
| 16 | + type: string |
| 17 | + default: opendatahub-operator-system |
| 18 | + tasks: |
| 19 | + - name: parse-metadata |
| 20 | + taskRef: |
| 21 | + resolver: git |
| 22 | + params: |
| 23 | + - name: url |
| 24 | + value: https://github.com/konflux-ci/integration-examples |
| 25 | + - name: revision |
| 26 | + value: main |
| 27 | + - name: pathInRepo |
| 28 | + value: tasks/test_metadata.yaml |
| 29 | + params: |
| 30 | + - name: SNAPSHOT |
| 31 | + value: $(params.SNAPSHOT) |
| 32 | + - name: provision-eaas-space |
| 33 | + runAfter: |
| 34 | + - parse-metadata |
| 35 | + taskRef: |
| 36 | + resolver: git |
| 37 | + params: |
| 38 | + - name: url |
| 39 | + value: https://github.com/konflux-ci/build-definitions.git |
| 40 | + - name: revision |
| 41 | + value: main |
| 42 | + - name: pathInRepo |
| 43 | + value: task/eaas-provision-space/0.1/eaas-provision-space.yaml |
| 44 | + params: |
| 45 | + - name: ownerName |
| 46 | + value: $(context.pipelineRun.name) |
| 47 | + - name: ownerUid |
| 48 | + value: $(context.pipelineRun.uid) |
| 49 | + - name: provision-cluster |
| 50 | + runAfter: |
| 51 | + - provision-eaas-space |
| 52 | + taskSpec: |
| 53 | + results: |
| 54 | + - name: clusterName |
| 55 | + value: "$(steps.create-cluster.results.clusterName)" |
| 56 | + steps: |
| 57 | + - name: get-supported-versions |
| 58 | + ref: |
| 59 | + resolver: git |
| 60 | + params: |
| 61 | + - name: url |
| 62 | + value: https://github.com/konflux-ci/build-definitions.git |
| 63 | + - name: revision |
| 64 | + value: main |
| 65 | + - name: pathInRepo |
| 66 | + value: stepactions/eaas-get-supported-ephemeral-cluster-versions/0.1/eaas-get-supported-ephemeral-cluster-versions.yaml |
| 67 | + params: |
| 68 | + - name: eaasSpaceSecretRef |
| 69 | + value: $(tasks.provision-eaas-space.results.secretRef) |
| 70 | + - name: pick-version |
| 71 | + ref: |
| 72 | + resolver: git |
| 73 | + params: |
| 74 | + - name: url |
| 75 | + value: https://github.com/konflux-ci/build-definitions.git |
| 76 | + - name: revision |
| 77 | + value: main |
| 78 | + - name: pathInRepo |
| 79 | + value: stepactions/eaas-get-latest-openshift-version-by-prefix/0.1/eaas-get-latest-openshift-version-by-prefix.yaml |
| 80 | + params: |
| 81 | + - name: prefix |
| 82 | + value: "$(steps.get-supported-versions.results.versions[0])." |
| 83 | + - name: create-cluster |
| 84 | + ref: |
| 85 | + resolver: git |
| 86 | + params: |
| 87 | + - name: url |
| 88 | + value: https://github.com/konflux-ci/build-definitions.git |
| 89 | + - name: revision |
| 90 | + value: main |
| 91 | + - name: pathInRepo |
| 92 | + value: stepactions/eaas-create-ephemeral-cluster-hypershift-aws/0.1/eaas-create-ephemeral-cluster-hypershift-aws.yaml |
| 93 | + params: |
| 94 | + - name: eaasSpaceSecretRef |
| 95 | + value: $(tasks.provision-eaas-space.results.secretRef) |
| 96 | + - name: version |
| 97 | + value: "$(steps.pick-version.results.version)" |
| 98 | + - name: instanceType |
| 99 | + value: m5.2xlarge |
0 commit comments