summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-06-18Refactor npm packages downloadMilan Verespej2-2/+136
Series of commits to improve python download scripts. Issue-ID: OOM-1803 Change-Id: I199660ab121038780c34065f78538bb4e7b07eb5 Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-06-18Refactor http files downloadMilan Verespej4-0/+396
Original download scripts got out of hand. This series of commits improves style of code (code duplicates, etc.) Issue-ID: OOM-1803 Change-Id: I7b82c1711d27fe450430fbe6d962a450301b0be0 Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-06-14Merge "Fix missing import in helm_deployment_status.py"Petr Ospalý1-5/+3
2019-06-14Merge changes from topic "OOM-1810"Petr Ospalý3-0/+49
* changes: Add verification tests for 'chrony' role Setup 'cluster_ip' fact for infra host in 'chrony' role tests
2019-06-14Merge changes from topic "OOM-1910"Petr Ospalý9-12/+92
* changes: Clean application role mocked artifacts directories Add custom patch role scenario to 'application' role
2019-06-14Merge changes from topic "OOM-1915"Petr Ospalý9-8/+69
* changes: Update 'busybox' and 'haproxy' docker images path in tests Add role level tests for 'nexus' role Improve 'nexus' role testability
2019-06-14Merge "Fix issue with yaml.load in docker collector"Petr Ospalý1-1/+1
2019-06-14Merge "Add directory remove on failed cloning"Petr Ospalý1-2/+5
2019-06-14Add data list for bin utilsMilan Verespej3-65/+16
Since bin utils can be downloaded as simple http file this script remove previous shell script and changes documentation to add necessary steps. Issue-ID: OOM-1803 Change-Id: I4ced011ce47302349f9e7db74d0ef7f0fe9c4fa0 Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-06-13Fix missing import in helm_deployment_status.pyBartek Grzybowski1-5/+3
After recent changes a regression emerged due to not properly imported 'subprocess' module 'check_output' function. Predefined list of available healthcheck modes is also removed to allow passing any mode that will be supported in future by healthcheck script. Change-Id: I2dc681da079f75449f9f2456249d51b3c859f434 Issue-ID: OOM-1806 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-06-13Update 'busybox' and 'haproxy' docker images path in testsBartek Grzybowski2-6/+6
At some point names of busybox and haproxy images have changed in nexus3.onap.org registry. This patch updates those names in testing framework. Change-Id: Iaad4976118bfcd708f2b8fccb8df61f6059ac1f4 Issue-ID: OOM-1915 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-06-12Add pypi packages downloading python scriptMilan Verespej4-63/+115
Issue-ID: OOM-1803 Change-Id: I5470bad5ad862362976b56350c931929ee4b69d6 Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-06-12Merge "Fixing mso-simulator patching"Michal Ptacek2-12/+21
2019-06-12Add verification tests for 'chrony' roleBartek Grzybowski2-0/+45
Testinfra tests are added for Molecule verifier. Change-Id: Id044cdc5535af97ce3ac48da034a9a6a1ca8cbd3 Issue-ID: OOM-1810 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-06-11Set version for MarkupSafe to 0.23Tomáš Levora1-1/+1
As MarkupSafe>=1.0 is not found in Nexus, fixing version to 0.23 which is the last version possible to use with Jinja 2.10.1 Jinja 2.10.1 is required by flask 1.0.3 installed in mso-simulator container in oof-oof-cmso-service Relates to OOM-1869 Issue-ID: OOM-1920 Change-Id: I02d5fb01db12aa2a3a55df4be65817e22b589c32 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-06-10Setup 'cluster_ip' fact for infra host in 'chrony' role testsBartek Grzybowski1-0/+4
This patch sets up a missing 'cluster_ip' fact for infrastructure host without which 'server' directive was set up improperly in chrony.conf on 'node' host. Change-Id: I3d98788b7eb54bf984d165a50072f51fd85c08fb Issue-ID: OOM-1810 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-06-07Fixing mso-simulator patchingMichal Ptacek2-12/+21
Original patch did not work as /etc/hosts file is administrated by kubernetes. That msosimulator.sh is also sourced into configMap and wrongly transferred back to shell script. This patch is providing smarter way for patching /etc/hosts file which is still needed. Change-Id: I52595f7bd5231893621e08a2fd355bdb57057222 Issue-ID: OOM-1869 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
2019-06-07Merge "Replace 'with_items' loop statements with 'loop' keyword"Samuli Silvius5-11/+14
2019-06-07Merge "Add cleanup stage to 'nginx' role test"Samuli Silvius3-0/+18
2019-06-07Merge "Add role level tests for 'nginx' role"Samuli Silvius5-1/+55
2019-06-07Merge "Use the original playbook in play-resources tests"Samuli Silvius7-20/+27
2019-06-07Add role level tests for 'nexus' roleBartek Grzybowski4-0/+60
Change-Id: If8decc241614e4fe802352cc783b59f8d7ec70b4 Issue-ID: OOM-1915 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-06-06Improve 'nexus' role testabilityBartek Grzybowski3-2/+3
A change needed by related commit to allow building a custom nexus url. Change-Id: Iaa7e1d10d9621871e71863c77722cd635b7e1e4d Issue-ID: OOM-1915 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-06-06Merge "Fix docker search"Tomáš Levora1-0/+1
2019-06-05Fixing dns not working for other containers issueMichal Ptacek1-0/+1
If host networking is not used for dns container, dns wont work for other infra containers. This is unintentionally removed in https://gerrit.onap.org/r/#/c/oom/offline-installer/+/87422/ Change-Id: I07ce6874e7baedadbdbbcf0913f1d683e19f93cd Issue-ID: OOM-1866 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
2019-06-05Merge changes I6421b55d,Icdb55918Samuli Silvius13-619/+159
* changes: Wrapping-up download refactorisation Adding rpm data list
2019-06-05Merge "Add molecule tests for kubectl role"Samuli Silvius5-0/+63
2019-06-05Merge "Add prepare-kubectl role"Samuli Silvius2-0/+21
2019-06-05Merge "Add tests for helm role"Samuli Silvius5-0/+64
2019-06-05Merge "Add prepare-helm role"Samuli Silvius2-0/+21
2019-06-05Merge "Remove the prepare-docker test role"Samuli Silvius6-84/+0
2019-06-05Use the original playbook in play-resources testsMichal Zegan7-20/+27
This commit includes the original resources.yml playbook by using import_playbook. Some modifications were needed mostly because of the way import_playbook works. Also moved the setup role call to prepare. Change-Id: I8745d5e43fd2050d47970c7d19bbbc4db8a5847f Issue-ID: OOM-1912 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-06-05Add directory remove on failed cloningMilan Verespej1-2/+5
While downloading git repositories there was no removing of created destination directory which could led to false detection of downloaded repository. This script adds directory remove in such case plus fixes some minor typos in logging and help strings. Issue-ID: OOM-1803 Change-Id: Iec672bc8248e7b2daee06717985e11f7e05aa5be Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
2019-06-05Add cleanup stage to 'nginx' role testBartek Grzybowski3-0/+18
Change-Id: Idddc421d33698c08b19cc63f4e203d0964341462 Issue-ID: OOM-1913 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-06-05Add role level tests for 'nginx' roleBartek Grzybowski5-1/+55
Introduce full role level test coverage for 'nginx' role. Change-Id: I7c634775433a2336e43cdfc73d4698d5e2933f0e Issue-ID: OOM-1913 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-06-05Wrapping-up download refactorisationMichal Ptacek12-619/+138
This commit is making required adaptations mainly in BuildGuide and removing deprecated old version of download scripts. Change-Id: I6421b55d116831dc3b47c7630e91d361d56414c8 Issue-ID: OOM-1803 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
2019-06-05Fix issue with yaml.load in docker collectorTomáš Levora1-1/+1
docker-images-collector.sh script uses yaml.load python function in deprecated way and it is a potential security risk https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation Issue-ID: OOM-1897 Change-Id: Ie30e60b4ede2c87a02b7bbe76e0695f91dc207c6 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
2019-06-05Add molecule tests for kubectl roleMichal Zegan5-0/+63
This commit adds molecule tests for kubectl role. That includes verification for kubectl to be installed and runnable. Change-Id: I4cb0679ed6826555a6d1f6cff4542ae52869f404 Issue-ID: OOM-1908 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-06-05Add tests for helm roleMichal Zegan5-0/+64
This adds molecule tests for the helm role. Change-Id: I5be27992062ca9039c141318bc54ce85ce35526b Issue-ID: OOM-1909 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-06-05Add prepare-helm roleMichal Zegan2-0/+21
This role downloads helm and places it in resources dir. It is needed for testing helm role. Change-Id: Ic7357f96d654a51592c332e4b61b0fe46a39270a Issue-ID: OOM-1909 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-06-05Merge "Add base download script"Tomáš Levora7-36/+199
2019-06-05Merge "Remove cleanup-rancher test role"Samuli Silvius1-18/+0
2019-06-05Merge "Remove cleanup-containers test role"Samuli Silvius1-6/+0
2019-06-05Merge "Removing rancher simulations from nginx"Michal Ptacek1-2/+0
2019-06-05Merge "Adapting to Dublin realase"Michal Zegan3-2/+4
2019-06-05Clean application role mocked artifacts directoriesBartek Grzybowski4-1/+16
Directories created by Molecule tests were left in files tree and not cleaned up. This patch adds a task to shred them after test invocation. Change-Id: If745cfc45de2f73db5be1696a16a185ff2a625bf Issue-ID: OOM-1910 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-06-05Add custom patch role scenario to 'application' roleBartek Grzybowski6-11/+76
This adds test case for when application_pre_install_role and application_post_install_role are set to custom role; by default they are empty. Code condition coverage is increased. Change-Id: I14e59e15cf3ead0459374b5777f8ee03fe75d7bd Issue-ID: OOM-1910 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-06-04Add prepare-kubectl roleMichal Zegan2-0/+21
This role is used to prepare for kubectl role tests. It may also be used when any other test needs installed kubectl, for example when verifying kubernetes cluster setup. Both cases are a bit different. Change-Id: Ie7a065c571d94f40cfd64c3eba78af3e84b3f08a Issue-ID: OOM-1908 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-06-04Adding rpm data listMichal Ptacek1-0/+21
This list contains full record of all needed rpms. We decided to enlist full list including versions to have full control over what will be installed and what was verified. Goal is to avoid issues about different dependencies coming later. It is expected that major change will cause download to fail which will work as early detection of problems. Change-Id: Icdb55918dc20660c2c835d0e759b3eb5bad1f2fd Issue-ID: OOM-1803 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
2019-06-04Remove the cleanup-directories test roleMichal Zegan1-7/+0
This role is no longer needed after removing it's usage from the nfs role. Issue-ID: OOM-1902 Change-Id: I3f4d27e769c9edc3caef1b0d85a61f071e3a3b2f Signed-off-by: Michal Zegan <m.zegan@samsung.com>