aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-12-22Dump DB and artifacts for third-party certificationCédric Ollivier4-3/+220
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)
2019-12-07Disable false ansible list warningsCédric Ollivier1-1/+1
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)
2019-11-30Merge "Postprocess the TestAPI href returned" into stable/hunterCedric Ollivier3-7/+12
2019-11-30Postprocess the TestAPI href returnedCédric Ollivier3-7/+12
[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)
2019-11-27Run update package index before installing pkg in Circle CI.Cédric Ollivier1-1/+1
Change-Id: Id160a5bc68c2201db124773bf6eee8b6bb4cb7fc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit b209efd0fa4233ba58e5d21175c567c8b0946dde)
2019-11-18Forbid multipart upload if google storageCédric Ollivier2-2/+12
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)
2019-11-16Add ContentType when publishing artifactsCédric Ollivier3-8/+55
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)
2019-11-09Improve file scanning when publishing artifactsCédric Ollivier2-5/+25
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)
2019-11-09Add links in testcase detailsCédric Ollivier2-6/+8
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)
2019-11-09Print Test API links in consoleCédric Ollivier3-2/+10
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)
2019-11-09Add S3 env vars in env.pyCédric Ollivier1-1/+4
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)
2019-11-07Create Bucket if it doesn't existCédric Ollivier2-5/+52
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)
2019-11-02Fix OpenStack branch in tox.iniCédric Ollivier2-2/+2
It also fixes boto3 upper-constraints which helps detecting the issue. Change-Id: Ib714245cce2492d6102edc31c3772054c0a68188 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-11-02Publish artifacts to S3 repositoryCédric Ollivier8-4/+129
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)
2019-08-22Override default Xtesting Ansible role valuesCédric Ollivier1-0/+20
It ease maintaining the Xtesting branches. Change-Id: Iaaeed0eb4331908266163746350e4163c102238a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 4bef764e2b3976f73e91fed7bca97b40d4123522)
2019-08-21Add **kwargs in Energy wrapper()Cédric Ollivier1-1/+1
It's asked by few Functest testcases (rally_full). Change-Id: Ia1c91c9284f703d239542a1ed929f67eae15ca6c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 6bacb465e3075a3288db140abeab8daca4d256d0)
2019-08-10Run Xtesting unit tests via CircleCICédric Ollivier1-0/+23
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)
2019-08-03Run perm when verifying changesCédric Ollivier1-1/+1
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)
2019-07-27Fix ssl issues in travis-ciCédric Ollivier1-0/+5
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)
2019-07-27Enable py36 unit testsCédric Ollivier7-10/+14
It benefits from the swith to lf-virtual1. Change-Id: I9f99f24a5e3c8ef6374e049d7117aa7d5aa4d442 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit a8287fbdee4a75f1a8bd54f0c9072bc637242e03)
2019-07-24Updated from global requirementsCédric Ollivier2-3/+2
Change-Id: I2ce5bcf72fb95114b21a80cf51c5e848ac3c0b35 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-06-04Updated from global requirementsCédric Ollivier1-1/+2
Change-Id: I0f6fc79125ff275a3df5b3d289cd7b2e501006f2 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-05-25Run bandit when verifying changesCédric Ollivier3-0/+6
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)
2019-05-25Set utf-8 in decode and encode callsCédric Ollivier2-4/+4
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)
2019-05-23Fix unit tests (py36)Cédric Ollivier2-12/+12
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)
2019-05-23Stop setting utf-8 in decode/encode callsCédric Ollivier2-4/+4
It's the default value. Change-Id: I301f750cabc41a1564a700ae8d7328f195a4ae9b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 0d308f4db3434ae6f8147f0f452e5c542429e636)
2019-05-23Update to Python3Cédric Ollivier3-10/+10
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)
2019-05-11Rename HelloWorld.txt to HelloWorld.robotCédric Ollivier3-2/+2
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)
2019-04-21Update to opendev.org in tox.iniCédric Ollivier1-1/+1
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)
2019-04-21Update all OpenStack refs to opendev.orgCédric Ollivier1-1/+1
Change-Id: Iefb247bcfbc490fd64bd9a78b4cacffca1603126 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit d25d66ff328a91f4e75264768740409d6aac711d)
2019-04-19Updated from global requirementsCédric Ollivier1-1/+1
Change-Id: I58d3894b8a33f5b9d83bbf7880bbfa43b2995b7d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-04-13Add python3.6-devCédric Ollivier1-1/+1
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)
2019-04-13Run tox in .travis-ciCédric Ollivier1-0/+7
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)
2019-04-13Fix 1 typo in .travis.ymlCédric Ollivier1-1/+1
It completes the previous commit [1][2] [1] https://gerrit.opnfv.org/gerrit/#/c/67550/ [2] https://travis-ci.org/collivier/functest-xtesting/jobs/519601390 Change-Id: Ib0465d8d005ae8336f35056860aad7cd38995f34 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-04-12Build Raspberry PI image via travis-ciCédric Ollivier2-2/+10
Change-Id: I91ced3f779921ed26bb91daa971692620311feaf Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 108be5e77a4832cd648474e4c3398fdaae9829ea)
2019-03-24Fix manifest-tool buildsCédric Ollivier1-0/+1
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> (cherry picked from commit 838fc2ffe26f06cb11455145b7e73c452e85c15d)
2019-03-23Update Alpine tag in build.shCédric Ollivier1-1/+1
It completes the previous commit updating Alpine. Change-Id: Ic7bb294eeebad360278dcb75f841efec8e87c03b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 8629e7e49e555f83f3c178b44bf10e74c8997c48)
2019-03-23Update to Apine 3.9Cédric Ollivier1-1/+1
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> (cherry picked from commit 32287765f2a2f08b9608fff92e2e262898f4e789)
2019-01-15Fix default host in ansible (127.0.0.1)Cédric Ollivier1-1/+1
Change-Id: Ief3656032a808a66fcb701272d5a4c3ecdca1427 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit dd85f3feb6149b20b165ad6150bbe743d434f7a0)
2019-01-14Remove former ci jobsCédric Ollivier5-125/+1
They can now be generated via the new ansible role. Change-Id: I4c8fdf209fd4f9fd8b10342a86453ff5e1cb5b09 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 05807a01d3aeb8716bc277e8e6802bad7e5bb3fd)
2019-01-05Conform with new tag configsCédric Ollivier1-10/+3
It allows generating gate jobs. Change-Id: I327a2eedf0ca0f0666d32405fe2dc0558688292f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-01-04Fix typoCédric Ollivier1-1/+1
Change-Id: I501ca227374e782286920bf0cab09ba1a4355f46 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit a4f9b0ab9fd886b26d538c68e07d073642c62923)
2019-01-04Remove url from logsCédric Ollivier1-1/+1
It can be false in case of NAT. Change-Id: Id1f4b59eeaf466545cc906bd86c2917b8df2b7a6 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 20e96ac57df21108cd23feea709e734907866fb6)
2018-12-27Apply operations via sixerCédric Ollivier1-1/+1
Change-Id: I7609f83da73d0ac03fc0d270d42f44708335995c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit d66b6c6d89059055e67ac939c258b0dc6fac9825)
2018-12-27Allow printing bash cmd output in consoleCédric Ollivier2-22/+117
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> (cherry picked from commit ebe4291c4457d84cb8425999cfa12371c1c7ce40)
2018-12-27Generate reports for unit testsCédric Ollivier4-58/+269
It now leverages on subunit to generate html and xml reports. Change-Id: I3f5a4fe5547e743b122b63e0b8530c9d9677cdbd Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 07d8b10d394d1632742c16e4f1f45a29879cf7c1)
2018-12-16Verify the Ansible playbook via ansible-lintCédric Ollivier2-1/+7
Change-Id: I9e6778b935a0a8d6e76cb4f1f16ef08c811eee73 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit e3d5138f69bbffdff063019dc35c4b760b2c9564)
2018-12-16Deploy CI/CD toolchains for any Xtesting-based projectCédric Ollivier2-0/+15
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> (cherry picked from commit da22164eda930726eef5e827885e9f1798c4d7e7)
2018-12-15Verify missing yaml files via yamllintCédric Ollivier2-1/+2
Change-Id: I0cd412cd49cac62b393658bf55e0e32def908c85 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 7206ac5bbdb6e8dc5a947a9fdc2300805f0b048c)
2018-12-09Enable robot sample in the containerCédric Ollivier2-0/+67
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> (cherry picked from commit 49575b34b9b3ed410c8da635eacdd64bb28c6d2a)