functest-xtesting.git
3 years agoAdd the missing action 05/72105/1 stable/iruya
Cédric Ollivier [Wed, 17 Feb 2021 22:55:07 +0000 (23:55 +0100)]
Add the missing action

Change-Id: I8c88da0ec7924cc517e453d4a8de52bb5bb0275f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 49504223bc2ca476e63484e98d8b4cdbe299a09d)

3 years agoPulish former wiki page as README.md 71/72071/1
Cédric Ollivier [Wed, 17 Feb 2021 18:13:29 +0000 (19:13 +0100)]
Pulish former wiki page as README.md

https://wiki.opnfv.org/display/functest/Write+your+own+Xtesting+driver

Change-Id: If135bf9d84e1c357911eb0b2331539844288969a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 3ec66533ae228d8f1ca6555f58d6cf77f186699b)

3 years agoUpgrade libcurl from 3.11 31/72031/1
Cédric Ollivier [Sat, 13 Feb 2021 17:12:46 +0000 (18:12 +0100)]
Upgrade libcurl from 3.11

It fixes CVE-2020-8231

Change-Id: I90ad55ca8babfa2f178af4d1d601c064d95ed112
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoUpgrade libcurl (CVE-2020-8231) 29/72029/1
Cédric Ollivier [Sat, 13 Feb 2021 16:08:06 +0000 (17:08 +0100)]
Upgrade libcurl (CVE-2020-8231)

https://build.opnfv.org/ci/view/xtesting-trivy/job/xtesting-opnfv-xtesting-iruya-trivy/7/console

Change-Id: I9de801f32e7dd1b4cfe3a56ab69b54b7d69b4fe2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoaarch64 mts builds mostly fail 26/72026/1
Cédric Ollivier [Fri, 12 Feb 2021 15:01:05 +0000 (16:01 +0100)]
aarch64 mts builds mostly fail

Change-Id: I87d9e4f33824c7a486d92f4e151b0b40bf10e675
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 5887ce960a69f793a28e54aa3b1662b134aad6af)

3 years agoUpdate site.gate.yml accordint to latest XtestingCI changes 15/72015/1
Cédric Ollivier [Fri, 12 Feb 2021 12:03:28 +0000 (13:03 +0100)]
Update site.gate.yml accordint to latest XtestingCI changes

Change-Id: Iaaad4fff95b3df7564c5277eed80db182f8e3e19
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 6e2fa509cb5d9f4929b91b443fb354d0092bce82)

3 years agoSplit Gates in a dedicated site.yml 14/72014/1
Cédric Ollivier [Mon, 9 Nov 2020 16:40:53 +0000 (17:40 +0100)]
Split Gates in a dedicated site.yml

Change-Id: Ib9fb9968071543c1a881fd862f15076488845ecb
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit da3d1068889529241bd017f46b454bec4bce5382)

3 years agoFix .travis.yml 04/72004/1
Cédric Ollivier [Fri, 12 Feb 2021 09:11:38 +0000 (10:11 +0100)]
Fix .travis.yml

Change-Id: I01e076e45564fdcf21b38a9267da37d76232981b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoCreate dummy xtesting-mts:arm 97/71997/1
Cédric Ollivier [Thu, 11 Feb 2021 17:44:03 +0000 (18:44 +0100)]
Create dummy xtesting-mts:arm

Change-Id: Ib6cc1236aa46b7fb1fd9dfa96750894d87c3563e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 239dc4006e01b78b5a3bda9faec604f19bcf87e7)

3 years agoUpgrade system first 41/71941/1
Cédric Ollivier [Wed, 10 Feb 2021 00:24:09 +0000 (01:24 +0100)]
Upgrade system first

Change-Id: I9ee2ac74785212f8fa6f4ca84dabfcf0ebd3ed18
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 416589195799adc49c5163522313f9e9321c4449)

3 years agoFix docker parent 32/71932/1
Cédric Ollivier [Tue, 9 Feb 2021 20:33:09 +0000 (21:33 +0100)]
Fix docker parent

Change-Id: Idbf7ab81de2a20b342d1cad7d7dbe701728000c6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoInstall libxml2-dev and libxslt-dev 29/71929/1
Cédric Ollivier [Tue, 9 Feb 2021 20:08:14 +0000 (21:08 +0100)]
Install libxml2-dev and libxslt-dev

Change-Id: I77b9d921cda948cb82d7bf3b535e881113f6b9d8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoTake pylint's len-as-condition into account 26/71926/1
Cédric Ollivier [Tue, 9 Feb 2021 15:46:33 +0000 (16:46 +0100)]
Take pylint's len-as-condition into account

Change-Id: Ib19de453857a2732d9c70a24539a96cd7129613d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 8fc7c92cd3a8704aff806c2b9c500369b7360759)
(cherry picked from commit 5029cf1adddb5b3f25754bcc8c6b265e29678948)

3 years agopy2.7 forces ansible-lint 4.2.0 21/71921/1
Cédric Ollivier [Tue, 9 Feb 2021 18:54:43 +0000 (19:54 +0100)]
py2.7 forces ansible-lint 4.2.0

Change-Id: I8c80f3704fa69b61ce03772cba0986bb5ba8669e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 502ce864de43da6e9534d28a333a31c207435490)

3 years agoCleanup previous run output files 18/71918/1
Vincent Mahe [Tue, 15 Sep 2020 15:41:38 +0000 (17:41 +0200)]
Cleanup previous run output files

Signed-off-by: Vincent Mahe <v.mahe@orange.com>
Change-Id: I9ec39012457ae1a5f7017d41d79237d7a1e300d4
(cherry picked from commit 43d5772accb16742f09ddbc3d89ff5c315a2c0a4)

3 years agoProtect mts vs py2 17/71917/1
Cédric Ollivier [Sat, 5 Sep 2020 14:24:37 +0000 (16:24 +0200)]
Protect mts vs py2

Change-Id: I7a9aa9267a81161b10b1d625efbaa924187f8690
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit cd0f0900cb9290f2e84ad184842d8d8ce543a2e7)

3 years agoChange version of MTS software to 6.6.21 16/71916/1
Vincent Mahe [Tue, 15 Sep 2020 11:47:29 +0000 (13:47 +0200)]
Change version of MTS software to 6.6.21

Signed-off-by: Vincent Mahe <v.mahe@orange.com>
Change-Id: I846d5adf55d1f20e3adf50fccbbb431dda7f55d6
(cherry picked from commit 16ae15d57395430b0113f44d850c9eb06fe1cb3b)
(cherry picked from commit 3116e9fd45e788d48e7eb04e96d7b3a6d94012f3)

3 years agoAdd MTS driver 15/71915/1
Vincent Mahe [Mon, 25 May 2020 16:32:58 +0000 (18:32 +0200)]
Add MTS driver

It creates a new container xtesting-mts to avoid increase core
container size.

Signed-off-by: Vincent Mahe <v.mahe@orange.com>
Change-Id: I59544023e1235747e140a442815778a133bf6acf
(cherry picked from commit 32eb7687bf7b8440aa87805480789ef61ae65ec9)

3 years agoGenerate Html and Xunit Behave reports 08/71908/1
Cédric Ollivier [Sat, 9 Nov 2019 11:28:24 +0000 (12:28 +0100)]
Generate Html and Xunit Behave reports

Change-Id: I7d5f31502ba61b61a0b1c885fe8828211bc0bc0a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 728f5c95df4d3edbe6b3f814a270cdf3b532aef9)

3 years agoAdding first patch for behave feature 07/71907/1
Deepak Chandella [Fri, 5 Jul 2019 17:01:36 +0000 (22:31 +0530)]
Adding first patch for behave feature

Change-Id: Ic975c301103b49cdec2bd26746b708388f21e892
Signed-off-by: Deepak Chandella <deepak.chandella@orange.com>
(cherry picked from commit 5dd0d0ffd46e7665fddde8fd2f4da1a9b58506bb)

3 years agoUse pip==20.2.4 in tox venv 34/71734/1
Cédric Ollivier [Thu, 10 Dec 2020 18:06:19 +0000 (19:06 +0100)]
Use pip==20.2.4 in tox venv

pip 20.3 is disruptive and would lead to big changes in stable
branches.

Change-Id: Ifc4abd2d1f28bfb63ba66796e1690b398c1e4760
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 9c9f1888d682cf1b794c956d7f6ab448cb42c6d7)

3 years agoSplit Gates in a dedicated site.yml 56/71356/1
Cédric Ollivier [Mon, 9 Nov 2020 16:43:06 +0000 (17:43 +0100)]
Split Gates in a dedicated site.yml

Change-Id: I13eb16b24100d8c50b54047f62acc00ec512932b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoRemove all order in testcases.yaml 55/70955/1
Cédric Ollivier [Sat, 5 Sep 2020 10:42:34 +0000 (12:42 +0200)]
Remove all order in testcases.yaml

Change-Id: I7ff541ebe5b99f2bc66cbf725530fdff55504435
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit c7da909eb32f7203ffa2b1c3e71107e1ca4cc4c3)

3 years agoWrap long env values 46/70946/2
Cédric Ollivier [Sat, 5 Sep 2020 10:19:34 +0000 (12:19 +0200)]
Wrap long env values

https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-healthcheck-kali-k8s_smoke-run/162/console

Change-Id: If6837a85f54309ad7c221144570c10eb1615993d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 16742834bbca1a7074f19a57d004a1b41068744d)

3 years agoFix duration calculation 45/70945/2
Cédric Ollivier [Sat, 5 Sep 2020 10:10:29 +0000 (12:10 +0200)]
Fix duration calculation

It falsy printed 00:60

Change-Id: Ib2852268a6833b353232c80e9013b6926058479c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 242696fe51c7dc3530587350550ab07164706e56)

3 years agoRemove order in testcases.yaml 44/70944/1
Cédric Ollivier [Sat, 5 Sep 2020 09:35:05 +0000 (11:35 +0200)]
Remove order in testcases.yaml

It's not used and asked for useless configuration data.

Change-Id: Ie1713873aa880bed74bc3c9c4c08da5b30ea3bbb
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 2480a8ed48d232b6395f992fc46d388ba2820872)

3 years agoMake testcases descriptions optional 43/70943/1
Cédric Ollivier [Sat, 5 Sep 2020 08:55:05 +0000 (10:55 +0200)]
Make testcases descriptions optional

Change-Id: If0e45f10816edd2199c589bb5fbfc03fbc0a4b77
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 150405525d6e9924858cd40c872600ddb2bfb57c)

3 years agoSuppress admin password in default logs 42/70942/1
ajay33 [Mon, 31 Aug 2020 08:40:28 +0000 (14:10 +0530)]
Suppress admin password in default logs

Currently, OS_PASSWORD is getting printed in the console of
Functest. This password is secret and must not be printed in
default log file.

This patch suppresses the logging of OS_PASSWORD unless
users ask for debug logs.

Signed-off-by: mahajanajay33@gmail.com
Change-Id: Ib83a12eb09a8551b30b352858649932a5ca842e4
(cherry picked from commit bbdc01c30dcf5a1365ad5a61ec0f7fee49b7fb59)

4 years agoSwitch to arm32v6 and arm64v8 repos 13/70113/1
Cédric Ollivier [Fri, 1 May 2020 14:21:30 +0000 (16:21 +0200)]
Switch to arm32v6 and arm64v8 repos

Change-Id: I82ee83912b70d3d1d626038471f00f4332cf76aa
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 02d0e5086d7f78d4bbac284a41d3be6f2cfba9ee)

4 years agoUpdated from global requirements 51/70051/1
Cédric Ollivier [Wed, 29 Apr 2020 10:28:00 +0000 (12:28 +0200)]
Updated from global requirements

Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: Ia584b34e3d09c4dc8c8014c057e6bbf49f8de867

4 years agoPost-processed data from DB 03/69803/1
Cédric Ollivier [Tue, 17 Mar 2020 13:28:38 +0000 (14:28 +0100)]
Post-processed data from DB

It removes base_url to match the location in archive.

It forces a relative path by removing first "/".
It makes sense but it may raise side effects in dovetail webportal.

Change-Id: Idca69a99fed54ddf69334a865bae15b0a08220fc
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 0ef9c196b42b8c9182710b0f937f775199b0feea)

4 years agoAdd a missing blank line 95/69495/1
Cédric Ollivier [Sat, 4 Jan 2020 15:30:07 +0000 (16:30 +0100)]
Add a missing blank line

Change-Id: I466d655162c1ddd5f4e3ef0e356a27007bfaea0f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoCompress Campaign data (zip) 33/69433/1
Cédric Ollivier [Sun, 22 Dec 2019 20:09:53 +0000 (21:09 +0100)]
Compress Campaign data (zip)

Change-Id: I7b46a88a181293297cc764026f2804d36a59955a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit f187187c3afa730e94ffcdffd84e54494def306a)

4 years agoEnable debug messages via env var 29/69429/1
Cédric Ollivier [Wed, 24 Apr 2019 19:08:37 +0000 (21:08 +0200)]
Enable debug messages via env var

It stops printing in xtesting.debug.log by default.
It decreases testing duration via Raspberry PI without additional
tasks [1].

[1] https://wiki.opnfv.org/display/functest/Run+Functest+containers+on+Raspberry+PI

Change-Id: I2eded47a7a150a45330a69f3262fc7ca6fdb7463
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoDump DB and artifacts for third-party certification 20/69420/2
Cédric Ollivier [Thu, 19 Dec 2019 06:13:12 +0000 (07:13 +0100)]
Dump DB and artifacts for third-party certification

It conforms with Kubernetes Conformance [1] model and could be reused
by OVP or any third-party CNTT-based certification.

It publishes the final archive in the S3 repository.

XtestingCI will generate the final job calling this feature.

[1] https://github.com/cncf/k8s-conformance

Change-Id: I7394c9d52d2cc9370eae125ca5398ff734e5b8d6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 65b489bbc42c7b24c7f9a435de6e5094d5208cf3)

4 years agoDisable false ansible list warnings 72/69272/1
Cédric Ollivier [Sat, 7 Dec 2019 11:59:47 +0000 (12:59 +0100)]
Disable false ansible list warnings

git commit has to be executed via shell module [1].

[1] https://github.com/ansible/ansible/issues/50334

Change-Id: I0ad8abe12bd592cb2a790ec3373452d46573776a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 4ac26ff408f928518c7a35f1178fcb590b32cd7f)

4 years agoPostprocess the TestAPI href returned 05/69205/3
Cédric Ollivier [Sat, 30 Nov 2019 09:44:46 +0000 (10:44 +0100)]
Postprocess the TestAPI href returned

[1] returned http://localhost:8082

[1] https://build.opnfv.org/ci/job/airship-opnfv-functest-healthcheck-latest-connection_check-run/58/console

Change-Id: Ifc0e37a97442193a77762ecc2928b100e27028cd
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 740afc884b2af2f068945e7a9963d5e4b66a1a0e)

4 years agoRun update package index before installing pkg in Circle CI. 18/69118/1
Cédric Ollivier [Wed, 27 Nov 2019 10:20:41 +0000 (11:20 +0100)]
Run update package index before installing pkg in Circle CI.

Change-Id: Id160a5bc68c2201db124773bf6eee8b6bb4cb7fc
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit b209efd0fa4233ba58e5d21175c567c8b0946dde)

4 years agoForbid multipart upload if google storage 27/68927/1
Cédric Ollivier [Mon, 18 Nov 2019 19:16:49 +0000 (20:16 +0100)]
Forbid multipart upload if google storage

Google Storage doesn't support S3 multipart uploads
https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html
https://cloud.google.com/storage/docs/composite-objects

5 * 1024 ** 5 is the multipart upload limit.
https://docs.aws.amazon.com/AmazonS3/latest/dev/qfacts.html

Change-Id: Iec3a5cd70ea6e912272ea231eecde6ee4f51ce4f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit f5aceb5447deed25234c5354b9dd9601115d9378)

4 years agoAdd ContentType when publishing artifacts 07/68907/1
Cédric Ollivier [Sat, 16 Nov 2019 15:21:44 +0000 (16:21 +0100)]
Add ContentType when publishing artifacts

The default value 'application/octet-stream' is mostly
incorrect and forces downloading all links.

https://build.opnfv.org/ci/job/functest-opnfv-functest-healthcheck-hunter-connection_check-run/436/console

Change-Id: Ia680654f5e9f67154504264bc380f0a8d6a74d85
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit e2e7dbe185a552b21315063dbbed8ac4f40f309d)

4 years agoImprove file scanning when publishing artifacts 33/68833/1
Cédric Ollivier [Sat, 9 Nov 2019 16:34:24 +0000 (17:34 +0100)]
Improve file scanning when publishing artifacts

Else it copies files from other testcases if the full suite is
executed sequentially.

Change-Id: Ic61472e47b655c34823a6fcb3ed3615e8f84a4c1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit a48c62165923be6a37aaff5d54918dbe9cb6ff58)

4 years agoAdd links in testcase details 29/68829/1
Cédric Ollivier [Sat, 9 Nov 2019 14:47:14 +0000 (15:47 +0100)]
Add links in testcase details

It allows finding easily reports thanks to DB.

Change-Id: Ib5c4400c186fd320ae87e7fd3d4404b65e996a82
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 256e6b0a10d43e930ecd81078d9cbcd89ebb5a06)

4 years agoPrint Test API links in console 24/68824/1
Cédric Ollivier [Sat, 9 Nov 2019 13:04:16 +0000 (14:04 +0100)]
Print Test API links in console

It adds TEST_DB_EXT_URL to print the right links in case of NAT or SSH
port forwardings.

Change-Id: If85b00de7325909facc903fba13a3fd59a1e705f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 384308c4a5af0a66ff9e78de17ace94ab7d1d51f)

4 years agoAdd S3 env vars in env.py 23/68823/1
Cédric Ollivier [Sat, 9 Nov 2019 12:59:16 +0000 (13:59 +0100)]
Add S3 env vars in env.py

It completes the previous commits adding S3 support:
https://gerrit.opnfv.org/gerrit/c/functest-xtesting/+/68760
https://gerrit.opnfv.org/gerrit/c/functest-xtesting/+/68796

Change-Id: Iaaeb02ef2d9c6cdb7ff6c2c52e7086c751119871
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 66809ebba91d1f068c0a930dba695c3b02fc85bd)

4 years agoCreate Bucket if it doesn't exist 98/68798/2
Cédric Ollivier [Wed, 6 Nov 2019 23:29:38 +0000 (00:29 +0100)]
Create Bucket if it doesn't exist

Xtesting Ansible Role no longer creates bucket after starting Minio
[1].

[1] https://github.com/collivier/ansible-role-xtesting/commit/8c62525bb0d0b5f8dcc2c4436711d5d075de8811

Change-Id: I1ad473ce55f9c00df8e558fdc67f571ee0a1875c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 7ddcfae7ff8a20fac21f5ba2b923e8e5cbce19e5)

4 years agoPublish artifacts to S3 repository 62/68762/5
Cédric Ollivier [Sat, 2 Nov 2019 11:18:22 +0000 (12:18 +0100)]
Publish artifacts to S3 repository

It simplifies Jenkins or Gitlab jobs by automatically publishing all
artifacts via the framework.

It leverages on Amazon Web Services (AWS) SDK [1] which supports the
current cases (OPNFV, Xtesting Ansible role [2], etc.).

[1] https://boto3.amazonaws.com/v1/documentation/api/latest/index.html?id=docs_gateway
[2] https://github.com/collivier/ansible-role-xtesting

Change-Id: I66e380c4da29fb0f973472a2c59ae0ea3c44fcfd
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit d012f3ac3ec4aa2730532be095956867d797aefb)

4 years agoSwitch to py3.6 in containers 06/68506/4
Cédric Ollivier [Fri, 20 Sep 2019 02:13:52 +0000 (04:13 +0200)]
Switch to py3.6 in containers

Xtesting has supported both py2 and py3.
py3 is now selected due to the OPNFV Iruya planning closed to python2
EOL.

It also removes energy as in master which should have been updated
(pylint).

Change-Id: Ic1113b95f85f5882676e10acea1159a808a98f32
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoOverride default Xtesting Ansible role values 86/68386/1
Cédric Ollivier [Thu, 22 Aug 2019 11:48:03 +0000 (13:48 +0200)]
Override default Xtesting Ansible role values

It ease maintaining the Xtesting branches.

Change-Id: Iaaeed0eb4331908266163746350e4163c102238a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 4bef764e2b3976f73e91fed7bca97b40d4123522)

4 years agoAdd **kwargs in Energy wrapper() 72/68372/1
Cédric Ollivier [Wed, 21 Aug 2019 12:38:19 +0000 (14:38 +0200)]
Add **kwargs in Energy wrapper()

It's asked by few Functest testcases (rally_full).

Change-Id: Ia1c91c9284f703d239542a1ed929f67eae15ca6c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoRun Xtesting unit tests via CircleCI 35/68335/1
Cédric Ollivier [Sat, 10 Aug 2019 08:45:11 +0000 (10:45 +0200)]
Run Xtesting unit tests via CircleCI

It runs tox and published the artifacts.
It's worth mentioning that all docker images are already built via
Travis CI (amd64, arm and arm64) [1].

https://travis-ci.org/collivier/functest-xtesting

Change-Id: Icc57b6c45062425181230f3ebbdc5d3f7a925f99
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 4be2e13c066fe5952b3a6339d27cd603e0fbaa18)

4 years agoRun perm when verifying changes 00/68300/1
Cédric Ollivier [Sat, 3 Aug 2019 11:46:52 +0000 (13:46 +0200)]
Run perm when verifying changes

umask is now correct in lf-virtual1 (0022).

Change-Id: I073a48eddaf1e26bcb3bbeeb232eb69d4a03a124
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 6fcd58709c2aeb123dad6f86a103ae5f3af282e1)

4 years agoFix ssl issues in travis-ci 73/68273/1
Cédric Ollivier [Sat, 27 Jul 2019 12:33:16 +0000 (14:33 +0200)]
Fix ssl issues in travis-ci

https://travis-ci.org/collivier/functest-xtesting/builds/564133127

Change-Id: Ic0b8f20edfcccceda3d7226789f16e875af0bdb9
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 9c9be693530188872b9b945a4666e6bd98e94af2)

4 years agoEnable py36 unit tests 69/68269/1
Cédric Ollivier [Fri, 26 Jul 2019 10:58:04 +0000 (12:58 +0200)]
Enable py36 unit tests

It benefits from the swith to lf-virtual1.

Change-Id: I9f99f24a5e3c8ef6374e049d7117aa7d5aa4d442
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoUpdated from global requirements 00/68000/1
Cédric Ollivier [Tue, 4 Jun 2019 18:26:20 +0000 (20:26 +0200)]
Updated from global requirements

Change-Id: Ic450c26f61160e1fb7a5a074ea6a7a286cd6d123
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoRun bandit when verifying changes 47/67947/4
Cédric Ollivier [Sat, 25 May 2019 09:03:40 +0000 (11:03 +0200)]
Run bandit when verifying changes

It reports only MEDIUM issues or higher like nova [1].
It selects bandit 1.1.0 as defined in nova and neutron lower
constraints [2].

[1] https://github.com/openstack/nova/blob/master/tox.ini#L221
[2] https://github.com/openstack/nova/blob/master/lower-constraints.txt#L8

Change-Id: I52524df867d99fae75798475c762a5f8253dacfa
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit c659caccbf1f55db4e6e3cb31bf088ac57751e86)

4 years agoSet utf-8 in decode and encode calls 37/67937/1
Cédric Ollivier [Sat, 25 May 2019 07:55:02 +0000 (09:55 +0200)]
Set utf-8 in decode and encode calls

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: I09c793469bdf4a679e6ed5a268e705efa5f2a20f
Signed-off-by: Cédric Ollivier <ollivier.cedric@gmail.com>
(cherry picked from commit 12aa6e34ec1f388a40cb5a00826729f7c0d6f201)

4 years agoFix unit tests (py36) 23/67923/2
Cédric Ollivier [Sun, 12 May 2019 11:33:24 +0000 (13:33 +0200)]
Fix unit tests (py36)

It completes the patch "Update to Python3" [1] which was not fully
verified in Functest Gates [2].

[1] https://gerrit.opnfv.org/gerrit/#/c/67782/
[2] https://travis-ci.org/collivier/functest-xtesting/jobs/531380395

Change-Id: Icd0d743e14ca1430828907cefba10b50489020a5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 934e90a269ea6b65e38578ac3f9a8bf7fc5212b1)

4 years agoStop setting utf-8 in decode/encode calls 22/67922/2
Cédric Ollivier [Sun, 12 May 2019 10:23:30 +0000 (12:23 +0200)]
Stop setting utf-8 in decode/encode calls

It's the default value.

Change-Id: I301f750cabc41a1564a700ae8d7328f195a4ae9b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 0d308f4db3434ae6f8147f0f452e5c542429e636)

4 years agoUpdate to Python3 21/67921/2
Cédric Ollivier [Tue, 7 May 2019 08:42:23 +0000 (10:42 +0200)]
Update to Python3

Now Xtesting containers use Python3 instead of python2.
https://mail.python.org/pipermail/python-dev/2018-March/152348.html

It also updates robotframework to latest release.

Change-Id: I57e0d8b1af9aeaae0c445941a9bdf0b8bd346834
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 6f8aa2785e0239dbed22fcb4d093a5bc110bcc3c)

5 years agoRename HelloWorld.txt to HelloWorld.robot 28/67828/1
Cédric Ollivier [Sat, 11 May 2019 08:21:01 +0000 (10:21 +0200)]
Rename HelloWorld.txt to HelloWorld.robot

It takes the following warning into account [1] "Automatically parsing
other than '*.robot' files is deprecated"

[1] https://build.opnfv.org/ci/job/xtesting-opnfv-xtesting-latest-fifth-run/150/console

Change-Id: Ibe01eea7eb83c8724d6b4afe3a487ad813fed30d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 74d0cd9b2c43a730c76ea3f03d0db8510a3be831)

5 years agoUpdate to opendev.org in tox.ini 61/67661/1
Cédric Ollivier [Sun, 21 Apr 2019 18:54:22 +0000 (20:54 +0200)]
Update to opendev.org in tox.ini

It completes the previous commit [1].

[1] https://gerrit.opnfv.org/gerrit/#/c/67651/

Change-Id: I5298e406d7973572034242224b867ba8fd79e60f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit b0fd44ea0320e95e2fcbfa0007f11fdf8e29dc76)

5 years agoUpdate all OpenStack refs to opendev.org 53/67653/1
Cédric Ollivier [Sun, 21 Apr 2019 17:41:01 +0000 (19:41 +0200)]
Update all OpenStack refs to opendev.org

Change-Id: Iefb247bcfbc490fd64bd9a78b4cacffca1603126
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit d25d66ff328a91f4e75264768740409d6aac711d)

5 years agoUpdated from global requirements 21/67621/1
Cédric Ollivier [Thu, 18 Apr 2019 23:21:43 +0000 (01:21 +0200)]
Updated from global requirements

Change-Id: Ia65916b9e113033ff258fe1e2172f37678a83b61
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAdd python3.6-dev 56/67556/1
Cédric Ollivier [Sat, 13 Apr 2019 14:15:18 +0000 (16:15 +0200)]
Add python3.6-dev

It's mandatory for building all python packages [1].

[1] https://travis-ci.org/collivier/functest-xtesting/builds/519646504

Change-Id: I71afe76a33a68f9bf0550c80003aa04ac76c9774
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 3fe94a30a171912be79f3bde3ffa4208567af87d)

5 years agoRun tox in .travis-ci 53/67553/1
Cédric Ollivier [Sat, 13 Apr 2019 11:24:17 +0000 (13:24 +0200)]
Run tox in .travis-ci

It installs python3 via ppa to run unit tests vs py36.
It completes the OPNFV gates which can't verify them.

Change-Id: I6942f12ec7daf50e62173290e55df87af9e35d5a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit be261aeeef79961a2cb1ac018a7df86e20ee7de4)

5 years agoBuild Raspberry PI image via travis-ci 49/67549/1
Cédric Ollivier [Fri, 12 Apr 2019 19:19:21 +0000 (21:19 +0200)]
Build Raspberry PI image via travis-ci

Change-Id: I91ced3f779921ed26bb91daa971692620311feaf
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 108be5e77a4832cd648474e4c3398fdaae9829ea)

5 years agoPublish Xtesting Iruya release 05/67405/1
Cédric Ollivier [Wed, 27 Mar 2019 21:21:35 +0000 (22:21 +0100)]
Publish Xtesting Iruya release

Change-Id: Ic0409dd375434f070000538c6169c04ee8e6e7f7
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoSet iruya as default branch in .gitreview 04/67404/1
Cédric Ollivier [Wed, 27 Mar 2019 21:09:37 +0000 (22:09 +0100)]
Set iruya as default branch in .gitreview

Change-Id: I54daea3d4aab2650490f9eb9e437f09fb5cf2a81
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix manifest-tool builds 65/67365/2
Cédric Ollivier [Sun, 24 Mar 2019 12:47:59 +0000 (13:47 +0100)]
Fix manifest-tool builds

It now selects the last release to allow compiling it [1]

[1] https://travis-ci.org/collivier/functest-xtesting/jobs/510384544

Change-Id: I4fdff1df75f39b3b2bc70c3ee9c9910adbe9f0ff
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoMerge "Update Alpine tag in build.sh"
Cedric Ollivier [Sat, 23 Mar 2019 17:53:52 +0000 (17:53 +0000)]
Merge "Update Alpine tag in build.sh"

5 years agoUpdate Alpine tag in build.sh 47/67347/1
Cédric Ollivier [Sat, 23 Mar 2019 17:18:58 +0000 (18:18 +0100)]
Update Alpine tag in build.sh

It completes the previous commit updating Alpine.

Change-Id: Ic7bb294eeebad360278dcb75f841efec8e87c03b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoMerge "Update to Apine 3.9"
Juha Kosonen [Tue, 19 Mar 2019 07:06:56 +0000 (07:06 +0000)]
Merge "Update to Apine 3.9"

5 years agoUpdate to Apine 3.9 92/67292/1
Cédric Ollivier [Mon, 18 Mar 2019 20:17:22 +0000 (21:17 +0100)]
Update to Apine 3.9

It updates to the latest Alpine release [1]

[1] https://www.alpinelinux.org/posts/Alpine-3.9.0-released.html

Change-Id: I5c7bd64333fb38fcc7aa0c315de2bcd40435ed0a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdated from global requirements 43/67143/1
Cédric Ollivier [Thu, 28 Feb 2019 13:35:10 +0000 (14:35 +0100)]
Updated from global requirements

Change-Id: I6a2c5a16efdba81dda01fe21ad79f734dad3fd32
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix default host in ansible (127.0.0.1) 15/66415/1
Cédric Ollivier [Tue, 15 Jan 2019 20:26:02 +0000 (21:26 +0100)]
Fix default host in ansible (127.0.0.1)

Change-Id: Ief3656032a808a66fcb701272d5a4c3ecdca1427
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRemove former ci jobs 85/66385/1
Cédric Ollivier [Mon, 14 Jan 2019 17:57:56 +0000 (18:57 +0100)]
Remove former ci jobs

They can now be generated via the new ansible role.

Change-Id: I4c8fdf209fd4f9fd8b10342a86453ff5e1cb5b09
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoMerge "Fix typo"
Cedric Ollivier [Fri, 4 Jan 2019 02:06:36 +0000 (02:06 +0000)]
Merge "Fix typo"

5 years agoMerge "Remove url from logs"
Cedric Ollivier [Fri, 4 Jan 2019 01:48:47 +0000 (01:48 +0000)]
Merge "Remove url from logs"

5 years agoFix typo 81/66181/1
Cédric Ollivier [Fri, 4 Jan 2019 01:44:49 +0000 (02:44 +0100)]
Fix typo

Change-Id: I501ca227374e782286920bf0cab09ba1a4355f46
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRemove url from logs 73/66173/1
Cédric Ollivier [Thu, 3 Jan 2019 23:44:42 +0000 (00:44 +0100)]
Remove url from logs

It can be false in case of NAT.

Change-Id: Id1f4b59eeaf466545cc906bd86c2917b8df2b7a6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdated from global requirements 03/66103/1
Cédric Ollivier [Thu, 27 Dec 2018 19:03:03 +0000 (20:03 +0100)]
Updated from global requirements

Change-Id: Ic9fb51a1ab37d105d4040c5ea0bee442cdad5696
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoApply operations via sixer 83/66083/1
Cédric Ollivier [Thu, 27 Dec 2018 15:40:50 +0000 (16:40 +0100)]
Apply operations via sixer

Change-Id: I7609f83da73d0ac03fc0d270d42f44708335995c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAllow printing bash cmd output in console 99/65899/6
Cédric Ollivier [Sun, 16 Dec 2018 16:50:38 +0000 (17:50 +0100)]
Allow printing bash cmd output in console

It switches to Popen to print real-time console.
Console has to be enabled per testcase (testcases.yaml).

Change-Id: Id36b42c8409262f7c443e98ae2bcc465984b287f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoGenerate reports for unit tests 59/66059/2
Cédric Ollivier [Wed, 26 Dec 2018 10:23:02 +0000 (11:23 +0100)]
Generate reports for unit tests

It now leverages on subunit to generate html and xml reports.

Change-Id: I3f5a4fe5547e743b122b63e0b8530c9d9677cdbd
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix OpenStack version (master) in tox.ini 57/66057/1
Cédric Ollivier [Wed, 26 Dec 2018 09:50:13 +0000 (10:50 +0100)]
Fix OpenStack version (master) in tox.ini

Change-Id: I4a5c3a85870ce515d64be5efb25b016908b56164
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoVerify the Ansible playbook via ansible-lint 81/65881/1
Cédric Ollivier [Sat, 15 Dec 2018 14:58:56 +0000 (15:58 +0100)]
Verify the Ansible playbook via ansible-lint

Change-Id: I9e6778b935a0a8d6e76cb4f1f16ef08c811eee73
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoVerify missing yaml files via yamllint 75/65875/1
Cédric Ollivier [Sat, 15 Dec 2018 14:45:13 +0000 (15:45 +0100)]
Verify missing yaml files via yamllint

Change-Id: I0cd412cd49cac62b393658bf55e0e32def908c85
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoDeploy CI/CD toolchains for any Xtesting-based project 15/65715/3
Cédric Ollivier [Mon, 10 Dec 2018 20:38:43 +0000 (21:38 +0100)]
Deploy CI/CD toolchains for any Xtesting-based project

It allows deploying the CI/CD toolchain via ansible for all projects
based on Xtesting (e.g. OPNFV Functest, ONAP robot tests, etc.).

It deploys Jenkins, Minio and S3www and loads all jobs in Jenkins.
Last components (MongoDB, TestAPI and dashboard) will be deployed in
the next update of the ansible role.

To deploy the testing toolchain:
$ ansible-galaxy install collivier.xtesting
$ ansible-playbook ansible/site.yml

Change-Id: I5a8ddb45fc354c9a22c52f0d42ce2e0181f345b7
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoEnable robot sample in the container 81/65681/1
Cédric Ollivier [Sun, 9 Dec 2018 08:55:56 +0000 (09:55 +0100)]
Enable robot sample in the container

The testcase is disabled by default in package as the location
depends on OS. But it can be safely enabled in the Alpine container.

Change-Id: I8d1befd09b8d823010dfce7fbb18eddb864fd6e6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoSet shell=True in subprocess.check_call 75/65475/6
Cédric Ollivier [Wed, 28 Nov 2018 21:37:17 +0000 (22:37 +0100)]
Set shell=True in subprocess.check_call

It allows running multiple shell instructions (see third).

Change-Id: I132813c51d42f0fb4bc729d315c468d426f2fb3c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit f99cef18b6dd3eff6703c4d748fae415fea78ae2)

5 years agoStop returning values in run() 73/65473/1
Cédric Ollivier [Wed, 28 Nov 2018 21:09:03 +0000 (22:09 +0100)]
Stop returning values in run()

Runner only checks status via is_successful().

Change-Id: I12647449b037223ac4e3c6ee577610d4430d0bf5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoTemporarily disable py36 57/63757/4
Cédric Ollivier [Fri, 19 Oct 2018 14:11:59 +0000 (16:11 +0200)]
Temporarily disable py36

Verify servers haven't been updated yet to support py36.

Change-Id: Id2999a94f9c2c03432412a4b40a4b3c593aaffb5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix a wierd pylint error 71/63771/2
Cédric Ollivier [Fri, 19 Oct 2018 14:30:59 +0000 (16:30 +0200)]
Fix a wierd pylint error

Change-Id: Ia213e3e1beb80e62f6691c79544b1a0e0e3bb81e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdate python3 to python3.6 45/63645/1
Cédric Ollivier [Wed, 17 Oct 2018 11:44:35 +0000 (13:44 +0200)]
Update python3 to python3.6

Change-Id: I845f8eb0544dc32febec7a17ac7c05412eb31198
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoMerge "Updated from global requirements"
Cedric Ollivier [Wed, 12 Sep 2018 19:40:00 +0000 (19:40 +0000)]
Merge "Updated from global requirements"

5 years agoUpdated from global requirements 61/62161/1
Cédric Ollivier [Wed, 12 Sep 2018 19:31:32 +0000 (21:31 +0200)]
Updated from global requirements

Change-Id: I8eb758bb28904ed9504cba4eef5a94026a0e34bc
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFollow OpenStack master 59/62159/1
Cédric Ollivier [Wed, 12 Sep 2018 19:27:51 +0000 (21:27 +0200)]
Follow OpenStack master

Change-Id: I9b3ead197d54061adddbf47b6b94bbeb79c81793
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRewrite git clone 75/61775/1
Cédric Ollivier [Mon, 3 Sep 2018 18:43:23 +0000 (20:43 +0200)]
Rewrite git clone

Change-Id: I0e17233faaf8eddb263e90cb82b65335f1c9cf40
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoPublish daily and gating jjbs 07/61707/1
Cédric Ollivier [Sat, 1 Sep 2018 20:26:42 +0000 (22:26 +0200)]
Publish daily and gating jjbs

Change-Id: I1050741ce34e151be30404275670e83fc2a40d1a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdate to Alpine 3.8 05/61705/1
Cédric Ollivier [Sat, 1 Sep 2018 20:36:27 +0000 (22:36 +0200)]
Update to Alpine 3.8

https://alpinelinux.org/posts/Alpine-3.8.0-released.html

Change-Id: I73fba49c3d1bbf018e94e67c835c4049c34209b1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>