3 Network virtualization has dramatically modified our architectures which asks
4 for more automation and powerful testing tools like Functest, a collection of
5 state-of-the-art virtual infrastructure test suites, including automatic VNF
7 [[1]](https://www.linuxfoundation.org/press-release/2019/05/opnfv-hunter-delivers-test-tools-ci-cd-framework-to-enable-common-nfvi-for-verifying-vnfs/)).
9 In context of OPNFV, Functest verifies any kind of OpenStack and Kubernetes
10 deployments including production environments. It conforms to upstream rules
11 and integrates smoothly lots of the test cases available in the opensource
12 market. It includes about 3000+ functional tests and 3 hours upstream API and
13 dataplane benchmarks. It’s completed by Virtual Network Function deployments
14 and testing (vIMS, vRouter and vEPC) to ensure that the platforms meet Network
15 Functions Virtualization requirements. Raspberry PI is also supported to verify
16 datacenters as the lowest cost (50 euros hardware and software included).
18 | Functest releases | Kubernetes releases |
19 |-------------------|-------------------------------|
25 | **Master** | **v1.21.0-alpha.3 (rolling)** |
27 ## Prepare your environment
31 DEPLOY_SCENARIO=k8s-XXX
34 ## Run healthcheck suite
37 sudo docker run --env-file env \
38 -v $(pwd)/config:/root/.kube/config \
39 opnfv/functest-kubernetes-healthcheck
43 +-------------------+------------------+---------------------+------------------+----------------+
44 | TEST CASE | PROJECT | TIER | DURATION | RESULT |
45 +-------------------+------------------+---------------------+------------------+----------------+
46 | k8s_quick | functest | healthcheck | 00:18 | PASS |
47 | k8s_smoke | functest | healthcheck | 01:14 | PASS |
48 +-------------------+------------------+---------------------+------------------+----------------+
54 sudo docker run --env-file env \
55 -v $(pwd)/config:/root/.kube/config \
56 opnfv/functest-kubernetes-smoke
60 +---------------------------+------------------+---------------+------------------+----------------+
61 | TEST CASE | PROJECT | TIER | DURATION | RESULT |
62 +---------------------------+------------------+---------------+------------------+----------------+
63 | k8s_conformance | functest | smoke | 94:26 | PASS |
64 | xrally_kubernetes | functest | smoke | 13:05 | PASS |
65 +---------------------------+------------------+---------------+------------------+----------------+
71 sudo docker run --env-file env \
72 -v $(pwd)/config:/root/.kube/config \
73 opnfv/functest-kubernetes-security
77 +---------------------------+------------------+------------------+------------------+----------------+
78 | TEST CASE | PROJECT | TIER | DURATION | RESULT |
79 +---------------------------+------------------+------------------+------------------+----------------+
80 | kube_hunter | functest | security | 00:19 | PASS |
81 | kube_bench_master | functest | security | 00:02 | PASS |
82 | kube_bench_node | functest | security | 00:01 | PASS |
83 +---------------------------+------------------+------------------+------------------+----------------+
86 ## Run benchmarking suite
89 sudo docker run --env-file env \
90 -v $(pwd)/config:/root/.kube/config \
91 opnfv/functest-kubernetes-benchmarking
95 +--------------------------------+------------------+----------------------+------------------+----------------+
96 | TEST CASE | PROJECT | TIER | DURATION | RESULT |
97 +--------------------------------+------------------+----------------------+------------------+----------------+
98 | xrally_kubernetes_full | functest | benchmarking | 33:07 | PASS |
99 +--------------------------------+------------------+----------------------+------------------+----------------+
105 sudo docker run --env-file env \
106 -v $(pwd)/config:/root/.kube/config \
107 opnfv/functest-kubernetes-cnf
111 +-------------------------+------------------+--------------+------------------+----------------+
112 | TEST CASE | PROJECT | TIER | DURATION | RESULT |
113 +-------------------------+------------------+--------------+------------------+----------------+
114 | k8s_vims | functest | cnf | 09:06 | PASS |
115 | helm_vims | functest | cnf | 08:54 | PASS |
116 | cnf_conformance | functest | cnf | 02:00 | PASS |
117 +-------------------------+------------------+--------------+------------------+----------------+
121 ## Use on air gap environments (no access to Internet)
123 To test a Kubernetes without access to Internet, repository mirrors needs to be
126 Currently, only rally tests supports this feature.
128 There's two ways for providing the repository mirrors:
130 - Give an environment variable (`MIRROR_REPO`) which gives a repository with
132 - Gives an environment variable per needed repo:
133 - `DOCKERHUB_REPO` for DockerHub repository (`docker.io`)
134 - `GCR_REPO` for Google Cloud repository (`gcr.io`)
135 - `K8S_GCR_REPO` for Kubernetes repository (`k8s.gcr.io`)
137 All needed images are given in
138 [functest-kubernetes/ci/images.txt](functest-kubernetes/ci/images.txt)