aboutsummaryrefslogtreecommitdiffstats
path: root/functest_kubernetes/ims/ims.py
AgeCommit message (Collapse)AuthorFilesLines
2020-09-23Stop hardcoding ims- as generate_nameCédric Ollivier1-1/+2
Change-Id: I3ea22a4050ff1eb609cffb61edc41c49fab44366 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 3a3bd294ea8101c22896d8601fe2723861f73124)
2020-09-20Redirect helm false warnings to logsCédric Ollivier1-2/+2
Helm fails when detecting arch if qemu. time="2020-09-17T16:25:15Z" level=error msg="failure getting variant" error="getCPUInfo for pattern: Cpu architecture: not found" https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-cnf-arm64-latest-helm_vims-run/1/console Change-Id: Ida37062a780f9e2acf60035bf2d41fb8fbb61173 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit aed4dd8a97dbfcb9d0558f2df8f8ef8696f2c421)
2020-09-16Publish helm_vims also based on clearwater-dockerCédric Ollivier1-39/+108
It leverages helm rather than kubectl as proposed by k8s_vims. A new abstract class Vims is added to factorize code between both testcases. Change-Id: Ie5de8d62e25e74f73f8e32167228a08e82989abd Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 32dfc10f56ead9abea8798e1ce16fe87652ca480)
2020-09-16Increase timeout in vIMSCédric Ollivier1-1/+1
It depends on bandwidth. 30 minutes should be enough in all scenarios Change-Id: Ieaad053c8f8a270e5da08275de217b15fdf17f44 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit f6e86e451a0f5bf0e9775482c487d86249b935bd)
2020-09-12Avoid running VNF testing if deployment failedCédric Ollivier1-3/+7
Change-Id: Id7642e47ec2cc438c5fe3a0ec9447f72b358adab Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 3afa7d700eebf2bfcaabab7bdd3aa09198ba4fe0)
2020-09-08Set all image tagsCédric Ollivier1-1/+1
It allows offline testing via xrally_kubernetes, k8s_vims, kube_bench and kube_hunter. Change-Id: I3084abec19f06a894d0083ecb3ed61882eddd785 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 8d748b9efc9ed4ed3edb4eaaf09909e41fe29577)
2020-09-08Remove latest in all imagesCédric Ollivier1-1/+1
The Kubernetes default pull policy is IfNotPresent unless the image tag is :latest in which case the default policy is Always. IfNotPresent causes the Kubelet to skip pulling an image if it already exists [1] [1] https://kind.sigs.k8s.io/docs/user/quick-start/ Change-Id: I83dac6165d2bbef165ca852dd03e5b76a5356f2f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 44492e0da74473460ff6a9f1323c5df3a2af943e)
2020-08-30Increase cassandra timeoutsCédric Ollivier1-1/+1
homestead-prov sometimes fails reaching cassandra 30-08-2020 10:33:44.064 UTC ERROR base.py:327: Translating internal <class 'telephus.cassandra.ttypes.TimedOutException'> error into a 503 status code 30-08-2020 10:34:32.257 UTC ERROR base.py:327: Translating internal <class 'telephus.cassandra.ttypes.TimedOutException'> error into a 503 status code Change-Id: I48566e39dca3dc9644733a76140a76300bbfd84e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit e236b0f56f748c888df23eeaf65478967ad852f1)
2020-08-17Add tempo waiting for ellis accountCédric Ollivier1-0/+1
Change-Id: I63c6af9d0e20aab426e7f875cdb4f86d206f49aa Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 3c7965bb37590eae9e968a530eaaa690ada903f2)
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-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 Ollivier1-0/+2
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-06Manage Ims service dependenciesCédric Ollivier1-0/+2
Change-Id: I6647d9acfabd2ce2d12ff2f30393c2de8f6165ff Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 68b2a9ac43003840ae0b88bf3b2cd6c1fc10db21)
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-04Fix former pep8 issuesCédric Ollivier1-2/+5
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 Ollivier1-0/+187
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)