aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/vnf/ims
AgeCommit message (Collapse)AuthorFilesLines
2023-03-21Stop bashing functest scriptsguillaume.lambert1-1/+1
Though bash is a good interactive user shell and apart portability concerns, many UN*X systems and GNU+Linux distributions now prefers Almquist or Kornshell variants for scripting in order to improve the system performance and maintenability. https://wiki.ubuntu.com/DashAsBinSh https://mywiki.wooledge.org/Bashism https://en.wikipedia.org/wiki/Almquist_shell Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com> Change-Id: I32c5490f9eab54e6cac594f3eac1e392edf8b272
2021-11-15Update linters and fix all new issuesCédric Ollivier3-21/+17
It mostly add encoding in open calls and leverage f-strings. Change-Id: Ifead18fc724a452c1067dcf91dc577032edc9c59 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-08-18Update to Alpine 3.14Cédric Ollivier2-10/+10
It also fixes lots of new pylint warnings. Change-Id: I3376aee5649596c53bc2941ad4d8e0674a2967fe Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2020-08-17Boot a VM to run jujuCédric Ollivier1-1/+1
It allows running juju_epc vs arm32 and arm64. It stops offering juju in functest-vnf and rather installs it in a VM. It also adds a couple of missing output decode() Change-Id: I2218742b2824c8328823051bde32422e56784e90 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-07-27Switch to Python 3.7 and Alpine 3.10Cédric Ollivier3-14/+11
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: If09d4796d48b7d0591e7926621d3bbf5ca1b6c24 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-06-24Add warning messages in vyos_vrouterCédric Ollivier1-1/+1
Both Cloudify based testcases print the same warning messages if NEW_USER_ROLE is admin. An additional whitespace is removed too. Change-Id: Idf2a2ea4373efdc579f0ac3e0a69ec08a7fbf105 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-05-21Avoid running local dnsmasq when testing IMSCédric Ollivier3-34/+22
It may be unsafe and it's useless for testing IMS if BONO_IP is set. Change-Id: I8b0f010956defbfa1fd22b5aa5cbea70bd2968a4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-04-24Refactor modules to avoid duplicated codeCédric Ollivier3-85/+20
It also increases number of lines to warm about duplicated codes. Change-Id: I3914da8a90cbfe8fd024e9944c3adc8a617330d3 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-03-22Remove hardcoded tempos in heat_imsCédric Ollivier1-1/+0
It adds loops to wait for services. It sets dns forwarders to allow sending Heat signal at last instructions. Change-Id: I3ae29ddbaee5f8b2086078bd5245e140348f0dcf Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-03-18Avoid killing create_number.pyCédric Ollivier1-3/+5
create_numbers.py has been killed by other services as described in [1]. It's now called when ellis is up and running. It adds few sleeps to ensure the right boot orders (signals must be send before switching DNS). [1] http://www.projectclearwater.org/using-start-stop-daemon-with-the-python-interpreter/ Change-Id: I87ad3828c10d3ccbc707ed8f4ab99987c6968f09 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-03-16Print monit summary before running IMS testingCédric Ollivier1-1/+24
Change-Id: I94310aa609d2c56609e0a5f0e46932af4aee02eb Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-03-09Add dependencies in heat_imsCédric Ollivier1-1/+1
It avoids useless loops for cloud init messages. It now conforms with clearwater-docker (disable ipv6 in cassandra). Change-Id: I6f469cf48224296b2eaa079d342642c5caca65f5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-03-07Modify the upstream Clearwater Heat filesCédric Ollivier1-7/+4
It forces a single network for both management and signaling traffic. It meets the OPNFV deployment requirements and the Functest SUT ones. The security group will be improved in a second step to first quickly fix the testcase in gambia. Private IPs may be registered in DNS to avoid network address translations. Change-Id: Ic19cf336ac5c2d07c52c6dd37b06271790145cf9 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-02-27Conform heat_ims subnets with other testcasesCédric Ollivier1-0/+11
It will be enhanced in a second step to calculate options from configs. Change-Id: I91738e1aaad9a7049df44f734c4190def62fff91 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-02-27Reduce Heat Ims resourcesCédric Ollivier1-3/+3
It eases testing with less resources. It conforms with the new values in the Cloudify part [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/67092/ Change-Id: I1f6158a42fd8ed390c07e7c773bb246f81adef3b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-02-24Ease copying/pasting the private keys from logsCédric Ollivier1-1/+1
Change-Id: I8f1ccdb709dbb3e7a22a404c036714dd848dd87d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-02-23Reduce Cloudify Ims resourcesCédric Ollivier1-3/+3
It eases testing with less resources. Change-Id: I301cdff0c8dfb2cf70ef53fc446749e1a70b0919 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-02-12Increase timeout to reach vnf APICédric Ollivier1-2/+2
It increases the timeout in cloudify-based and clearwater-based testcases to allow running them in parallel (functest-virtual) [1]. [1] https://build.opnfv.org/ci/job/functest-latest-gate/54/ Change-Id: Ic637cb46a1380a683cb1e2b633cb97ac3be6affa Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-02-11Update and enable Cloudify-based testcasesCédric Ollivier1-4/+15
It switches from the Cloudify virtual machine to the community container which allows deploying vyos_vrouter and cloudify_ims. Last stable Cloudify OpenStack plugin (2.4.17) is now deployed. It also updates the Cloudify python package to latest release. It adds a delay before deleting the blueprint which may be improved in a second change (it allows enabling the testcase in the stable release). Change-Id: Ie48a2c9d2badab0d7ba0b9e7845f453fad335ef7 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-01-20Slightly improve heat_imsCédric Ollivier1-2/+2
It increases timeouts which could be reached if shared bandwidth (functest-virtual [1]). [1] http://artifacts.opnfv.org/functest/functest-opnfv-functest-vnf-latest-heat_ims-run-4/results/functest.log Change-Id: I29adcd9ea88bbccbaef9ba7f8e155d37a3217433 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-12-06Remove duplicated code in vnfsCédric Ollivier3-140/+36
It mainly leverages on functest_utils instead of duplicating. Change-Id: I97dc9215a835d3e7f1527b565132f667f09f2b7e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
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-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>
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-07-30Delete alt images before removing the accountCédric Ollivier1-2/+1
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-30Fix clean() in cloudify ims and routerCédric Ollivier1-4/+7
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-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 Ollivier1-0/+8
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 Ollivier1-1/+2
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-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 Ollivier1-6/+5
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 Ollivier5-18/+21
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 Ollivier1-1/+2
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 Ollivier1-1/+2
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-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 Ollivier2-7/+6
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-23Add debug logs in cloudify_imsCédric Ollivier2-15/+21
Change-Id: I47c6d598ce52f292bf2abdd2e9ecbadff6250712 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>