aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2020-08-22 16:36:19 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2020-08-22 18:54:26 +0200
commit7d4d64c7f779afd6b827cd794b50a2793fb11f58 (patch)
treecb56a2b62d7455e8c7b364e38ddc1a97618d05d0 /docker
parente80d89ce8b97b8f0cc5e3d51bb2d4f2def1a44e4 (diff)
Add xrally_kubernetes_full
It iterates 10 times all operations run by xrally_kubernetes. Now times, concurrenty and count can be set via testcases.yaml. It creates a new containers functest-kubernetes-benchamrking as Functest. Change-Id: Ibfd493b987a359a3f16c2d8db0aef6b8e90b7e92 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit a0f76d884c1f13c27e906136d3418f12b5342fc4)
Diffstat (limited to 'docker')
-rw-r--r--docker/benchmarking/Dockerfile4
-rw-r--r--docker/benchmarking/hooks/post_checkout6
-rw-r--r--docker/benchmarking/testcases.yaml25
3 files changed, 35 insertions, 0 deletions
diff --git a/docker/benchmarking/Dockerfile b/docker/benchmarking/Dockerfile
new file mode 100644
index 00000000..f0a3b79c
--- /dev/null
+++ b/docker/benchmarking/Dockerfile
@@ -0,0 +1,4 @@
+FROM opnfv/functest-kubernetes-smoke:hunter
+
+COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
+CMD ["run_tests", "-t", "all"]
diff --git a/docker/benchmarking/hooks/post_checkout b/docker/benchmarking/hooks/post_checkout
new file mode 100644
index 00000000..6598f040
--- /dev/null
+++ b/docker/benchmarking/hooks/post_checkout
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+from="${DOCKER_REPO%/*}/functest-kubernetes-smoke:${DOCKER_TAG}"
+sed -i "s|^FROM.*$|FROM ${from}|" Dockerfile
+
+exit $?
diff --git a/docker/benchmarking/testcases.yaml b/docker/benchmarking/testcases.yaml
new file mode 100644
index 00000000..f4800095
--- /dev/null
+++ b/docker/benchmarking/testcases.yaml
@@ -0,0 +1,25 @@
+---
+tiers:
+ -
+ name: benchmarking
+ order: 1
+ description: >-
+ A set of benchmarking tests integrated from xRally for Kubernetes
+ platform.
+ testcases:
+ -
+ case_name: xrally_kubernetes_full
+ project_name: functest
+ criteria: 100
+ blocking: false
+ description: >-
+ All in one tasks for checking basic functionality of
+ Kubernetes cluster.
+ dependencies:
+ - DEPLOY_SCENARIO: 'k8-*'
+ run:
+ name: xrally_kubernetes
+ args:
+ times: 10
+ concurrency: 4
+ namespaces_count: 3