aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/vnf
AgeCommit message (Collapse)AuthorFilesLines
2018-12-07Remove duplicated code in vnfsopnfv-7.1.0Cédric Ollivier5-240/+63
It mainly leverages on functest_utils instead of duplicating. Change-Id: I97dc9215a835d3e7f1527b565132f667f09f2b7e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 555956f1d19800114a6f422de78816859aaa7bdc)
2018-11-15Switch to Clearwater Zamin (heat_ims)Cédric Ollivier1-2/+2
Zamin is declared as the first "stable" release. Cloudify descriptor is not ready for the update. Change-Id: Ibfd2e3a226e1a547dd8c4e32ff998bac007f10a5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 3ac3d8d6f725b76ccb22a730cd802f36f75c8b90)
2018-09-25Update juju agentsCédric Ollivier1-1/+1
It conforms with last juju update. Change-Id: I4941aac66e5ac96045090f10f197f6ee2712caac Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 1ab7a53dab08a6f67ff2cf54f33b70dea0e82bfb)
2018-09-19Modify creation of SecGroup Rule for SSHThierry ALLENO1-1/+11
There is multiple "default" security groups, when user is created with admin role. Change-Id: I7555dc9461816dfdaaee36d82d712e25b4b65da7 Signed-off-by: Thierry ALLENO <thierry.alleno@orange.com> (cherry picked from commit 7488f119f9d9c61c61ef55d53f87de0e671fed23)
2018-09-08Merge "Stop cloning when running vyos_vrouter"Cedric Ollivier4-38/+6
2018-09-08Stop cloning when running vyos_vrouterCédric Ollivier4-38/+6
It moves the clone operation into docker build instead. Change-Id: I296005d8638510a999665d383a26c4fcd48897a6 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-09-07Remove one useless security groupCédric Ollivier1-5/+0
This rule breaks lookup when the user created is admin. Change-Id: I2fe3dba687bd5d151cd7e53217586a0bcb21815d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-08-28Protect vs TypeErrors when cleaning stacksCédric Ollivier1-0/+3
It protects vs exceptions raised by shade when cleaning stacks. Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/functest/opnfv_tests/vnf/ims/heat_ims.py", line 226, in clean self.cloud.delete_stack(self.stack.id, wait=True) File "/usr/lib/python2.7/site-packages/shade/openstackcloud.py", line 1416, in delete_stack marker=marker) File "/usr/lib/python2.7/site-packages/shade/_heat/event_utils.py", line 90, in poll_for_events stack_status = stack['stack_status'] TypeError: 'NoneType' object has no attribute '__getitem__' Change-Id: I1a0ed0cd669d5234ca1ff3b6bbc9d1b13f14b02f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-08-27Use only one image in heat_imsCédric Ollivier1-16/+9
It calls VmReady2.run instead of publishing alt image. Change-Id: If24741fbc5bf7fa3f61ef39a054b148ce53fc4fc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-08-06Change juju_epc cidrCédric Ollivier1-0/+2
juju cannot bootstrap if cidr already exists which now happens only if a shared network with the same cidr is defined (it should be considered as a bug about juju). By allocation its own cidr, it protects vs remaining rally or tempest remaining shared networks or vs parallel testing. juju_epc can already run twice in parallel as it creates a new project and a private network. Change-Id: I76c4971d631f763307315478e6cf5a383c91ed36 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-30Delete alt images before removing the accountCédric Ollivier3-5/+3
Else it could raise unauthorized exceptions [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/188/console Change-Id: Ia9b857069f775e2c8ecc5e07cf39b3a1fb7e3540 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-30Protect vs exceptions when creating secretsCédric Ollivier1-6/+17
cloudify_ims sometimes faces with exceptions when creating secrets [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/188/console Change-Id: I197748bf97752575dc14650e1e1c382774811cce Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-30Fix clearwater test results parsingCédric Ollivier1-2/+2
Before it could extract part of the skipped tests [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-master/209/console Change-Id: I7e7564cb7b96705940051fccf0ff1987f34bb962 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-30Allow backporting a pylint errorCédric Ollivier1-1/+1
Change-Id: I2df0964d63c80abbc5c5cc438e1fdd32f24fd52f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-30Fix clean() in cloudify ims and routerCédric Ollivier2-5/+12
It raised exceptions in both branches [1] [1] https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-master/209/console Change-Id: I87b33cedae768f92296efa4570d2a47cd9cdbdf2 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-30Release floating ips used by juju_epcCédric Ollivier1-0/+6
It also cleans flavor_alt and image_alt. Change-Id: I62296075eca75c3c18caac4a3cddeef1fdb26e1b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-29Update juju_epc to leverage on new scenariosCédric Ollivier1-273/+100
It avoids duplicating codes across all OPNFV testcases. It also fixes the issues when starting mongodb [1] by upgrading juju agent. It stops supporting keystone v2 as the other testcases. [1] https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-master/lastFailedBuild/console Change-Id: I06cddddef1121292ffb695dcb73aa79a07c23192 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-28Leverage vyos_vrouter on CloudifyCédric Ollivier5-353/+110
It also stop rebooting the VMs. Change-Id: Ib0f9e1aac1dd8505378b0688930eb41a590a11f1 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-23New Heat IMS testcaseValentin Boucher5-95/+383
In order to validate OpenStack Master deployment we create this new testcase using OpenStack Heat as an Orchestrator for Clearwater VNF JIRA: FUNCTEST-995 Change-Id: I8b7b74a3753c2d4d4614e9a2798283bd3f99d5d2 Signed-off-by: Valentin Boucher <valentin.boucher@kontron.com>
2018-07-20Allow overriding the default roleCédric Ollivier2-0/+15
It allows testing controllers which implements other RBAC policies. Defining NEW_USER_ROLE=admin will easily raise side effects for orchestrators such as Juju and Cloudify. Change-Id: Ia78a25381aeb8aa81fd1872661629e1c08432b8f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-18TypoCédric Ollivier1-1/+1
Change-Id: Ibff3b01c50bfee266d0b99fab5b7baf271d43de4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-17Leverage cloudify_ims on CloudifyCédric Ollivier2-286/+94
It also defines 2 new methods to avoid duplicating code: - TenantNetwork1.get_public_auth_url() - VmReady1.publish_image_alt() Shaker and Tempest are updated as well. Change-Id: Ie9095c57c580b95f067d5a8275ad71818b4df335 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-10Force region to RegionOne if OS_REGION_NAME is unsetCédric Ollivier3-5/+9
tempest still selects the first one if unset [1]. JIRA: FUNCTEST-990 [1] https://docs.openstack.org/tempest/latest/sampleconf.html Change-Id: I238d47173c2c4aa1db694028e4d44b80b0e280f1 Signed-off-by: Cédric Ollivier <ollivier.cedric@gmail.com>
2018-07-031) Cleanup floating IPs that are assigned through Juju Deployment.soumaya1-10/+64
2) Add SCTP rule explicitly to the retrieved Security Group. Change-Id: I38e5b1267dbcdcf8e5aadb3c06dd784044e774d4 Signed-off-by: soumaya <soumaya.nayek@rebaca.com>
2018-06-19Fix pylint errorsCédric Ollivier4-23/+17
They are highlighted by the last pylint version. Change-Id: I473212a413013492716993fb536903b13bff66ed Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-18Add minimal docstings in clearwater_ims_base.pyCédric Ollivier1-1/+14
It will allow forcing 10/10 in any new patchset. Change-Id: I4cc52a9fb66fdd2c0dcbf9915be262acedac8672 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-17Fix invalid method names in vnfsCédric Ollivier2-9/+8
Change-Id: Icff1a53ffd7b59d46543b79571b45872a9f243c3 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-15Fix pylint warnings in clearwater_ims_baseCédric Ollivier1-7/+9
Change-Id: I663bd2826e43ce888990b012df27ca94e2d49a8d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-15Remove cloudify_ims_perfCédric Ollivier10-18063/+0
All that modules are uncovered, unverified and deprecated. They will be safely reverted as soon as they are updated, verified by gates and unit tests are added. Change-Id: Iac0893f9f0ccb485d91cd17305e744aff9bf9414 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-14Support py3 in uncovered packagesCédric Ollivier7-27/+34
It has to be noted that cloudify_rest_client doesn't support py3 then next unit tests vs cloudify-based testcases would be excluded. Change-Id: I0b0e64929d1238665c778ce51fd6abd5ccf06b6c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-13Fix result parsing in cloudify_imsCédric Ollivier1-2/+2
The previous regex failed when errors are listed [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-fraser/194/console Change-Id: I57c8bfb8968555c3d43267a06f2bb9a2b95a3268 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-10Update cloudify-rest-client to 4.3.2Cédric Ollivier2-2/+4
Change-Id: I8ac0becb57897233c2a12781dc022d9fdfd32f85 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-09Stop using a forked obsolete repoCédric Ollivier2-39/+20
It leverages on the official clearwater live test instead. It now parses the output directly. Change-Id: Ia7746c13362323daf72b3536d294401f0b7ae42f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-06Switch to Python3 divide in cloudify_imsCédric Ollivier1-0/+2
The code simply asks for python3 divide else only live_test = 100% is considered as successful [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-fraser/169/console Change-Id: I84690d20791cd3d6a68823eec40f0e4b0f876b72 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-05Return true if at least one passed testCédric Ollivier1-1/+1
JIRA: FUNCTEST-974 Change-Id: I9915dbb91516baf5307a577c41ede5dca51a2f07 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-01Update clearwater to 129Cédric Ollivier1-1/+1
It switches to Sprint Ulmo [1] which fixes deployment issues in Orange ONAP Openlab. [1] http://www.projectclearwater.org/sprint-ulmo-release-note/ Change-Id: I3c32faf4e26e64bb12438238cf1ba66b9771da0d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-05-30Bypass Cloudify's upper-constraints issuesCédric Ollivier2-2/+4
It installs cmd2 via yum instead as last cmd2 release only supports python3. Change-Id: I495d71f11ed48ba47e1aa27965675d4bef7c141e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-05-24Bypass Cloudify tenancy issuesCédric Ollivier2-75/+91
It creates a second user to bypass possible bugs and correctly exits on failure if it cannot connect to manager via ssh. It leverages on the _member_ user as much as possible. It also switches all flavor names to avoid conflicts. It also increases debug logs. Change-Id: I59cb071248b5ae50952b9f16eb29f7be3f3644ae Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-05-23Leverage on _member_ userCédric Ollivier2-89/+86
It leverages on the _member_ user as much as possible. It also switches all flavor names to avoid conflicts. It also increases debug logs. Change-Id: Ica595b0aba81e845ddb1c858fd5d0deb69872319 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-05-16Merge "Fix UserConfig objects"Cedric Ollivier2-2/+2
2018-05-16Fix UserConfig objectsCédric Ollivier2-2/+2
UserConfig is expecting domain_name as arg instead of domain. Else all vnfs cannot work against non Default domains. Change-Id: I4bb53df9d9c03524b19ec32f8d346d94ba78d188 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-05-16Fine-tuning the juju-epc codebase for better error-handlingsoumaya1-33/+68
The changes are mostly basic/cosmetic in nature. - Add some additional info in loggers. - Remove timeout from few commands(such as juju deploy) - Add exception logging for few commands(such as juju bootstrap). - Change rsync to cp for feature file transfer within ABot. Change-Id: Ibeaae17f1c25d04b7830ed42719b70e6c99228cf Signed-off-by: soumaya <soumaya.nayek@rebaca.com>
2018-05-11Leverage on local descriptorCédric Ollivier1-3/+1
It simply seems dummy. Change-Id: Ifb83dd0310f523f211911a35e7b481f9da6f9704 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-05-11Install Cloudify descritors in functest-vnfCédric Ollivier4-20/+10
It completes [1] to fix gates [2] and stops getting thirdparty vnf master (dependencies). It also prints data to ease debugging. [1] https://github.com/Orange-OpenSource/opnfv-cloudify-clearwater/commit/abd39d772c77317a25745feaaf312165e7588346 [2] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-fraser/110/console Change-Id: Ib317a491e54820f4edb01fcecfca9d2a08b40c0f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-04-24Merge "Add debug logs in cloudify_ims"valentin boucher2-15/+21
2018-04-23Add debug logs in cloudify_imsCédric Ollivier2-15/+21
Change-Id: I47c6d598ce52f292bf2abdd2e9ecbadff6250712 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-04-21Add timeouts in juju_epcCédric Ollivier1-11/+19
juju_epc still hangs if OpenStack isn't well deployed [1]. As releng doesn't publish logs if the job is aborted, timeout has to be added mostly everywhere. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-fraser/31/console Change-Id: I0296cd811bda0234aab98f184b3ab247a5b32017 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-04-20Fix image paths in cloudify_ims_perf.yamlCédric Ollivier1-2/+2
Change-Id: If58b5f2021df8a0de672a30459b5b0b12f3fcef2 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-04-19Use timeout to wrap juju-waitCédric Ollivier1-2/+4
It allows getting logs as releng doesn't push them if global timeout. Change-Id: I4bbb3818feff37d29b4ccd586f3e940380feef2e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-04-18Check app workload in juju_epcCédric Ollivier1-16/+16
It avoids interpreting rsync errors in case of deployment failures. Mysql is still unchecked. Change-Id: I01b4470b86637d0fc322c422f05240a928305158 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>