tektoncd/pipeline

Add integration tests for /tekton/debug/scripts

Ouverte

#4 426 ouverte le 14 déc. 2021

 (5 commentaires) (0 réaction) (0 personne assignée)Go (1 943 forks)auto 404
area/testinghelp wanted

Métriques du dépôt

Stars
 (9 013 étoiles)
Métriques de merge PR
 (Merge moyen 9j 3h) (137 PRs mergées en 30 j)

Description

/area testing

AFAIK the integration tests work by checking if TaskRuns/PipelineRuns have reached a desired state, based on which the tests are marked as success or failure.

To test scripts in /tekton/debug/scripts dir in the TaskRun Pod, first we would need the TaskRun Pod running with the breakpoint(s) in place. Then, we need to run exec commands allowing us to run scripts in the container(s) with breakpoint. Thus helping us assess the state/logs of the TaskRun after, based on the commands we have run.

How can this be achieved ? What are the possible problems we could face while writing these tests ?

Guide contributeur