CI / CI (pull_request) Failing after 50s
FIXES: - Remove stale files: k8s/argocd-apps/, k8s/tekton/base/, overlays/ (Tekton infra is in homelab repo, not here) - Fix step.resources → step.computeResources (Tekton v1 API) - Fix Task: use curl sidecar pattern instead of distroless image (distroless has no shell/curl/go) - Fix routing: use X-Service + X-Resource headers, not path-based - Extract test script to scripts/integration-test.sh (ConfigMap mount) - Install kubectl in CI runner (was missing) - Prune README to essentials TASK ARCHITECTURE: sidecar: gateway image (mounts config secret, runs on localhost) step: curlimages/curl (runs integration-test.sh from ConfigMap) TEST COVERAGE: health, header validation, memory, s3, sqs, workflow, iam
31 lines
764 B
YAML
31 lines
764 B
YAML
apiVersion: tekton.dev/v1
|
|
kind: Pipeline
|
|
metadata:
|
|
name: integration-test-pipeline
|
|
namespace: api
|
|
labels:
|
|
app: api-gateway
|
|
component: testing
|
|
spec:
|
|
description: >
|
|
Run integration tests against a gateway image.
|
|
Spins up the image as a sidecar, tests via curl, reports pass/fail.
|
|
params:
|
|
- name: image
|
|
type: string
|
|
description: "Container image to test (repo:sha)"
|
|
results:
|
|
- name: test-result
|
|
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)
|
|
tasks:
|
|
- name: integration-test
|
|
taskRef:
|
|
name: integration-test
|
|
params:
|
|
- name: image
|
|
value: $(params.image)
|