Skip to content

Commit cb7fe08

Browse files
committed
add initial tests running against local cluster
1 parent b65d831 commit cb7fe08

22 files changed

+66
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
!*.*
44

55
kubeconfig
6+
7+
__pycache__/
8+
*.py[cod]

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ test:
2929
test-%:
3030
go test ./$(subst -,/,$*)/...
3131

32+
functest:
33+
pytest tests
34+
3235
docker-build: $(patsubst %, docker-build-%, $(DOCKERFILES))
3336

3437
docker-build-%:

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,9 @@ Access cluster node via ssh:
9292
```
9393
./cluster/cli.sh node01
9494
```
95+
96+
Run e2e tests (on running cluster):
97+
98+
```
99+
make functests
100+
```

cluster/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ source ./cluster/gocli.sh
77
registry_port=$($gocli ports registry | tr -d '\r')
88
registry=localhost:$registry_port
99

10-
docker build -t ${registry}/device-plugin-$plugin:latest ./cmd/$(echo $plugin | sed 's/-/\//')
10+
REGISTRY=$registry make docker-build-$plugin

cluster/sync.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ source ./cluster/gocli.sh
77
registry_port=$($gocli ports registry | tr -d '\r')
88
registry=localhost:$registry_port
99

10-
docker push $registry/device-plugin-$plugin
10+
REGISTRY=$registry make docker-push-$plugin

tests/__init__.py

Whitespace-only changes.

tests/__init__.pyc

-181 Bytes
Binary file not shown.
-1.08 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)