Skip to content

Commit

Permalink
Merge pull request #1499 from buildpacks-community/e2e-istio-slsa
Browse files Browse the repository at this point in the history
Skip SLSA e2e tests by default
  • Loading branch information
chenbh authored Jan 26, 2024
2 parents 82b764b + c32283a commit ae9fb34
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 ae9fb34

Please sign in to comment.