aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
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-11-06Update postman data about pnf package onboard in VFCyangyan1-0/+244
Change-Id: Icc9b004e99c330bb24ec864d85039366ce9dd55c Issue-ID: INT-1364 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
2019-11-06Update postman data about vnf package onboard in VFCyangyan1-0/+185
Change-Id: I9d15f923f39dbdb93b3aea9888cc8cd780e09172 Issue-ID: INT-1364 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
2019-11-06Update postman data about ns package onboard in VFCyangyan1-0/+223
Change-Id: I89f51d25c55c12d3c394e86852f6bf58dc333956 Issue-ID: INT-1364 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
2019-11-06Update postman data about catalog package onboard in VFCyangyan1-0/+163
Change-Id: I83798b06f37f7f1cc88e18e1ddd17141105b9fe7 Issue-ID: INT-1364 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
2019-11-06Update postman data about ns_instance in VFCyangyan1-0/+234
Change-Id: I89978b74fb278948f0deb459ed726f83392b48cd Issue-ID: INT-1364 Signed-off-by: yangyan <yangyanyj@chinamobile.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-23update Postman collections and doc,with correctionsRene_Robert14-658/+2108
Issue-ID: INT-1340 Signed-off-by: Rene_Robert <rene.robert@orange.com> Change-Id: Idcb5ef7669805f0d8c4266ee45310078d33260c2
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-14Fixed Bugs in HPA automtion scriptItohan20-9/+195
Signed-off-by: Itohan Ukponmwan <itohan.ukponmwan@intel.com> Issue-ID: INT-1137 Change-Id: Ib681f797bb9ed631cfe36507425bcbd1fc2b5561
2019-10-11Update ONAP probe script to cater for nfs node and use of local docker ↵AndyWalshe1-5/+18
repository Issue-ID: INT-1321 Change-Id: I150324b147f01e6455dccc19c0be748dcf67286a Signed-off-by: AndyWalshe <andy.walshe@est.tech>
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-01k8s: Validate controller manager flags requiring specific valuesPawel Wieczorek3-1/+60
This patch verifies if CIS Kubernetes Benchmark v1.3.0 sections regarding master node configuration are satisfied (1.3.2 - 1.3.3 and 1.3.6). Issue-ID: SECCOM-235 Change-Id: I9c2921faf40ad9445e983f2b9bd0610e556cfe15 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-10-01(WIP)Fix automation issues due to cli changeRuoyu Ying2-46/+57
Fix several changes due to cli change Issue-ID: INT-1289 Signed-off-by: Ruoyu Ying <ruoyu.ying@intel.com> Change-Id: Ib07d9be8ace77270046c8aa02f162a9ad7994370
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-30k8s: Resolve Docker response formatting issuePawel Wieczorek2-0/+18
Checker collects information on cluster by Docker queries: $ docker ps ARGS... # Casablanca $ docker inspect ARGS... # Dublin Arrays of values are then filtered from those. They include: * opening bracket ('['), * closing bracket (']'), * new line. Additional characters affect check results if last flag (including "]\n") requires specific value. Issue-ID: SECCOM-235 Change-Id: I6838342b7e2ecdc44a47ffe02286266003e0b4d3 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-09-30k8s: Resolve address conflicts in virtual environmentsPawel Wieczorek3-7/+7
Running Casablanca and Dublin virtual environments at the same time led to networking issues - the same IP had been assigned to cluster nodes. Issue-ID: SECCOM-235 Change-Id: I2a59d023115326f5b132782a32190fd8f7dc1f48 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-09-27k8s: Validate controller manager address flagPawel Wieczorek5-1/+98
This patch verifies if CIS Kubernetes Benchmark v1.3.0 section regarding master node configuration is satisfied (1.3.7). Issue-ID: SECCOM-235 Change-Id: Id3f4bcb9a506dae3c7c0a884ad6c704dfae2a6d8 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-09-27k8s: Add controller manager information collectionPawel Wieczorek4-2/+27
Issue-ID: SECCOM-235 Change-Id: Ieceb6337f935e6a5a6b94248ccf072229116510a Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-09-27k8s: Validate scheduler flagsPawel Wieczorek5-1/+101
Issue-ID: SECCOM-235 Change-Id: I61df142e99a7f1da335471acab88e5a47d72df15 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-09-27k8s: Add scheduler information collectionPawel Wieczorek4-2/+27
Issue-ID: SECCOM-235 Change-Id: I7da645737440172d3cf11f33069daa2697f83056 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-09-27k8s: Extract common validators for DRY codePawel Wieczorek3-205/+232
Issue-ID: SECCOM-235 Change-Id: Ic5997b67d0512bea51c3b4a4c71805987fa6f011 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-09-27k8s: Extract common interface to simplify developmentPawel Wieczorek5-81/+142
Common command and service name extraction is intended to limit execution to small set of allowed processes. This patch also drops unnecessary use of "Kubernetes" name because this whole subproject concerns its clusters. Issue-ID: SECCOM-235 Change-Id: I8babfeb4f24cf3baa4d236ca622c21170ab6205e Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-09-26k8s: Change default cluster access method choice logicPawel Wieczorek1-1/+6
Previous way of choosing it led to impractical calls, e.g. $ ./check -rke # (works fine) $ ./check -ranchercli # "Not supported." $ ./check -ranchercli -rke=false # (works fine) Disabling default cluster access method is no longer necessary. Issue-ID: SECCOM-235 Change-Id: I2b4d5bff10c5470e567351abeac0431bed3b7938 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-09-26k8s: Declutter checker by dividing it into smaller packagesPawel Wieczorek5-52/+64
Issue-ID: SECCOM-235 Change-Id: I7d4efd08b8c0258f2f9c33772bf1b1b02cedebfa Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-09-26k8s: Call correct methods for API server auditing flags validationPawel Wieczorek1-3/+3
Issue-ID: SECCOM-235 Change-Id: Ia5d75628b1c5211f378c239f84e9689d45697a04 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-09-26k8s: Validate API server request timeoutPawel Wieczorek3-0/+39
This patch verifies if CIS Kubernetes Benchmark v1.3.0 section regarding master node configuration is satisfied (1.1.38). Issue-ID: SECCOM-235 Change-Id: Ic1f175d577c79013ddb49e02b8de69137535c964 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-09-26k8s: Validate API server included authorization modePawel Wieczorek3-2/+19
This patch verifies if CIS Kubernetes Benchmark v1.3.0 section regarding master node configuration is satisfied (1.1.32). It also fixes wrong documentation comment for similar validator (1.1.19). Issue-ID: SECCOM-235 Change-Id: I00cb8a458871b091b16fe60fc0087b7972aa3b6b Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-09-26k8s: Validate API server crypto ciphers in usePawel Wieczorek3-0/+31
This patch verifies if CIS Kubernetes Benchmark v1.3.0 section regarding master node configuration is satisfied (1.1.30). It also covers its duplicate (1.1.39). Issue-ID: SECCOM-235 Change-Id: I0f3031c080cf225e7c2c03e65dd0bfc780326307 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
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-24add terminate and del function to hpy_automation scriptsyangyan1-0/+24
Change-Id: Ie669261bde3723d892706d3d767c08b325afc3e0 Issue-ID: INT-1239 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
2019-09-20fix the typo error of hpy_automation scriptsyangyan1-2/+2
Change-Id: I27b43d63042bdb46f1ff362335a26bf6726674a0 Issue-ID: INT-1239 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
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-19k8s: Validate API server certificates and keysPawel Wieczorek3-0/+79
This patch verifies if CIS Kubernetes Benchmark v1.3.0 sections regarding master node configuration are satisfied (1.1.22, 1.1.25 - 1.1.26 and 1.1.28). Issue-ID: SECCOM-235 Change-Id: Ic61a796653dc868d20fe69c3ed508e7fa8ba52db Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-09-19k8s: Validate API server Certificate AuthoritiesPawel Wieczorek3-0/+55
This patch verifies if CIS Kubernetes Benchmark v1.3.0 sections regarding master node configuration are satisfied (1.1.21, 1.1.29 and 1.1.31). Issue-ID: SECCOM-235 Change-Id: Ia2f55f6962885a7aa878c970a406189902cfab10 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-09-19k8s: Validate API server auditing flagsPawel Wieczorek3-0/+82
This patch verifies if CIS Kubernetes Benchmark v1.3.0 sections regarding master node configuration are satisfied (1.1.16 - 1.1.18). Issue-ID: SECCOM-235 Change-Id: I27b63e37fc3203cf3574b9e1cdc43333041f2a36 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-09-19k8s: Validate API server auditing is enabledPawel Wieczorek3-0/+33
This patch verifies if CIS Kubernetes Benchmark v1.3.0 section regarding master node configuration is satisfied (1.1.15). Issue-ID: SECCOM-235 Change-Id: Ia1d27ed7a9e439bb0abf4bd8941bdd4573a50bd5 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-09-19k8s: Group tests by flag typePawel Wieczorek1-53/+59
Issue-ID: SECCOM-235 Change-Id: I25ebd2930afec6eb259f0a678fffbf7727eb315b Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>