aboutsummaryrefslogtreecommitdiffstats
path: root/functest_kubernetes
AgeCommit message (Collapse)AuthorFilesLines
2019-07-27Switch to Python 3.7 and Alpine 3.10Cédric Ollivier1-4/+4
pylint is updated to 2.3.1 (lastest py3.7 version) Change-Id: I8b70e9764e2802aeb517969c265fbebfa03458ce Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-07-11Add a new testcase leveraging on xrally/kubernetesCédric Ollivier3-0/+471
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>
2019-06-28Rewrite kubernetes parsingCédric Ollivier2-69/+24
It now sets details and result thanks to 1 regex. It also prints the failure summary if needed. Change-Id: Ia89d6825134161cf6513924dac93281d677eada6 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-06-27Disable log dumpCédric Ollivier2-3/+8
It avoids dumping logs at the end which requires gcloud configured (CI). Then it partially reverts "Keep kubernetes sources" [1]. It now dumps e2e.test output in e2e.log as sonobuoy [2]. [1] https://gerrit.opnfv.org/gerrit/68106 [2] https://raw.githubusercontent.com/cncf/k8s-conformance/master/v1.15/kubeadm/e2e.log Change-Id: I400e1cf92a8540eba3d40db1ed4237628921efe6 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-05-25Set utf-8 in decode and encode callsCédric Ollivier1-1/+1
It eases backporting in iruya and hunter as a few logs can't be decoded as ascii [1]. [1] https://build.opnfv.org/ci/job/functest-opnfv-functest-vnf-iruya-juju_epc-run/56/console Change-Id: If241c5323f286c33aaae804479375efe4c3c1588 Signed-off-by: Cédric Ollivier <ollivier.cedric@gmail.com>
2019-05-12Update to Python3Cédric Ollivier1-1/+1
Functest containers leverage on Python3 instead of python2. https://mail.python.org/pipermail/python-dev/2018-March/152348.html Change-Id: I4f148e91259377b4e3b9076621f192a6e00f6009 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-03-10Publish Junit files and fix Conformance regexCédric Ollivier1-4/+8
It fixes Conformance to [Conformance] and add the skips test regex. It now conforms with Kubernetes Certification (see Sunobuoy) Change-Id: Ic25bb72c839810cf41668a3a8b86579a3fd59629 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-10-10Set Ginkgo's reporter not to print out in colorJuha Kosonen1-6/+5
Change-Id: If0ef89ba521d02b5ea1a1fcb5bc3e546f93e2859 Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
2018-08-31Fully remove kubernetes working dirCédric Ollivier1-4/+2
It hugely decreases the size of our containers. Change-Id: I7bdc31645fb00c01e16855795bf99dd1b3b17dfd Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-08-31Remove useless env varsCédric Ollivier2-34/+6
In OPNFV context, provider is always local. Change-Id: Ieb51153bedfec34c0a3dfba9705b0b2afcebb8c2 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-05-21Fix functest-k8s logging to log all k8s testsKonrad Djimeli2-8/+16
JIRA: FUNCTEST-967 Change-Id: If4924a5c6d66dcbda48ac5ea80d67fcef11ba40a Signed-off-by: Konrad Djimeli <konraddjimeli@gmail.com>
2018-04-26Update logging to log Errors, when they occurKonrad Djimeli2-0/+16
Enable logging of errors which can occur due to incorrect configfile, wrong KUBE_MASTER_URL or KUBE_MASTER_IP etc. Change-Id: I352ed0ab0376e9392d205decdc569bac6304ba27 Signed-off-by: Konrad Djimeli <konraddjimeli@gmail.com>
2018-04-09Add unit tests for K8sTesting's run and run_kubetest methodsKonrad Djimeli1-0/+13
Change-Id: I0442614c609d0d6248c1896d0bc8f55c32e5152d Signed-off-by: Konrad Djimeli <konraddjimeli@gmail.com>
2018-04-09Add unit test for config file validationKonrad Djimeli2-1/+18
Change-Id: I170de36f9641fce253acdd169061476443b86f81 Signed-off-by: Konrad Djimeli <konraddjimeli@gmail.com>
2018-03-21Remove KUBECONFIG from env varsLinda Wang2-15/+12
Change-Id: I85f4c01ceaf9cdadff7fe3d0f284f28da5727658 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2018-03-13Refactor loggersCédric Ollivier1-16/+15
Only 1 logger is needed and it's updated to conform with logging.ini. Change-Id: I53465bbe9a81526ce1acaac90e47ffe4daaaa716 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-01Switch from functest to XtestingCédric Ollivier1-1/+1
It also fixes logging.ini and tox.ini. Change-Id: I3001dd847d0cd4bcffb7e466ba1cf5a71705f636 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-01Add unit tests for functest-kubernetesdjkonro1-0/+54
Change-Id: I4c9b5a56e891f4a63c86e0d7c4dd0d02de677610 Signed-off-by: djkonro <konraddjimeli@gmail.com>
2018-03-01Add Kubernetes conformance testsdjkonro1-11/+55
JIRA: FUNCTEST-905 Change-Id: I2f70884811431f21fe98bb6a989a9172f3612a64 Signed-off-by: djkonro <konraddjimeli@gmail.com>
2018-01-25Remove KUBE_MASTER which is not a require environment variabledjkonro1-1/+0
Change-Id: I948c3c843dcf625317be4be44e496c1e2da2a23c Signed-off-by: djkonro <konraddjimeli@gmail.com>
2018-01-24Add initial python class for kubernetes testingdjkonro2-0/+96
JIRA: FUNCTEST-904 Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: I9007e4e6f58118d1b09774d0acbb2a315437e09a Signed-off-by: djkonro <konraddjimeli@gmail.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>