Skip to content

Commit

Permalink
skip slsa e2e tests by default
Browse files Browse the repository at this point in the history
we shouldnt test an experimental feature by default

Signed-off-by: Bohan Chen <[email protected]>
  • Loading branch information
chenbh committed Jan 25, 2024
1 parent 82b764b commit c32283a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ jobs:
export GIT_BASIC_PASSWORD="${{ secrets.E2E_PRIVATE_REPO_PASSWORD }}"
export GIT_SSH_PRIVATE_KEY="${{ secrets.E2E_PRIVATE_REPO_PRIVATE_KEY }}"
make e2e
E2E_SLSA="true" make e2e
kapp delete -a kpack -y
- name: Run tests with Istio
Expand Down
8 changes: 5 additions & 3 deletions test/slsa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"encoding/json"
"encoding/pem"
"fmt"
"os"
"strings"
"testing"

Expand Down Expand Up @@ -41,9 +42,10 @@ import (
)

func TestSlsa(t *testing.T) {
t.Cleanup(func() {
fmt.Println("TestSlsa cleanup")
})
if testSlsa, _ := os.LookupEnv("E2E_SLSA"); testSlsa != "true" {
t.Skip("E2E_SLSA not set, skipping")
}

spec.Run(t, "SLSA", testSlsaBuild)
}

Expand Down

0 comments on commit c32283a

Please sign in to comment.