aboutsummaryrefslogtreecommitdiffstats
path: root/test/vcpe/vcpecommon.py
AgeCommit message (Collapse)AuthorFilesLines
2020-01-29Support reading cloud settings from clouds.yamlBartek Grzybowski1-0/+31
clouds.yaml is a default cloud configuration file for openstacksdk library. Using it deduplicates cloud settings from vcpeconfig.yaml and makes CI setup easier. Change-Id: Iaf81bcaa3c27dae7c1619690da45e6b7feee7768 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1409
2020-01-10Support setting custom path to config file in vcpe.pyBartek Grzybowski1-3/+7
Change-Id: I9ec950413f323e6ed6dfb075f16b67d925ece047 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1399
2020-01-08Move site specific properties to config fileBartek Grzybowski1-78/+1
Vcpe settings that were hardcoded in the VcpeCommon class definition are moved to a configuration file. Change-Id: I6733c6da5fc1977f67c4bd393bfa6fec0798971b Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1399
2020-01-08Support reading configuration from vcpeconfig.yamlBartek Grzybowski1-0/+30
Settings from config file will be assigned directly to VcpeCommon class' object attributes. Change-Id: I3cd31077c04de6bacf6dc2365837405a1aa5f6cc Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1399
2019-12-06Get VfModuleModelInvariantUuid from service csar at runtimeBartek Grzybowski1-7/+0
VfModuleModelInvariantUuid no longer needs manual assignment, it will be gathered from service csar at runtime. Change-Id: I5d0da822dd4ce7b574dae8ce80db2a2d1e5de297 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1389
2019-12-06Insert vcpe customer service workflow into SO catalogdbBartek Grzybowski1-7/+8
Customer service workflow entry will be automatically inserted into catalogdb database if running with oom_mode set to True. So database endpoint properties were updated to reflect current catalogdb location. vCPE doc updated to reflect the changes made. Change-Id: I54ef0bf94ccf2d38501c1b854cafe4d388a4b35d Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: TEST-205
2019-11-19Add identity-url to region data in AAIBartek Grzybowski1-0/+10
This change automates the process of updating region data with identity-url Change-Id: Ibda9ac8d1bbe1a489d496a5f293aafdebb73d416 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: SO-2308
2019-11-19Get the BRG MAC address automaticallyBartek Grzybowski1-6/+19
Sdnc db port was also adjusted as there's no sdnc-db service anymore (since OOM-1651) Change-Id: I154463224777f6fd76f5380253aa9130224fe3e4 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1365
2019-11-18Set gra_api to 'False' by defaultBartek Grzybowski1-2/+2
It can be True only after DGs are updated for GRA-API infrastructure. Change-Id: Ibda82ae14680387e07c5bd5525259b7cc9dfd092 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1345
2019-11-18Disable InsecureRequestWarning from requests libraryBartek Grzybowski1-2/+0
Globally disable InsecureRequestWarning coming from requests library for both pre 2.16.0 and for >= 2.16.0 versions. Change-Id: Ibf4e749086265e8726e90a2f8b4c1c9df3b2c55d Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: TEST-227
2019-11-14Initial GRA_API SupportBrian Freeman1-5/+12
Updated after testing in integration-release-daily Issue-ID: INT-1345 Change-Id: I61410e97d244ec7a736722727e11764fb5f3f5a9 Signed-off-by: Brian Freeman <bf1936@att.com>
2019-10-30Fix failures return codes in vcpe scriptsBartek Grzybowski1-11/+11
Conditional exits on failures should return with non zero exit code for better behavior in testing pipelines. Change-Id: Ied2e699a2cd38cc741e6d9d9a5c88082f09fa549 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: TEST-226
2019-10-24Use VcpeCommon.host_names in get_oom_onap_vm_ip routineBartek Grzybowski1-2/+1
List of host names to iterate over in search for a vm ip in get_oom_onap_vm_ip() should be identical to the globally defined host names. Change-Id: I60e1a2d77d683b81ae480499ce357dd812e8694f Issue-ID: TEST-225 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-10-18Switch oom_mode to False by defaultBartek Grzybowski1-1/+1
Vcpe scripts should be run from Rancher node where it has direct access to k8s cluster ips and service endpoints so that calls for oom_mode to be set to 'False'. Change-Id: I8edc0f363d7d32f28b070b0de87a3e2eab8223ff Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1339
2019-10-16Automate SDNC ip pool insertion into databaseBartek Grzybowski1-0/+36
This patch automates SDNC ip pool generation in sdnctl database in the scope of vcpe.py 'init' stage. Change-Id: I6322ff2dadb069991be0eddbb0cf415baa7984f6 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: TEST-222
2019-10-10Fix setting onap namespace and environment name separatelyBartek Grzybowski1-2/+3
Onap namespace and environment name can be distinct on a per deployment basis and this allows to set them accordingly. Change-Id: Id1b6fdc4f3b4c159117536187197cb308527f8d2 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1323
2019-09-25Fix hashbang in vCPE Python scriptsBartek Grzybowski1-0/+2
Change-Id: Id2b7ec151e1a006a5a85b8544e478fd9cf282715 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: TEST-220
2019-09-25Automate vCPE closed loop policy pushingBartek Grzybowski1-2/+100
Added a library routine to set up CL policy in an idempotent fashion. Description of CL pushing related manual step was removed from documentation. Change-Id: I1fad5d71481252ce803dd58c6ccbbcfa0a4d246f Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1267
2019-09-20SDNC SSL port, BRG category, DEBUGBrian Freeman1-5/+5
Issue-ID: INT-1265 Change-Id: I4ea7bf282b7d8aad58645784317dea9edf373cff Signed-off-by: Brian Freeman <bf1936@att.com>
2019-09-18Updates for ssl sdcBrian Freeman1-4/+4
Issue-ID: INT-1265 Change-Id: I64971740c8ae9aee60a06ca1d0e5ff02ccbc9a88 Signed-off-by: Brian Freeman <bf1936@att.com>
2019-09-13Fix mispelled routine name in vcpe scriptsBartek Grzybowski1-1/+1
headbridge -> heatbridge Change-Id: I49cc3af80b74a9d03612625be2a35e039e6d28e1 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: DOC-549
2019-09-13Remove hardcoded SDNC pod name in vcpe scriptsBartek Grzybowski1-5/+5
Sdnc pod name is set as a property in VcpeCommon class and it should be used across the script. Also removed hardcoded public net prefix in get_pod_node_public_ip and use class property where it's assigned. Change-Id: I0308c808a764ff114fc43591aed34d9695207fe5 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: TEST-212
2019-09-12Better specifying parts supposed to be changedMichal Ptacek1-11/+33
Following params are needed minimum required to be changed or cross-checked when vCPE is tried in different lab Change-Id: I911acc682560c9a727d2e14ae1d4a22206d6e6f8 Issue-ID: TEST-208 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
2019-09-12Improve external_net_addr property description in vCPE scriptsBartek Grzybowski1-0/+4
Change-Id: Ie06109bb5c62d4132a5db8c6cfeb9d4c297d05a5 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: TEST-208
2019-06-26Clean up vCPE scriptYang Xu1-9/+0
Signed-off-by: Yang Xu <yang.xu@futurewei.com> Issue-ID: INT-847 Change-Id: I1158442cd73c6e0d943e9cc111cb12dae1381d36
2019-06-13Improve vCPE test automationYang Xu1-1/+1
Signed-off-by: Yang Xu <yang.xu@futurewei.com> Issue-ID: INT-847 Change-Id: Ib5b0a547f1c228de4cee02f3526401028c10bff0
2019-04-30Add allotted resource subcategory BRG in SDCYang Xu1-5/+12
Change-Id: I1c361215ba086afe7444a5c457ba08aedf9fddcd Issue-ID: INT-847 Signed-off-by: Yang Xu <yang.xu3@huawei.com>
2019-04-29Download vCPE service csar from SDCYang Xu1-2/+10
Clean up import Change-Id: I1a1be9b0528858fc30106978153e0af132675f93 Issue-ID: INT-847 Signed-off-by: Yang Xu <yang.xu3@huawei.com>
2018-12-31Use Openstack novaclient API in vCPEYang Xu1-5/+33
Change-Id: Ia9a8a704b239d7372cc864732193072cf5fecfa1 Issue-ID: INT-791 Signed-off-by: Yang Xu <yang.xu3@huawei.com>
2018-12-30Automate pod cluster node ip retrievalYang Xu1-12/+45
Change-Id: I8e644798fefa180a26da4c2cb4607467810f964a Issue-ID: INT-791 Signed-off-by: Yang Xu <yang.xu3@huawei.com>
2018-12-28Fix issue when creating SNIRO configurationYang Xu1-14/+14
Change-Id: I739ce90b975bc820f007858bd9d2b49f39150301 Issue-ID: INT-789 Signed-off-by: Yang Xu <yang.xu3@huawei.com>
2018-12-02Use Casablanca released artifacts for vCPE VNFsYang Xu1-10/+10
Change-Id: I7bf82229b0e5cb8a02e0b5a0c8651c468cd3c436 Issue-ID: INT-717 Signed-off-by: Yang Xu <yang.xu3@huawei.com>
2018-11-22Change vgw module name for vCPE test scriptYang Xu1-0/+2
Change-Id: I17308f23812cc1a335155fd4e9e789bed04dec00 Issue-ID: INT-717 Signed-off-by: Yang Xu <yang.xu3@huawei.com>
2018-11-20Fix issues in vcpe test scriptYang Xu1-7/+7
1. SDNC GRA url issue 2. Add mr ip and port to prepload 3. Allow SO service_recipe table to be populated 4. Add SDNC ip to preload 5. Add vfmoduleName section in SO request 6. Set Generic NeutronNet shared as False Change-Id: Iba4ff695759ceab53e33367092b6b59678e082e7 Issue-ID: INT-717 Signed-off-by: Yang Xu <yang.xu3@huawei.com> (cherry picked from commit 1a0a0466716419880ab6b1fc6a94ec82a2966cb0)
2018-11-14Retrieve SDNC oam ip from k8sYang Xu1-1/+1
Change-Id: Ib2083effe91bff4b84a4e7d1c71034360a0c2fe1 Issue-ID: INT-717 Signed-off-by: Yang Xu <yang.xu3@huawei.com>
2018-11-14Retrieve SDNC oam ip from k8sYang Xu1-10/+17
Change-Id: Ie72d19432f293bbfce9ae8b8c3cbcc7937bce8e8 Issue-ID: INT-717 Signed-off-by: Yang Xu <yang.xu3@huawei.com>
2018-11-13fixes from vCPE testingBrian Freeman1-0/+7
Issue-ID: INT-717 Change-Id: If2c44e08288eee955b7a3548a802be37a15a601e Signed-off-by: Brian Freeman <bf1936@att.com>
2018-11-12Update nodeports ; fix typo in preload.pyBrian Freeman1-5/+5
Issue-ID: INT-717 Change-Id: Ic3398239c20cb268480b4f67c5ec21074119a0b8 Signed-off-by: Brian Freeman <bf1936@att.com>
2018-11-12Updates for Casbalanca vcpe.pyBrian Freeman1-0/+4
Issue-ID: INT-717 Change-Id: I0d5978da205fcc02935e9547424578f90e5a5c38 Signed-off-by: Brian Freeman <bf1936@att.com>
2018-07-23Support vCPE automation in OOM-based envKang Xi1-18/+50
Change-Id: I716aa4718722c45160c5b002616ce03d4d0c6a59 Issue-ID: INT-593 Signed-off-by: Kang Xi <kang.xi@huawei.com>
2018-05-30Support multiple customer instantiationKang Xi1-36/+88
Issue-ID: INT-509 Change-Id: I64a934b516f2290812f39c0df2a0d35027a5d553 Signed-off-by: Kang Xi <kang.xi@huawei.com>
2018-05-23Update to support new SO NBI APIKang Xi1-13/+25
- Use new version SO API - Add additional data to the request json, which is required by the new SO API Change-Id: I3ac846c92f07b9d95d4429b4d1b2280ae7e69b62 Issue-ID: INT-461 Signed-off-by: Kang Xi <kang.xi@huawei.com>
2018-04-13Initial code import for vcpe automation.Kang Xi1-0/+414
Initial code import for vCPE use case automation. Source code was validated for Amsterdam release. Changes may be needed for Bejing. - Remove unneeded files: test.py and onap_dev Issue-ID: INT-461 Change-Id: Ifc2665bf8069fdcebd052cecc95266a4b831d2e8 Signed-off-by: Kang Xi <kang.xi@huawei.com>