Browse Source
Improve CI test matrix
Improve CI test matrix
For Travis CI and GCE, add a naive generator script into a markdown table. Add GCE/Travis CI matrix docs. Add CoreOS test cases. Rework existing cases w/o loosing of coverage. Rework postinstall tests to support CoreOS as well. Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>pull/611/head
Bogdan Dobrelya
8 years ago
5 changed files with 108 additions and 24 deletions
Split View
Diff Options
-
55.travis.yml
-
39docs/test_cases.md
-
11scripts/gen_matrix.sh
-
14tests/testcases/020_check-create-pod.yml
-
13tests/testcases/030_check-network.yml
@ -0,0 +1,39 @@ |
|||
Travis CI test matrix |
|||
===================== |
|||
|
|||
GCE instances |
|||
------------- |
|||
|
|||
Here is the test matrix for the Travis CI gates: |
|||
|
|||
| Network plugin| OS type| GCE region| Nodes layout| |
|||
|-------------------------|-------------------------|-------------------------|-------------------------| |
|||
| flannel| debian-8-kubespray| europe-west1-b| default| |
|||
| calico| debian-8-kubespray| us-central1-c| default| |
|||
| flannel| centos-7-sudo| asia-east1-c| default| |
|||
| calico| centos-7-sudo| europe-west1-b| default| |
|||
| weave| centos-7-sudo| us-central1-c| default| |
|||
| calico| rhel-7-sudo| asia-east1-c| default| |
|||
| weave| rhel-7-sudo| europe-west1-b| default| |
|||
| canal| ubuntu-1604-xenial| us-central1-c| default| |
|||
| weave| ubuntu-1604-xenial| asia-east1-c| default| |
|||
| weave| coreos-stable| europe-west1-b| default| |
|||
| canal| coreos-stable| us-east1-d| default| |
|||
| canal| rhel-7-sudo| europe-west1-b| separate| |
|||
| calico| ubuntu-1604-xenial| us-central1-a| separate| |
|||
| weave| debian-8-kubespray| us-east1-d| separate| |
|||
| calico| coreos-stable| asia-east1-c| separate| |
|||
|
|||
Where the nodes layout `default` is that is given in the example inventory file. |
|||
And the `separate` layout is when there is only node of each type, which is a kube master, |
|||
compute and etcd cluster member. |
|||
|
|||
Note, the canal network plugin deploys flannel as well plus calico policy controller. |
|||
|
|||
Hint: the command |
|||
``` |
|||
bash scripts/gen_matrix.sh |
|||
``` |
|||
will (hopefully) generate the CI test cases from the current ``.travis.yml``. |
|||
|
|||
|
@ -0,0 +1,11 @@ |
|||
#!/bin/sh |
|||
# Generates MD formatted CI matrix from the .travis.yml |
|||
a=$(perl -ne '/^\s{6}(CLOUD_IMAGE|KUBE_NETWORK_PLUGIN|CLOUD_REGION|CLUSTER_MODE)=(\S+)$/ && print "$2\n"' .travis.yml) |
|||
printf "|%25s|%25s|%25s|%25s|\n" "Network plugin" "OS type" "GCE region" "Nodes layout" |
|||
echo "|-------------------------|-------------------------|-------------------------|-------------------------|" |
|||
c=0 |
|||
for i in `echo $a`; do |
|||
printf "|%25s" $i |
|||
[ $(($c % 4)) -eq 3 ] && printf "|\n" |
|||
c=$(( c + 1)) |
|||
done |
Write
Preview
Loading…
Cancel
Save