36 lines
936 B
YAML
36 lines
936 B
YAML
apiVersion: tekton.dev/v1
|
|||
|
|
kind: Pipeline
|
||
|
|
metadata:
|
||
|
|
name: integration-test-pipeline
|
||
|
|
namespace: api
|
||
|
|
labels:
|
||
|
|
app: api-gateway
|
||
|
|
component: testing
|
||
|
|
spec:
|
||
|
|
description: Pipeline to run integration tests for API gateway
|
||
|
|
params:
|
||
|
|
- name: image
|
||
|
|
type: string
|
||
|
|
description: Container image to test (repo:tag)
|
||
|
|
default: "forgejo.riotpiao.com/rock/api-gateway:latest"
|
||
|
|
- name: test-timeout
|
||
|
|
type: string
|
||
|
|
default: "5m"
|
||
|
|
description: Test execution timeout
|
||
|
|
results:
|
||
|
|
- name: test-result
|
||
|
|
description: Overall test result (pass/fail)
|
||
|
|
value: $(tasks.run-integration-tests.results.result)
|
||
|
|
- name: test-message
|
||
|
|
description: Test summary message
|
||
|
|
value: $(tasks.run-integration-tests.results.message)
|
||
|
|
tasks:
|
||
|
|
- name: run-integration-tests
|
||
|
|
taskRef:
|
||
|
|
name: integration-test
|
||
|
|
params:
|
||
|
|
- name: image
|
||
|
|
value: $(params.image)
|
||
|
|
- name: timeout
|
||
|
|
value: $(params.test-timeout)
|