functest-xtesting.git
2 years agoProtect if detail is returned as None 81/73181/2
Cédric Ollivier [Fri, 21 Jan 2022 10:08:50 +0000 (11:08 +0100)]
Protect if detail is returned as None

It occured when running ansible.

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

2 years agoRemove ansiblelint as tox entry 85/73185/1
Cédric Ollivier [Tue, 4 Jan 2022 22:07:08 +0000 (23:07 +0100)]
Remove ansiblelint as tox entry

It false asks for ansible in any XtestingCI child's test requirements.

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

2 years agoUpdate requirements 05/73005/1
Cédric Ollivier [Mon, 8 Nov 2021 14:48:42 +0000 (15:48 +0100)]
Update requirements

Change-Id: I94223ada81520d248e4f0a9c4bf2cb37fce3a819
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoFix tag logics in behave 74/72674/3
Cédric Ollivier [Fri, 11 Jun 2021 13:09:25 +0000 (15:09 +0200)]
Fix tag logics in behave

The unit tests will be fully rewritten in a second change (out of this
bugfix).

Co-Authored-By: Ugur Caglar Kilic <ugur.caglar.kilic@oracle.com>
Change-Id: I6413fbcecdf44dbfe9c978045f4b1d43ca0de2ec
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit e2a7ac290649fe12228604876fdd63976734bec5)
(cherry picked from commit 261536179b363e0260e4e0068e4471bfb7c63b60)

3 years agoAdd console parameter to behaveframework 73/72673/3
Francois Regis Menguy [Mon, 26 Apr 2021 13:09:11 +0000 (15:09 +0200)]
Add console parameter to behaveframework

Change-Id: I289de43bdea8c52181ec0622c83c5c56dd6890e3
Signed-off-by: Francois Regis Menguy <francoisregis.menguy@orange.com>
(cherry picked from commit 05013a4caa67062ddae4b570f67b77365a96e326)

3 years agoUpdate ansiblelint 77/72677/3
Cédric Ollivier [Sat, 12 Jun 2021 11:23:57 +0000 (13:23 +0200)]
Update ansiblelint

Change-Id: Ia758b9f3e48af63e01dd923146f66abebb3186a3
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoFix remaining py37 testenv 69/72569/1
Vincent Danno [Sun, 23 May 2021 16:15:52 +0000 (18:15 +0200)]
Fix remaining py37 testenv

Signed-off-by: Vincent Danno <vincent.danno@orange.com>
Change-Id: I7847ac6f9f642fb64097a172bd4e8396040f8aa7
(cherry picked from commit ae6de022a0de4013afc1828fb8953801a5905673)

3 years agoAdd the missing action 03/72103/1
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 69/72069/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 agoaarch64 mts builds mostly fail 24/72024/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 11/72011/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 10/72010/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 02/72002/1
Cédric Ollivier [Fri, 12 Feb 2021 09:09:04 +0000 (10:09 +0100)]
Fix .travis.yml

Change-Id: I360c880efc50f021f3ce6fa46ca61e1f59b0743f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoFix arch in .travis-ci.yml 01/72001/1
Cédric Ollivier [Fri, 12 Feb 2021 08:39:20 +0000 (09:39 +0100)]
Fix arch in .travis-ci.yml

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

3 years agoCreate dummy xtesting-mts:arm 95/71995/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 44/71944/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 agopy2.7 forces ansible-lint 4.2.0 20/71920/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>
3 years agoUpdate ansible-lint verification 05/71905/1
Cédric Ollivier [Tue, 9 Feb 2021 18:01:56 +0000 (19:01 +0100)]
Update ansible-lint verification

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

3 years agoTake pylint's len-as-condition into account 98/71898/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)

3 years agoFix parent docker tag 90/71890/1
Cédric Ollivier [Tue, 9 Feb 2021 13:33:35 +0000 (14:33 +0100)]
Fix parent docker tag

Change-Id: Idca6d673f0b3e4b2423a1cfafaab77f0b572d5b5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
3 years agoCleanup previous run output files 89/71889/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 88/71888/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 87/71887/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)

3 years agoAdd MTS driver 86/71886/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 agoUse pip==20.2.4 in tox venv 32/71732/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)

4 years agoRemove all order in testcases.yaml 53/70953/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)

4 years agoWrap long env values 36/70936/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)

4 years agoFix duration calculation 35/70935/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)

4 years agoRemove order in testcases.yaml 34/70934/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)

4 years agoMake testcases descriptions optional 33/70933/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)

4 years agoSuppress admin password in default logs 32/70932/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 agoMerge "Use OpenStack stable/ussuri requirements" into stable/kali
Cedric Ollivier [Thu, 30 Apr 2020 11:10:54 +0000 (11:10 +0000)]
Merge "Use OpenStack stable/ussuri requirements" into stable/kali

4 years agoUpdated from global requirements 62/70062/1
Cédric Ollivier [Thu, 30 Apr 2020 10:51:43 +0000 (12:51 +0200)]
Updated from global requirements

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

4 years agoUse OpenStack stable/ussuri requirements 59/70059/1
Cédric Ollivier [Thu, 30 Apr 2020 10:38:59 +0000 (12:38 +0200)]
Use OpenStack stable/ussuri requirements

The branch was just created [1].

[1] https://github.com/openstack/requirements/tree/stable/ussuri

Change-Id: Ib99c6f849d5cbd93690edae918e5eeb367bdb2a2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoPublish Kali container 17/70017/1
Cédric Ollivier [Tue, 28 Apr 2020 09:39:08 +0000 (11:39 +0200)]
Publish Kali container

It should be noted that OpenStack has not released U's
upper-constaints.txt yet.

Change-Id: I05de1981cec34da1dcbc4b192d8a0510fddc84a1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoFix behave-html-formatter py conditions 98/69998/1
Cédric Ollivier [Mon, 27 Apr 2020 20:23:12 +0000 (22:23 +0200)]
Fix behave-html-formatter py conditions

https://pypi.org/project/behave-html-formatter/0.9.4/

Change-Id: I3c7d6f043a7e1df1529cf31152ac09e871ccdd3f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoPost-processed data from DB 97/69797/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>
4 years agoPublish Xtesting2020 52/69552/1
Cédric Ollivier [Tue, 14 Jan 2020 16:28:36 +0000 (17:28 +0100)]
Publish Xtesting2020

Change-Id: Ife0d97eba3b09b54c0904128896998d8524db905
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoPublish CNTT Snezka RC Cookbook 34/69534/1
Cédric Ollivier [Sat, 11 Jan 2020 18:08:27 +0000 (19:08 +0100)]
Publish CNTT Snezka RC Cookbook

http://testresults.opnfv.org/functest/cntt_rc_cookbook/

Change-Id: Ie100ddcf4a0ad1b8ba01a10ae91d2a6f40587c3c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoSwitch to multiarch binfmt 01/69501/1
Cédric Ollivier [Sat, 4 Jan 2020 20:16:04 +0000 (21:16 +0100)]
Switch to multiarch binfmt

It allows building arm containers as proposed by arm32v6 et arm32v7.

Change-Id: Icaca973f70c167ec8eb59df882638683fe35e40e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoSelect arm32v6 et arm64v8 repos 00/69500/1
Cédric Ollivier [Sat, 4 Jan 2020 18:02:55 +0000 (19:02 +0100)]
Select arm32v6 et arm64v8 repos

They are the official repos [1].
multiarch repo doesn't support Alpine 3.11 and Raspberry PI 1 (arm32v6).

[1] https://hub.docker.com/_/alpine/

Change-Id: I2d73ef867c9714ecddba433295f822cf29b27b90
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoFix tox env list in travis-ci 99/69499/1
Cédric Ollivier [Sat, 4 Jan 2020 16:31:08 +0000 (17:31 +0100)]
Fix tox env list in travis-ci

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

Change-Id: I49fb0e399b2c0a31af21f5216b0576335773b8ab
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoAdd python3.8-distutils when verifying vs travis-ci 97/69497/1
Cédric Ollivier [Sat, 4 Jan 2020 16:07:35 +0000 (17:07 +0100)]
Add python3.8-distutils when verifying vs travis-ci

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

Change-Id: I87caca2810c966c6b8219b7dc044f02ac7b8e561
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoUpdate Alpine to 3.11 92/69492/5
Cédric Ollivier [Sat, 4 Jan 2020 12:54:26 +0000 (13:54 +0100)]
Update Alpine to 3.11

It also updates Python to 3.8 (default version).

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

Change-Id: I1401c37adb71a6f7d37bd8724b93a058ecb68557
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoFix behave driver and its related unit tests 93/69493/1
Cédric Ollivier [Sat, 4 Jan 2020 15:30:07 +0000 (16:30 +0100)]
Fix behave driver and its related unit tests

Change-Id: I466d655162c1ddd5f4e3ef0e356a27007bfaea0f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoCompress Campaign data (zip) 31/69431/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>
4 years agoDump DB and artifacts for third-party certification 99/69399/7
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>
4 years agoDisable false ansible list warnings 70/69270/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>
4 years agoMock os.path.join in push_to_db 08/69208/1
Cédric Ollivier [Sat, 30 Nov 2019 12:08:20 +0000 (13:08 +0100)]
Mock os.path.join in push_to_db

Change-Id: I8d0c8f9ef4688454a6d2992ab1a20d871814e23f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoMerge "Postprocess the TestAPI href returned"
Cedric Ollivier [Sat, 30 Nov 2019 10:31:42 +0000 (10:31 +0000)]
Merge "Postprocess the TestAPI href returned"

4 years agoPostprocess the TestAPI href returned 03/69203/2
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>
4 years agoRun update package index before installing pkg in Circle CI. 16/69116/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>
4 years agoForbid multipart upload if google storage 25/68925/2
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>
4 years agoAdd ContentType when publishing artifacts 05/68905/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>
4 years agoImprove file scanning when publishing artifacts 31/68831/2
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>
4 years agoAdd links in testcase details 27/68827/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>
4 years agoPrint Test API links in console 20/68820/2
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>
4 years agoAdd S3 env vars in env.py 19/68819/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>
4 years agoGenerate Html and Xunit Behave reports 17/68817/2
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>
4 years agoCreate Bucket if it doesn't exist 96/68796/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>
5 years agoPublish artifacts to S3 repository 60/68760/4
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>
5 years agoOverride default Xtesting Ansible role values 82/68382/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>
5 years agoImprove dependency list (CircleCI) 34/68334/1
Cédric Ollivier [Sat, 10 Aug 2019 12:44:33 +0000 (14:44 +0200)]
Improve dependency list (CircleCI)

Change-Id: I8bee760092a40b3143cfbdd7ae5277a7c8cc4b0b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRun Xtesting unit tests via CircleCI 33/68333/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>
5 years agoRun perm when verifying changes 99/68299/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>
5 years agoOverride the right default testcases.yaml 82/68282/1
Cédric Ollivier [Sat, 27 Jul 2019 19:39:31 +0000 (21:39 +0200)]
Override the right default testcases.yaml

Else robot and behave are skipped.

Change-Id: Ib306b51d4d254fcacca86a9eaa56f4b751e370cb
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix remaining py36 testenv 76/68276/1
Cédric Ollivier [Sat, 27 Jul 2019 14:52:18 +0000 (16:52 +0200)]
Fix remaining py36 testenv

Change-Id: Ifa6bfc7beb992cc9094435b734bbca68fcc5a931
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix ssl issues in travis-ci 72/68272/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>
5 years agoOverride the new testcases.yaml 65/68265/2
Cédric Ollivier [Fri, 26 Jul 2019 16:11:43 +0000 (18:11 +0200)]
Override the new testcases.yaml

Change-Id: I5a075f6adc2a014a5f2a04602d29783a91b86bfe
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdated from global requirements 54/68254/7
Cédric Ollivier [Wed, 24 Jul 2019 08:37:03 +0000 (10:37 +0200)]
Updated from global requirements

Change-Id: Ia65aef5331aa9848d58a6db9800b755f226fe8bf
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoSwitch to Python 3.7 and Alpine 3.10 62/68262/6
Cédric Ollivier [Fri, 26 Jul 2019 10:58:04 +0000 (12:58 +0200)]
Switch to Python 3.7 and Alpine 3.10

It also allows building docs as doc8 is broken due to latest
OpenStack's upper-constraints.

pylint is updated to 2.3.1 (lastest py3.7 version)

It disables perm as umask is currently false on lf-virtual1.

Change-Id: I8568eeafa44c5dba72e206c532c1f50e3ad547f2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAdding first patch for behave feature 06/68206/3
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>
5 years agoMerge "Remove energy modules"
Cedric Ollivier [Fri, 14 Jun 2019 14:13:49 +0000 (14:13 +0000)]
Merge "Remove energy modules"

5 years agoRemove energy modules 45/68045/4
Cédric Ollivier [Fri, 14 Jun 2019 09:14:56 +0000 (11:14 +0200)]
Remove energy modules

The public recorder api has been down for a while.

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

Change-Id: I6f8705e701aac7432d7340d4949ace06339af3a3
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRun bandit when verifying changes 46/67946/3
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>
5 years agoSet utf-8 in decode and encode calls 36/67936/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>
5 years agoFix unit tests (py36) 39/67839/1
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>
5 years agoStop setting utf-8 in decode/encode calls 38/67838/1
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>
5 years agoRename HelloWorld.txt to HelloWorld.robot 27/67827/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>
5 years agoUpdate to Python3 82/67782/4
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>
5 years agoEnable debug messages via env var 89/67689/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>
5 years agoUpdate to opendev.org in tox.ini 60/67660/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>
5 years agoUpdate all OpenStack refs to opendev.org 51/67651/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>
5 years agoUpdated from global requirements 23/67623/1
Cédric Ollivier [Thu, 18 Apr 2019 23:27:11 +0000 (01:27 +0200)]
Updated from global requirements

Change-Id: I12a51ae31601ef82f2a2f92f4642795a3a5a32db
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAdd python3.6-dev 57/67557/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>
5 years agoRun tox in .travis-ci 52/67552/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>
5 years agoMerge "Build Raspberry PI image via travis-ci"
Cedric Ollivier [Sat, 13 Apr 2019 09:27:07 +0000 (09:27 +0000)]
Merge "Build Raspberry PI image via travis-ci"

5 years agoBuild Raspberry PI image via travis-ci 48/67548/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>
5 years agoPublish the presentation for ONS 2019 70/67470/2
Cédric Ollivier [Wed, 3 Apr 2019 04:46:19 +0000 (06:46 +0200)]
Publish the presentation for ONS 2019

It highlights the reuse of OPNFV frameworks from infrastructure
verification to e2e network service testing [1].

[1] http://testresults.opnfv.org/functest/ons2019/

Change-Id: Icc3d99329f01b68a2bf8639708abbf9415036414
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"