Skip to content

Commit

Permalink
Tweak the non-matching pipelinerun test
Browse files Browse the repository at this point in the history
Add non-matching branch.
Tweak a test adding description to trigger the e2e tests.
  • Loading branch information
enarha authored and chmouel committed Jun 11, 2024
1 parent 5fb31b5 commit 35d7f7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/provider/github/app/token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ func Test_GenerateJWT(t *testing.T) {
}
}

// Test_GetAndUpdateInstallationID tests we properly obtain the list of repos for a GitHub App and find a matching repo.
func Test_GetAndUpdateInstallationID(t *testing.T) {
tdata := testclient.Data{
Namespaces: []*corev1.Namespace{testNamespace},
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/pipelinerun-nomatch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
name: "no-match"
annotations:
pipelinesascode.tekton.dev/target-namespace: "\\ .TargetNamespace //"
pipelinesascode.tekton.dev/on-event: "[incoming]"
pipelinesascode.tekton.dev/on-target-branch: "[non-existent]"
spec:
pipelineSpec:
tasks:
Expand Down

0 comments on commit 35d7f7c

Please sign in to comment.