contrib: test: add node-e2e job
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
41aaf4e3d8
commit
8d2a572ead
2 changed files with 48 additions and 0 deletions
|
@ -41,6 +41,7 @@
|
||||||
tags:
|
tags:
|
||||||
- integration
|
- integration
|
||||||
- e2e
|
- e2e
|
||||||
|
- node-e2e
|
||||||
- critest
|
- critest
|
||||||
tasks:
|
tasks:
|
||||||
- name: clone build and install cri-o
|
- name: clone build and install cri-o
|
||||||
|
@ -80,6 +81,27 @@
|
||||||
- name: run critest validation and benchmarks
|
- name: run critest validation and benchmarks
|
||||||
include: critest.yml
|
include: critest.yml
|
||||||
|
|
||||||
|
- hosts: all
|
||||||
|
remote_user: root
|
||||||
|
vars_files:
|
||||||
|
- "{{ playbook_dir }}/vars.yml"
|
||||||
|
tags:
|
||||||
|
- node-e2e
|
||||||
|
tasks:
|
||||||
|
- name: install Golang tools
|
||||||
|
include: golang.yml
|
||||||
|
vars:
|
||||||
|
version: "1.9.2"
|
||||||
|
- name: clone build and install kubernetes
|
||||||
|
include: "build/kubernetes.yml"
|
||||||
|
vars:
|
||||||
|
force_clone: True
|
||||||
|
k8s_git_version: "master"
|
||||||
|
k8s_github_fork: "kubernetes"
|
||||||
|
crio_socket: "/var/run/crio/crio.sock"
|
||||||
|
- name: run k8s node-e2e tests
|
||||||
|
include: node-e2e.yml
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
remote_user: root
|
remote_user: root
|
||||||
vars_files:
|
vars_files:
|
||||||
|
|
26
contrib/test/integration/node-e2e.yml
Normal file
26
contrib/test/integration/node-e2e.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: enable and start CRI-O
|
||||||
|
systemd:
|
||||||
|
name: crio
|
||||||
|
state: started
|
||||||
|
enabled: yes
|
||||||
|
daemon_reload: yes
|
||||||
|
|
||||||
|
- name: disable SELinux
|
||||||
|
command: setenforce 0
|
||||||
|
|
||||||
|
- name: Flush the iptables
|
||||||
|
command: iptables -F
|
||||||
|
|
||||||
|
- name: run node-e2e tests
|
||||||
|
shell: |
|
||||||
|
# parametrize crio socket
|
||||||
|
# cgroup-driver???
|
||||||
|
# TODO(runcom): remove conformance focus, we want everything for testgrid
|
||||||
|
make test-e2e-node PARALLELISM=1 RUNTIME=remote CONTAINER_RUNTIME_ENDPOINT=/var/run/crio.sock IMAGE_SERVICE_ENDPOINT=/var/run/crio/crio.sock TEST_ARGS='--prepull-images=true --kubelet-flags="--cgroup-driver=systemd"' FOCUS="\[Conformance\]" &> {{ artifacts }}/node-e2e.log
|
||||||
|
args:
|
||||||
|
chdir: "{{ ansible_env.GOPATH }}/src/k8s.io/kubernetes"
|
||||||
|
async: 7200
|
||||||
|
poll: 10
|
||||||
|
ignore_errors: true
|
Loading…
Reference in a new issue