This repository has been archived by the owner on Sep 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: run e2e test pod without framework setup
- Loading branch information
Showing
5 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# golang:X-alpine can't be used since it does not support the race detector flag which assumes a glibc based system, whereas alpine linux uses musl libc | ||
# https://github.com/golang/go/issues/14481 | ||
FROM golang:1.10.2 as builder | ||
|
||
ADD ./ /go/src/github.com/coreos/vault-operator | ||
|
||
WORKDIR /go/src/github.com/coreos/vault-operator | ||
|
||
RUN go test ./test/e2e/ -c -o /bin/vault-operator-e2e --race | ||
|
||
FROM busybox:1.28.3-glibc | ||
|
||
COPY --from=builder /bin/vault-operator-e2e /bin | ||
COPY --from=builder /go/src/github.com/coreos/vault-operator/test/pod/simple/run-e2e /bin/run-e2e | ||
|
||
CMD ["/bin/run-e2e"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
set -o errexit | ||
set -o nounset | ||
|
||
: ${TEST_NAMESPACE:?"Need to set TEST_NAMESPACE"} | ||
|
||
# Run e2e tests | ||
/bin/vault-operator-e2e -test.timeout 30m -test.failfast -test.parallel 4 --namespace=${TEST_NAMESPACE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: vault-operator-e2e-tests | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: vault-operator-e2e-tests | ||
image: <TEST_IMAGE> | ||
imagePullPolicy: Always | ||
env: | ||
- name: TEST_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace |