aboutsummaryrefslogtreecommitdiffstats
path: root/test/vcpe
AgeCommit message (Collapse)AuthorFilesLines
2023-04-18Pin tox.ini basepython to 3.8Marek SzwaƂkiewicz1-1/+1
Issue-ID: INT-2222 Change-Id: Id4577f676d914b1925949586771880fde1fa32e1 Signed-off-by: Marek SzwaƂkiewicz <marek.szwalkiewicz@external.t-mobile.pl>
2020-10-02optimize size and time using "--no-cache-dir"Pratik Raj3-5/+5
Using "--no-cache-dir" flag in pip install ,make sure dowloaded packages by pip don't cached on system . This is a best practise which make sure to fetch ftom repo instead of using local cached one . Further , in case of Docker Containers , by restricing caching , we can reduce image size. In term of stats , it depends upon the number of python packages multiplied by their respective size . e.g for heavy packages with a lot of dependencies it reduce a lot by don't caching pip packages. Further , more detail information can be found at https://medium.com/sciforce/strategies-of-docker-images-optimization-2ca9cc5719b6 Issue-ID: INT-1616 Signed-off-by: Pratik Raj <rajpratik71@gmail.com> Change-Id: Id3e28faf35f36258362323b4a96bcf0f3f95726b Signed-off-by: mrichomme <morgan.richomme@orange.com>
2020-03-06Fix linter issues in soutils.py vcp librabryBartek Grzybowski1-10/+10
Change-Id: I6adaa992fe9c2411025eb28edafef83b506bac29 Issue-ID: INT-1427 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-03-05Fix Python linting issues in Python scriptsBartek Grzybowski6-14/+13
Fixed pylint issues for categories len-as-condition, using-constant-test, undefined-variable and reimported. Change-Id: Idad710958c3ca0ac6da78fb4709da03e5f079b34 Issue-ID: INT-1427 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-03-05Supress pylint warnings for undefined variablesBartek Grzybowski4-7/+7
'cmp', 'file' and 'unicode' functions are Python 2 specific. Change-Id: I30fa091ef157453a328ab40e4186c30e5ed1b3a1 Issue-ID: INT-1427 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-03-05Fix indentation and whitespace issues in Python scriptsBartek Grzybowski5-20/+20
Reported by pylint. Change-Id: I9d5ee152f3587bb2d7e8abee919e4ffe47d8ae85 Issue-ID: INT-1427 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-03-04Fix pylint trailing whitespaces issues in vcpe python scriptsBartek Grzybowski5-19/+10
Change-Id: I8b1dbdb7bf5d2d12d0104dcabc200b8827b6fb8a Issue-ID: INT-1427 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-03-04Remove unused imports in vcpe python scriptsBartek Grzybowski9-26/+7
Unused imports are removed according to pylint report or ignore rules are added where applicable. Change-Id: I8c32b5c3f456f0444f8ec8980910d470b7238a7d Issue-ID: INT-1427 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-03-02Fix JSON files linter issues in test/vcpeBartek Grzybowski14-1594/+1619
This is needed prior to adding job for JSON files linting in CI. Change-Id: I408107e0dc58648f833b8d585acf0e414882c7dc Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1451
2020-02-21Fix YAML linter indentation errors in yaml filesBartek Grzybowski1-3/+3
Change-Id: I5548de0d7afb0e249ab8b6dbc93c102a2a2ac648 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1451
2020-02-07Add test to ensure all needed modules are provided by setuptoolsBartek Grzybowski1-0/+17
Change-Id: I592a6bf393007612c263f6e54aabfcdb6738141a Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1427
2020-02-07Add tox config for vcpe scriptsBartek Grzybowski1-0/+15
This is a basic setup for tox that will run pytest tests Change-Id: Icb15fbd30d7c13694866f447cd448a07195f4573 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1427
2020-02-07Define vcpe scripts dependencies via setuptools configBartek Grzybowski2-11/+45
Dependencies definition is moved to setuptools so that they can be consumed by both - vcpe automation scripts setup and by testing framwewok. Change-Id: Id9cfda52afc3527d2cd3be8cfcf3f82539468261 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1427
2020-01-29Remove cloud settings from vcpeconfig.yamlBartek Grzybowski3-22/+27
Additionally clouds.yaml.example is provided with integration lab cloud settings. Change-Id: I214217e5b239303c4485c855cdf81bd0250de6e5 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1409
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 helper scriptsBartek Grzybowski2-2/+16
Change-Id: I43b160cfc3d087a0e8b70c9fb4cafa3626f84db8 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1399
2020-01-10Support setting custom path to config file in vcpe.pyBartek Grzybowski2-11/+16
Change-Id: I9ec950413f323e6ed6dfb075f16b67d925ece047 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1399
2020-01-10Use argparse library to parse command line optionsBartek Grzybowski1-27/+56
Change-Id: I75028c59109a9db902f7869ab1b987cc0c02e321 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1399
2020-01-10Fix VcpeCommon object instantiationBartek Grzybowski1-3/+1
Superfluous VcpeCommon object instantiation in 'test' routine in Preload class was removed. Removed meaningless vcpecommon namespace import. Change-Id: I68c8604b12ffc760ab8ed4c53af586a5ca2572c7 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1399
2020-01-10Add config for community lab running with OOM disabledBartek Grzybowski2-4/+74
Change-Id: Id23f6fa50fdbeb103fb91514d9093163d07b9246 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1399
2020-01-10Remove unreferenced aaiutil.py fileBartek Grzybowski1-0/+0
Change-Id: I69e1385e0b7ef51ed372387b08b5c59c4e52c66a Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1399
2020-01-08Move site specific properties to config fileBartek Grzybowski2-78/+79
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 Grzybowski2-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 Grzybowski2-11/+6
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 SDNC ip pool automatically only if oom_mode is enabledBartek Grzybowski1-11/+15
Change-Id: Ia1fe923f877cf76e51bcc1f23c9bf562a877b112 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: TEST-222
2019-12-06Insert vcpe customer service workflow into SO catalogdbBartek Grzybowski3-21/+27
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-20Fix logic for finding brg vnf template fileBartek Grzybowski1-5/+13
Change-Id: I0e31cc0a0a71a08a74ec56f4aa17321eb8d8c7ba Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1345
2019-11-19Add identity-url to region data in AAIBartek Grzybowski4-0/+104
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 Grzybowski2-10/+20
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 Grzybowski2-2/+6
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-15Add missing networkgraBrian Freeman1-0/+33
Issue-ID: INT-1345 Change-Id: I18c48a9f716c3a4c0bd6e7756f5df325aaee39e3 Signed-off-by: Brian Freeman <bf1936@att.com>
2019-11-14Initial GRA_API SupportBrian Freeman8-26/+746
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 Grzybowski4-23/+23
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-24Make SDNC ip pool insertion idempotentBartek Grzybowski1-1/+1
This ensures that subsequent 'vcpe.py init' invocations do not complain about duplicate entry in sdnctl databse (entries are not reinserted, INSERT statement is just noop in this case). Change-Id: I8def8eab1e04026e8ee2206aa11fe2644b35d609 Issue-ID: TEST-222 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
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-18Add usage description for 'noloss' optionBartek Grzybowski1-1/+2
Change-Id: I454d21fe90511d20e1e25a62bb2943ccd59e52c6 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1325
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 Grzybowski3-0/+50
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-10-07Automate curl installation in sdnc container (vCPE)Bartek Grzybowski1-2/+16
Curl package will be automatically installed be the healthcheck-k8s.py script. Change-Id: I7fc5579524c7519f6153b02d0de0000dc0138992 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1313
2019-10-03Fix SSL cert verify for SDNCBrian Freeman1-1/+1
Issue-ID: INT-1265 Change-Id: I7c36dc479b73a8b663cae4472ed29182d0f6672b Signed-off-by: Brian Freeman <bf1936@att.com>
2019-10-01Refactor setup script for preparing vCPE tools runtime envBartek Grzybowski1-12/+37
Script is now more generic and allows proper setup of vcpe scripts runtime environment on Ubuntu 16.04/18.04 and on Centos/Rhel 7.6. Change-Id: I7b7d944f5a6a7a9dc45921082f908a1f8aa185a1 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: TEST-203
2019-09-25Fix hashbang in vCPE Python scriptsBartek Grzybowski12-13/+15
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 Grzybowski4-10/+105
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 Freeman2-7/+9
Issue-ID: INT-1265 Change-Id: I4ea7bf282b7d8aad58645784317dea9edf373cff Signed-off-by: Brian Freeman <bf1936@att.com>
2019-09-18Updates for ssl sdcBrian Freeman2-8/+8
Issue-ID: INT-1265 Change-Id: I64971740c8ae9aee60a06ca1d0e5ff02ccbc9a88 Signed-off-by: Brian Freeman <bf1936@att.com>
2019-09-13Refactor healthcheck-k8s.pyBartek Grzybowski1-17/+23
Error reporting was improved by returning actual error message from subprocess call to 'kubectl' command. Code readability was improved by defining a dictionary of endpoint names to check and their IPs. Unsecure 'shell=True' property in Popen constructor for kubectl command in SDNC DB was removed and command string itself sanitized. Overall code readability was improved by reusing common commands in a loop. Change-Id: I19f8f71e27196bb55a9be3d58cd0885ceba3af0c Issue-ID: TEST-213 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-09-13Fix mispelled routine name in vcpe scriptsBartek Grzybowski2-2/+2
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