Skip to content

Commit

Permalink
move e2e dir under test dir
Browse files Browse the repository at this point in the history
Signed-off-by: Yuji Ito <[email protected]>
  • Loading branch information
llamerada-jp committed Jan 12, 2024
1 parent 6cef66c commit d9e544a
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ bin/
charts/
config/
docs/
e2e/
test/
testbin/
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- run: make -C e2e create-cluster
- run: make -C e2e test
- run: make -C test/e2e create-cluster
- run: make -C test/e2e test
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ testbin/*
pie
!pie/

e2e/.kubeconfig
test/e2e/.kubeconfig
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ TYPE: counter

2. Run e2e test on the local cluster.
```sh
make -C e2e create-cluster
make -C e2e test
make -C test/e2e create-cluster
make -C test/e2e test
```
6 changes: 3 additions & 3 deletions e2e/Makefile → test/e2e/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include ../versions.mk
include ../../versions.mk

PROJECT_ROOT := $(shell git rev-parse --show-toplevel)
BINDIR := $(PROJECT_ROOT)/bin
Expand All @@ -12,10 +12,10 @@ KIND_CLUSTER_NAME := pie-test
.PHONY: create-cluster
create-cluster: $(KIND) $(HELM)
$(KIND) create cluster --name $(KIND_CLUSTER_NAME) --image $(KIND_NODE_VERSION)
$(MAKE) -C ../ docker-build IMG=pie:dev
$(MAKE) -C ../../ docker-build IMG=pie:dev
$(KIND) load docker-image pie:dev --name $(KIND_CLUSTER_NAME)
$(MAKE) $(KUBECONFIG)
KUBECONFIG=$(KUBECONFIG) $(HELM) install --create-namespace -n e2e pie ../charts/pie/ -f values.yaml
KUBECONFIG=$(KUBECONFIG) $(HELM) install --create-namespace -n e2e pie ../../charts/pie/ -f values.yaml

.PHONY: test
test: $(KUBECONFIG)
Expand Down
2 changes: 1 addition & 1 deletion e2e/suite_test.go → test/e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func kubectlWithInput(input []byte, args ...string) ([]byte, []byte, error) {

func TestMtest(t *testing.T) {
if os.Getenv("E2ETEST") == "" {
t.Skip("Run under e2e/")
t.Skip("Run under test/e2e/")
return
}

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit d9e544a

Please sign in to comment.