Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,6 @@ e2e-install: ## Install all E2E components onto the cluster.
e2e-validate: ## Validate all E2E components are healthy.
hack/e2e/scripts/run-e2e-local.sh validate

.PHONY: e2e-test
e2e-test: ## Run E2E Go tests (cluster must be ready).
hack/e2e/scripts/run-e2e-local.sh test

.PHONY: e2e-dump
e2e-dump: ## Dump cluster state for debugging.
hack/e2e/scripts/dump-cluster-state.sh
Expand Down
15 changes: 15 additions & 0 deletions test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,23 @@ import (

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"github.com/kaito-project/production-stack/test/e2e/utils"
)

// gatewayURL is set once in BeforeSuite and reused by all test files.
var gatewayURL string

var _ = BeforeSuite(func() {
url, err := utils.GetGatewayURL()
Expect(err).NotTo(HaveOccurred(), "failed to set up gateway port-forward")
gatewayURL = url
})

var _ = AfterSuite(func() {
utils.CleanupPortForward()
})

func TestE2E(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Production Stack E2E Test Suite")
Expand Down
Loading
Loading