e2e: test with Kubernetes to 1.20.1
Signed-off-by: Pires <pjpires@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
version: 2
|
version: 2.0
|
||||||
jobs:
|
jobs:
|
||||||
validate:
|
validate:
|
||||||
resource_class: xlarge
|
resource_class: xlarge
|
||||||
@@ -52,18 +52,18 @@ jobs:
|
|||||||
|
|
||||||
e2e:
|
e2e:
|
||||||
machine:
|
machine:
|
||||||
image: circleci/classic:201808-01
|
image: ubuntu-1604:202010-01
|
||||||
working_directory: /home/circleci/go/src/github.com/virtual-kubelet/virtual-kubelet
|
working_directory: /home/circleci/go/src/github.com/virtual-kubelet/virtual-kubelet
|
||||||
environment:
|
environment:
|
||||||
CHANGE_MINIKUBE_NONE_USER: true
|
CHANGE_MINIKUBE_NONE_USER: true
|
||||||
GOPATH: /home/circleci/go
|
GOPATH: /home/circleci/go
|
||||||
KUBECONFIG: /home/circleci/.kube/config
|
KUBECONFIG: /home/circleci/.kube/config
|
||||||
KUBERNETES_VERSION: v1.17.6
|
KUBERNETES_VERSION: v1.20.1
|
||||||
MINIKUBE_HOME: /home/circleci
|
MINIKUBE_HOME: /home/circleci
|
||||||
MINIKUBE_VERSION: v1.2.0
|
MINIKUBE_VERSION: v1.16.0
|
||||||
MINIKUBE_WANTUPDATENOTIFICATION: false
|
MINIKUBE_WANTUPDATENOTIFICATION: false
|
||||||
MINIKUBE_WANTREPORTERRORPROMPT: false
|
MINIKUBE_WANTREPORTERRORPROMPT: false
|
||||||
SKAFFOLD_VERSION: v0.33.0
|
SKAFFOLD_VERSION: v1.17.2
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
@@ -81,6 +81,16 @@ jobs:
|
|||||||
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/${SKAFFOLD_VERSION}/skaffold-linux-amd64
|
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/${SKAFFOLD_VERSION}/skaffold-linux-amd64
|
||||||
chmod +x skaffold
|
chmod +x skaffold
|
||||||
sudo mv skaffold /usr/local/bin/
|
sudo mv skaffold /usr/local/bin/
|
||||||
|
- run:
|
||||||
|
name: Install Minikube dependencies
|
||||||
|
command: |
|
||||||
|
sudo apt-get update && sudo apt-get install -y apt-transport-https curl
|
||||||
|
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
|
||||||
|
cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
|
||||||
|
deb https://apt.kubernetes.io/ kubernetes-xenial main
|
||||||
|
EOF
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y kubelet # systemd unit is disabled
|
||||||
- run:
|
- run:
|
||||||
name: Install Minikube
|
name: Install Minikube
|
||||||
command: |
|
command: |
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: skaffold/v1beta12
|
apiVersion: skaffold/v2beta10
|
||||||
kind: Config
|
kind: Config
|
||||||
build:
|
build:
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|||||||
@@ -169,30 +169,39 @@ You can see from the console output whether the tests in the test suite pass or
|
|||||||
```console
|
```console
|
||||||
...
|
...
|
||||||
=== RUN TestEndToEnd
|
=== RUN TestEndToEnd
|
||||||
|
Setting up end-to-end test suite for mock provider...
|
||||||
|
suite.go:62: True
|
||||||
=== RUN TestEndToEnd/TestCreatePodWithMandatoryInexistentConfigMap
|
=== RUN TestEndToEnd/TestCreatePodWithMandatoryInexistentConfigMap
|
||||||
=== RUN TestEndToEnd/TestCreatePodWithMandatoryInexistentSecrets
|
=== RUN TestEndToEnd/TestCreatePodWithMandatoryInexistentSecrets
|
||||||
=== RUN TestEndToEnd/TestCreatePodWithOptionalInexistentConfigMap
|
=== RUN TestEndToEnd/TestCreatePodWithOptionalInexistentConfigMap
|
||||||
=== RUN TestEndToEnd/TestCreatePodWithOptionalInexistentSecrets
|
=== RUN TestEndToEnd/TestCreatePodWithOptionalInexistentSecrets
|
||||||
|
=== RUN TestEndToEnd/TestGetPods
|
||||||
|
basic.go:40: Created pod: nginx-testgetpods-g9s42
|
||||||
|
basic.go:46: Pod nginx-testgetpods-g9s42 ready
|
||||||
=== RUN TestEndToEnd/TestGetStatsSummary
|
=== RUN TestEndToEnd/TestGetStatsSummary
|
||||||
=== RUN TestEndToEnd/TestNodeCreateAfterDelete
|
=== RUN TestEndToEnd/TestNodeCreateAfterDelete
|
||||||
=== RUN TestEndToEnd/TestPodLifecycleForceDelete
|
=== RUN TestEndToEnd/TestPodLifecycleForceDelete
|
||||||
|
basic.go:208: Created pod: nginx-testpodlifecycleforcedelete-wrjgk
|
||||||
|
basic.go:214: Pod nginx-testpodlifecycleforcedelete-wrjgk ready
|
||||||
|
basic.go:247: Force deleted pod: nginx-testpodlifecycleforcedelete-wrjgk
|
||||||
|
basic.go:264: Pod ended as phase: Running
|
||||||
=== RUN TestEndToEnd/TestPodLifecycleGracefulDelete
|
=== RUN TestEndToEnd/TestPodLifecycleGracefulDelete
|
||||||
--- PASS: TestEndToEnd (21.93s)
|
basic.go:135: Created pod: nginx-testpodlifecyclegracefuldelete-tp49x
|
||||||
--- PASS: TestEndToEnd/TestCreatePodWithMandatoryInexistentConfigMap (0.03s)
|
basic.go:141: Pod nginx-testpodlifecyclegracefuldelete-tp49x ready
|
||||||
|
basic.go:168: Deleted pod: nginx-testpodlifecyclegracefuldelete-tp49x
|
||||||
|
Tearing down end-to-end test suite for mock provider...
|
||||||
|
--- PASS: TestEndToEnd (11.75s)
|
||||||
|
--- PASS: TestEndToEnd/TestCreatePodWithMandatoryInexistentConfigMap (0.04s)
|
||||||
--- PASS: TestEndToEnd/TestCreatePodWithMandatoryInexistentSecrets (0.03s)
|
--- PASS: TestEndToEnd/TestCreatePodWithMandatoryInexistentSecrets (0.03s)
|
||||||
--- PASS: TestEndToEnd/TestCreatePodWithOptionalInexistentConfigMap (0.55s)
|
--- PASS: TestEndToEnd/TestCreatePodWithOptionalInexistentConfigMap (0.73s)
|
||||||
--- PASS: TestEndToEnd/TestCreatePodWithOptionalInexistentSecrets (0.99s)
|
--- PASS: TestEndToEnd/TestCreatePodWithOptionalInexistentSecrets (1.00s)
|
||||||
|
--- PASS: TestEndToEnd/TestGetPods (0.80s)
|
||||||
--- PASS: TestEndToEnd/TestGetStatsSummary (0.80s)
|
--- PASS: TestEndToEnd/TestGetStatsSummary (0.80s)
|
||||||
--- PASS: TestEndToEnd/TestNodeCreateAfterDelete (9.63s)
|
--- PASS: TestEndToEnd/TestNodeCreateAfterDelete (5.25s)
|
||||||
--- PASS: TestEndToEnd/TestPodLifecycleForceDelete (2.05s)
|
--- PASS: TestEndToEnd/TestPodLifecycleForceDelete (2.05s)
|
||||||
basic.go:158: Created pod: nginx-testpodlifecycleforcedelete-jz84g
|
--- PASS: TestEndToEnd/TestPodLifecycleGracefulDelete (1.05s)
|
||||||
basic.go:164: Pod nginx-testpodlifecycleforcedelete-jz84g ready
|
|
||||||
basic.go:197: Force deleted pod: nginx-testpodlifecycleforcedelete-jz84g
|
|
||||||
basic.go:214: Pod ended as phase: Running
|
|
||||||
--- PASS: TestEndToEnd/TestPodLifecycleGracefulDelete (1.04s)
|
|
||||||
basic.go:87: Created pod: nginx-testpodlifecyclegracefuldelete-r84v7
|
|
||||||
basic.go:93: Pod nginx-testpodlifecyclegracefuldelete-r84v7 ready
|
|
||||||
basic.go:120: Deleted pod: nginx-testpodlifecyclegracefuldelete-r84v7
|
|
||||||
PASS
|
PASS
|
||||||
|
ok github.com/virtual-kubelet/virtual-kubelet/internal/test/e2e 12.298s
|
||||||
|
? github.com/virtual-kubelet/virtual-kubelet/internal/test/e2e/framework [no test files]
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user