aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-08-17Safely decode e2e.test outputCédric Ollivier1-2/+4
https://build.opnfv.org/ci/job/functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-arm-latest-k8s_smoke-run/2/console Change-Id: I57f3ae0051fb55c8c80de81e79168e61c06d85bb Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 64771ca4e6965c81aa2922c7efc44e4f7a38a610)
2020-08-16Compile K8s testing binariesCédric Ollivier5-45/+26
We can't leverage on official testing binaries for this old release. Change-Id: Ia4165a30739fe8220c90c6ff3f437350eb3ead66 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2020-08-16Leverage alpine rather than golangCédric Ollivier3-8/+8
golang is now useless as we stop compiling kubernetes binaries. Change-Id: I7b9416281de069d1f454b13eff6e9e6107f7471e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 1af6a5dc4ec8e087613275e912c819ea1d0aecbc)
2020-08-16Fix arm -> arm64Cédric Ollivier1-1/+1
Change-Id: I3d7d16ec7d8a7712a279258f817d811f0d59187f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit aa3d694b2c288521b6e3f96ea020a3ac485d4d14)
2020-08-16Stop compiling K8s testing binariesCédric Ollivier2-18/+37
It reaches Travis CI timeouts and is quite useless. PyNaCl is now installed via Alpine packages to save CI. Change-Id: Ifdf3f46f162a811ed95e3ca07ea7c3d89bc77a91 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 6801612e85c485e9885cfb41cbc84771475a134f)
2020-08-14Pin latest versions from security toolsCédric Ollivier2-2/+3
It selects kube-bench and kube-hunter 0.3.1. Change-Id: Icb85f3d0d88056370500ec827ef77c215740e5e4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 6b8384b57a0bfc200c15ed9ded71544c33a27e81)
2020-08-13Conform with Functest pylint configCédric Ollivier1-1/+3
Change-Id: Ie12d17a32fe8ee7ee212a6a4acf6aec107377390 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 9cd357b94e7bdb7b8cce73a2666a7547e2a5d7c8)
2020-08-13Merge "Make K8s_vims namespace aware" into stable/hunterCedric Ollivier1-6/+21
2020-08-13Merge "Ease modifying the test list in E2E testing" into stable/hunterCedric Ollivier5-43/+22
2020-08-13Ease modifying the test list in E2E testingCédric Ollivier5-43/+22
It eases creating specific CNTT test cases based on K8s E2E testing. Change-Id: I304960fda760ffc47d763d53511898699f63e356 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit a22553a65d6019350c215c9024c9dc54cf77dc7c)
2020-08-13Make K8s security tests namespace awareCédric Ollivier1-15/+28
It now creates a namespace to allow running the test cases twice in parallel. It also overprotects clean operations to force a full delete. Change-Id: Ie0becd8ea9126328e7280591bacc0d88e14dd031 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 8e2a7dbee8f134dbe9022683d40e2328e5e50fe6)
2020-08-13Make K8s_vims namespace awareCédric Ollivier1-6/+21
It now creates a namespace to allow running the test case twice in parallel (see DNS requests). Change-Id: Ib47b3fb2d753f8259d9224cb79168cde68d8e854 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 019101492b51aa74412265cd99ba1a9e27a3de8c)
2020-08-11Fix sed if arm in build.shCédric Ollivier1-4/+4
Change-Id: I2fbba9004886c72b4213e7b69bac8374af77a5ab Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2020-08-11Remove GOFLAGS in DockerfileCédric Ollivier1-2/+2
Change-Id: Ifc6c63641b9512b4b930c1d7032cae55d2afb811 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit fac999583784f6e3b2c64294f2347fdf8a7a64f0)
2020-08-11Remove useless repo in site.yamlCédric Ollivier1-12/+6
Change-Id: Ie5db13dda8dfcaa5bb26e39858448bddee8f6a2c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 07f59c24077e3d7906371eb2f8e2ec6458c2ff85)
2020-08-11Take latest test cases into accountCédric Ollivier1-0/+17
It adds k8s_vims, kube_bench and kube_hunter. Change-Id: I13ead6e23c675a6ed2e70d95914cbf7cf9d54842 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit adaa8ba5907040fdd8198d3fb801256021514dd5)
2020-08-11Stop building smoke if arm and arm64Cédric Ollivier1-13/+1
Change-Id: Ifef3eef410cdca58855bda471ef2be49bf3ba64f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 1cdb84efbb57d3bd45d13cf9941ccd93aeef9d6f)
2020-08-11Don't build arm containers on TravisCICédric Ollivier1-13/+1
From the time being, they are reaching timeouts. Change-Id: I5a2d6060f1f1042f630eeafa1876ed434e681e3a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit e4704c75d6beca998c388b60c57580d2918a89d1)
2020-08-11Compile all Functest K8s containers for arm v7 and v8Cédric Ollivier3-22/+106
It removes sudo when useless and turns debug on when compiling K8s binaries. It avoids TravisCI timeouts (No output has been received)[1] [1] https://travis-ci.org/github/collivier/functest-kubernetes/jobs/716819529 Change-Id: I4719257596bf9a6510e2f772271b336847d1ccb5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 3c4543a8ef6f84a5f25483a6dfe50e0075a9cd0e)
2020-07-09Boot Ellis once homestead-depl is readyCédric Ollivier5-10/+22
Change-Id: If61a36020f3dfa5ba0a9858df769138257f9ec94 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 5bc18405d75e9d765cd707ff9a98c3553de4b0dd)
2020-07-07Fix phase conditionsCédric Ollivier1-3/+5
Else it waits 20 minutes for nothing [1] [1] https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-cnf-latest-k8s_vims-run/5/console Change-Id: I6427f28975b465ef503f9a3f2868b878fa92b55e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 83d3161c52c8cc8d9e4f52d7a693bbcc32508379)
2020-07-07Override the right log filesCédric Ollivier2-0/+5
Else Xtesting publishes the default xtesting.log [1] [1] https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-security-latest-kube_hunter-run/2/console Change-Id: I0b9b9eda04762771d4e10f0d124b4d5f2975a4da Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 36039d940f473d7385d918375390e804b626bad2)
2020-07-07Improve vIMS service orderCédric Ollivier4-12/+6
It seems fixing the last side effects. Change-Id: Iee8506c2f0048f7c2619b772aea815288a40145e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit f7b45c10ef78a96f33568d2480ca79efbbd72505)
2020-07-07Remove energy from logging configsCédric Ollivier2-12/+2
Change-Id: I35c15aa68fe1afadcdbf3d391febb166358c90be Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 62b861884f55815e00b24f3aca6acb95e0f804b9) (cherry picked from commit 7af22940370f94002cbdd0aa6393bb8f3de2a8b2)
2020-07-07Publish debug logging configCédric Ollivier2-0/+71
Change-Id: I6a42fdeb20e0d549819c327e92e138c28dc927e1 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 7168abb7509750ece58fa501a56a8b1ebad2dbf8)
2020-07-06Manage Ims service dependenciesCédric Ollivier11-0/+48
Change-Id: I6647d9acfabd2ce2d12ff2f30393c2de8f6165ff Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 68b2a9ac43003840ae0b88bf3b2cd6c1fc10db21)
2020-07-06Update Rally patch (py27)Cédric Ollivier1-4/+5
Change-Id: I4e50ca32869280843e8b6a1146dd5fdb3ccad22e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2020-07-06Apply Rally patch (switch to threading for tasks)Cédric Ollivier2-1/+52
Change-Id: I8f4df2d4c220edc538c743cccce8050efe4a1140 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit bfd0063c81f5d5d4fad2389832c8f1479a28f73d) (cherry picked from commit fbac166c0010ac15835ba37260b94e3c705e339d)
2020-07-06Try a quick fix vs the race conditions in xrallyCédric Ollivier2-0/+35
Change-Id: I57a4c317ba365586c10b13d425aac021dd030949 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 81139b1576981990f32df76719f179441e4d12ee) (cherry picked from commit 2a2744f1e612a1ed0a38cadd2b49100613da70d6)
2020-07-06Remove Kubernetes.create_check_and_delete_daemonsetCédric Ollivier1-13/+0
It seems incorrect as Rally tired waiting to become 3 pods [1] Here are the nodes: - control-plane - worker - worker [1] http://artifacts.opnfv.org/functest-kubernetes/0LMEWUMSA2U6/functest-kubernetes-opnfv-functest-kubernetes-smoke-latest-xrally_kubernetes-run-157/xrally_kubernetes/xrally_kubernetes.html Change-Id: I19bb19eb1e0f2ae66a64532d99d4a59f82651a8f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit efee842caa2585c2174c9b780ea1d33f69c69f2e) (cherry picked from commit 90d2fe1fb88bbe963e7c242f2b6b74fb68ab0c67)
2020-07-06Correctly override dir_results and res_dir in rally_kubernetesCédric Ollivier1-2/+2
Both have to be modified else publishing artifacts fails [1]. https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-smoke-jerma-xrally_kubernetes-run/47/console Change-Id: If21334d7d1342737575f9a260a0ad647c4f382e2 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 004d28383111d344aeb82ba9080c7c015970c9bb) (cherry picked from commit cad10e2f00034a283a318e4e0fdf271d0ff2e32a)
2020-07-06Add a new testcase leveraging on xrally/kubernetesCédric Ollivier9-0/+491
It partially runs the all-in-one task for checking basic functionality of Kubernetes cluster. Change-Id: Iaf7a29d2c1a364073e4caaeef69d68ee79ea56bc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 413b52a98a359094dbc251749c04d2789e0ab24c)
2020-07-05Use shallow copy - copy() is py3 onlyCédric Ollivier1-1/+1
Change-Id: Ib470c4ddd36f4b522915e6e131f1b16aee268d15 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2020-07-05Fix CNF Docker parentCédric Ollivier1-2/+2
Change-Id: Ieecc4298bc1861d123163d1ca48ef4a6ba045d0c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2020-07-04Fix former pep8 issuesCédric Ollivier2-2/+6
It's allowed by the newer version Change-Id: Ief4cb2f0cce8da8af6e0bee275772f0940f56d5a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 6493a5acf8a3724f7c00fc971542d25b42a36e4c)
2020-07-04Improve Ims codingCédric Ollivier1-1/+1
Change-Id: Id8b042fd38399f0cf1868f67b5a3f4f1b4f2ef0d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit dbe25c73b976a8a3d9b5c10dc92b8c9a17c68baa) (cherry picked from commit b1acb9c247f09b6c6e29442c4d8e067d6e4a3c10)
2020-07-04Deploy Clearwater IMS using KubernetesCédric Ollivier30-2/+932
The new testcase "k8s_vims" deploys and tests Clearwater IMS using Kubernetes. It follows the procedures proposed by clearwater-docker [1]. [1] https://github.com/Metaswitch/clearwater-docker Change-Id: I2fe3cd03a5dedfc61fbab294c53b4bc0b0fa70be Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 080d2414682d5fecea8c01640e2e5971278fe19d) (cherry picked from commit d56ecab65904d9a190f378262ad9bff48358a40e)
2020-07-01Fix project name in security's testcases.yamlCédric Ollivier1-2/+2
Change-Id: I7770873b2f7d61db05a9546631fdc2d4ddf3d20c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 2649efe3166ec1525f825bf21b63e6eb53aaaac6)
2020-07-01Add security docker for functest-kubernetesmrichomme12-8/+231
run kube-hunter and kube-bench cases dealing with security in kubernetes (check vulnerabilities) [1][2] It's the first step only printing the output. [1]: https://github.com/aquasecurity/kube-bench [2]: https://github.com/aquasecurity/kube-hunter Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: I3bd9bda80046ef7a0c494d51dfb0b8cbfea02bb0 Signed-off-by: mrichomme <morgan.richomme@orange.com> (cherry picked from commit 98d9f93337ab514fa9aafc1cd1e87473de68b364) (cherry picked from commit 0626f54b8686134515eab3b9014c5b538405d84f) (cherry picked from commit a7191389900b58f50e428af47e6819f30ba07d8f)
2020-07-01Remove OPNFV Features from Functest site.ymlCédric Ollivier1-8/+0
They are neither maintained nor developped by Functest. Change-Id: Ib32a36bef9ade051d49edc0868ea88c83cc38f1b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2020-06-08Remove cache dir and force /src as src dst dirCédric Ollivier1-1/+1
Change-Id: I43846aa04e9e9951fc55543b8d2d2fda7c39bb64 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 5169cd72511838af0cedd9ce6b5c3baba45d8f6c)
2020-05-02Switch to deadsnakes/ppaCédric Ollivier1-1/+1
https://travis-ci.org/github/collivier/functest-kubernetes/jobs/682053007 Change-Id: Iedac5d4c47bec7cdd00c65e9d7f8d0cd3488ef9a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 777cff28daff5514f21ad04198afbfbc5b5ba7cb)
2020-05-01Disable perm checkCédric Ollivier2-2/+2
.travis-ci applies a false umask Change-Id: I8e93d64019fffe0a88cd49c565a40419a491f5a0 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 6099914e9832592ac63f0d3505ea3466eb13117d)
2019-12-14Update to K8S_TAG v1.13.12Cédric Ollivier1-1/+1
It updates to the latest K8s v1.13 version. Change-Id: I02966fe1f4eeeccdb1e1d71045596096a22f2c4a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-12-07Disable false ansiblelint warningsCédric Ollivier1-2/+2
git commit has to be executed via shell module [1]. it also fixes Functest branch [1] https://github.com/ansible/ansible/issues/50334 Change-Id: Ie4595f7bc2b54545b2f824f5ac3fb1d20340f13c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit abe7e05d27f7801b902821a85186dca0c9e563ae)
2019-11-27Update package index before install packaging in CircleCICédric Ollivier1-1/+1
Change-Id: I5f61bfdcfa7efa7dfe0a3cf379770e79334de90e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 6119abf09d3d5a98509619b650b054aca2edbceb)
2019-11-16Add mailcap in dependenciesCédric Ollivier1-1/+1
It allows detecting mimetypes. Change-Id: Ieeae5e92142daab2ea724f1c332a71a8b0c63102 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit bee77a2c2c6571c622a8e533ed0b80cdb49302ea)
2019-11-16Correctly override dir_results and res_dirCédric Ollivier1-2/+2
Both have to be modified else publishing artifacts fails [1]. [1] https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-smoke-latest-xrally_kubernetes-run/139/console Change-Id: Ieefee6a9a61452bb4f23d40f75b60280803cd215 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 63ef7413921dcd06d4bd15ae59a20da811cfe7d3)
2019-11-10Update to Xtesting 0.82Cédric Ollivier2-1/+4
It overrides the default log files. Change-Id: I6a1f9951b47b761e4e1832140181a57dd886117c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 63b56cf0740fd5e2e0b7b022e287b27ddb898dee)
2019-09-20Update K8s to 1.13.11Cédric Ollivier1-1/+1
Change-Id: If97c5f21b0115803b75ee10ab5c85fc421d0faf2 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>