2026-09-13 14:28:51 +09:00
|
|
|
apiVersion: tekton.dev/v1
|
|
|
|
|
kind: Pipeline
|
|
|
|
|
metadata:
|
|
|
|
|
name: integration-test-pipeline
|
|
|
|
|
namespace: api
|
|
|
|
|
labels:
|
|
|
|
|
app: api-gateway
|
|
|
|
|
component: testing
|
|
|
|
|
spec:
|
2026-09-13 21:12:15 +09:00
|
|
|
description: >
|
|
|
|
|
Run integration tests against a gateway image.
|
|
|
|
|
Spins up the image as a sidecar, tests via curl, reports pass/fail.
|
2026-09-13 14:28:51 +09:00
|
|
|
params:
|
|
|
|
|
- name: image
|
|
|
|
|
type: string
|
2026-09-13 21:12:15 +09:00
|
|
|
description: "Container image to test (repo:sha)"
|
2026-09-13 14:28:51 +09:00
|
|
|
results:
|
|
|
|
|
- name: test-result
|
2026-09-13 21:12:15 +09:00
|
|
|
description: "pass or fail"
|
|
|
|
|
value: $(tasks.integration-test.results.result)
|
|
|
|
|
- name: test-summary
|
|
|
|
|
description: "e.g. 8/8 passed"
|
|
|
|
|
value: $(tasks.integration-test.results.summary)
|
2026-09-13 14:28:51 +09:00
|
|
|
tasks:
|
2026-09-13 21:12:15 +09:00
|
|
|
- name: integration-test
|
2026-09-13 14:28:51 +09:00
|
|
|
taskRef:
|
|
|
|
|
name: integration-test
|
|
|
|
|
params:
|
|
|
|
|
- name: image
|
|
|
|
|
value: $(params.image)
|