summaryrefslogtreecommitdiffstats
path: root/ansible/test
AgeCommit message (Collapse)AuthorFilesLines
2019-06-25Remove artifacts left by 'dns' role testsBartek Grzybowski2-0/+7
'dnsmasq.tar' docker image file will be removed after test invocation. Change-Id: I29668ece8c745794ad9462e527ca144bea6f4fc2 Issue-ID: OOM-1943 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-06-24Add cleanup stage to 'nexus' role testBartek Grzybowski5-47/+34
List of docker images to download/cleanup by the prepare and cleanup stages is now defined in one place (prepare-nexus role defaults) for clarity and ease of management. Change-Id: I4c18912fd8c5eadc4d68e1bc10f5c2251d58634e Issue-ID: OOM-1915 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-06-24Merge "Add role level tests for 'vncserver' role"Samuli Silvius2-0/+7
2019-06-14Merge changes from topic "OOM-1910"Petr Ospalý3-9/+29
* 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ý2-6/+6
* changes: Update 'busybox' and 'haproxy' docker images path in tests Add role level tests for 'nexus' role Improve 'nexus' role testability
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-13Add role level tests for 'vncserver' roleBartek Grzybowski2-0/+7
A cleanup stage is also added to clean testing artifacts. Change-Id: I2255a0e90a0f609bd927d3d44dd05b5847fbdfb0 Issue-ID: OOM-1926 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-06-07Merge "Add cleanup stage to 'nginx' role test"Samuli Silvius2-0/+12
2019-06-07Merge "Use the original playbook in play-resources tests"Samuli Silvius7-20/+27
2019-06-05Merge "Add prepare-kubectl role"Samuli Silvius2-0/+21
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 cleanup stage to 'nginx' role testBartek Grzybowski2-0/+12
Change-Id: Idddc421d33698c08b19cc63f4e203d0964341462 Issue-ID: OOM-1913 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.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 "Remove cleanup-rancher test role"Samuli Silvius1-18/+0
2019-06-05Merge "Remove cleanup-containers test role"Samuli Silvius1-6/+0
2019-06-05Clean application role mocked artifacts directoriesBartek Grzybowski1-0/+9
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 Grzybowski2-9/+20
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-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>
2019-06-04Remove cleanup from play-resourcesMichal Zegan1-23/+0
When play-resources does not use bindmounting, there is no need to manually clean up resource files. That makes it possible to remove cleanup.yml all together. This is in preparation to remove the othervise unneeded cleanup-directories role. Change-Id: Id6c05700e8cd2e9c8f91a3cfdf46022b170e1e1e Issue-ID: OOM-1902 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-06-04Do not use bindmounts for nfs testsMichal Zegan1-1/+1
This commit removes bindmounting of host directories to containers in play-resources tests. It seems that it is unneeded, and it is enough to just create anonymous volumes instead of cluttering host filesystem. This is one part of a preparation for removing the cleanup-directories role that won't be needed anymore. Note: similar changes were made to the nfs role tests, for the same reasons, but cleanup-directories is not used there Change-Id: Ib33543427d72b4bc7ede532e5eb9a5023931f1fe Issue-ID: OOM-1902 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-06-04Remove cleanup-rancher test roleMichal Zegan1-18/+0
This role is not used by rancher tests anymore. Issue-ID: OOM-1902 Change-Id: I989c41dfbf6dec8054befad87ac367bbf1afbc02 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-06-04Remove the prepare-docker test roleMichal Zegan6-84/+0
This removed the unused prepare-docker role. The dind version is now the only one used. Change-Id: Ic7c1c46ae06d931de7abac1f225675c8d6bf7dbd Issue-ID: OOM-1902 Issue-ID: OOM-1862 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-06-04Remove cleanup-containers test roleMichal Zegan1-6/+0
This removes cleanup-containers test role, that is not used by any tests after dind changes. Change-Id: I2244257de1faa2b268e9d2f74d286c19de99fab0 Issue-ID: OOM-1902 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-06-03Add molecule tests for rke roleMichal Zegan4-0/+29
This change adds molecule tests for the rke role, and modifies the rke role itself to be more idempotent/to pass linter. Note that this molecule test case uses a separate role to install docker in containers, that runs docker daemon inside of them instead of using host docker. Issue-ID: OOM-1778 Change-Id: I875f3ff2ab961e5428acee5a02287a8d2d6e9969 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-05-30Merge "Add Molecule tests for 'dns' role"Samuli Silvius2-2/+1
2019-05-30Merge "prepare-docker-dind: make docker start optional"Samuli Silvius2-0/+4
2019-05-30Add Molecule tests for 'dns' roleBartek Grzybowski2-2/+1
This commit supplements 'Molecule test for infrastructure playbook' with role level tests. Change-Id: I14cdeedf1c80c0ee06bacf0a391ee1d7ccd6df55 Issue-ID: OOM-1841 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-05-30Modify rancher molecule tests to use dindMichal Zegan1-30/+3
This change modifies molecule tests of rancher role to use prepare-docker-dind. Also: - it modifies prepare-common role to retrieve cluster_ip of the actual node in question, - it fixes the rancher role itself to work at all by removing auto_remove. It has been tested by running molecule converge. Change-Id: I7af4e9998feedd5f8fc3df8215e03c1b0485529c Issue-ID: OOM-1864 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-05-30Merge "Add prepare-docker-dind role"Samuli Silvius3-0/+31
2019-05-29Molecule test for infrastructure playbook.Samuli Silvius6-0/+155
These tests execute the whole infrastructure playbook. Issue-ID: OOM-1816 Change-Id: I793191e05cb0b527c3da6d820c1916231e69d865 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com> Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-05-29Add the prepare-package-repository roleMichal Zegan2-0/+38
This role may be used by infra playbook tests. It downloads docker rpm packages and their dependencies to disk and creates a simulated offline rpm repository that can then be used to test installation of packages. Change-Id: Ia1a1bed1b124e036219ccc12c4650ce446955f01 Issue-ID: OOM-1816 Signed-off-by: Michal Zegan <m.zegan@samsung.com> Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2019-05-29Add prepare-nexus roleMichal Zegan2-0/+75
This role can be used by nexus role/infra playbook tests. It downloads and archives the nexus image used by these tests. It also archives some example docker images that can be used to test runtime image pushing. Change-Id: I027dd5dda60ab0abba7701cb038f6552a72e3599 Issue-ID: OOM-1816 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com> Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-05-29Add prepare-nginx roleMichal Zegan1-0/+28
This role can be used by nginx role/infra playbook tests. It builds and archives the nginx docker image used by these tests. Change-Id: I51052f4d587926be0331203fffd0bbd69a7dc58d Issue-ID: OOM-1816 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com> Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-05-29Add the prepare-dns roleMichal Zegan1-0/+22
This role can be used by infra playbook or dns role tests to download the dnsmasq docker images used during test. Change-Id: I05d9ccd1f2ac3d635c032b43078ca9a2179cb547 Issue-ID: OOM-1818 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com> Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-05-29Add prepare-vncserver roleMichal Zegan1-0/+21
This role is used by infra playbook tests introduced in a follow up commit and it downloads the docker vncserver image used during testing. This role may also be useful for vncserver role tests. Change-Id: Ib9fc8041519d716207f2c1887f68fb29faab911f Issue-ID: OOM-1816 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com> Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-05-24prepare-docker-dind: make docker start optionalMichal Zegan2-0/+4
This change makes it possible to disable docker start after prepare-docker-dind role executes. Needed for docker role that wants to start docker by itself. Note that the docker role also tries to install docker by itself, and prepare-docker-dind does the same. The reason is that it makes it possible to fix the version of installed docker. Change-Id: I7487bc46b316c0e6c782b22d8e24afea35c3c2d5 Issue-ID: OOM-1863 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-05-21Add prepare-docker-dind roleMichal Zegan3-0/+31
This change adds the prepare-docker-dind role intended to be used in tests to install docker on test containers. Contrary to the prepare-docker role it arranges for docker daemon to be launched inside of the test containers instead of using/polluting a test host. It is a prerequisite to the rke role molecule tests. Change-Id: I6be270758b01f7e9c4fa09aebcc32930c0977ea3 Issue-ID: OOM-1778 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-05-17Upgrade docker version to 18.09.5Bartek Grzybowski4-26/+4
This patch upgrades docker version for Molecule tests to 18.09.5; it also sanitizes tasks in 'docker' role to supplement this change: https://gerrit.onap.org/r/c/87761/ Change-Id: I14beffafb129b24e7c15f8da45f1a25e27ccae9c Issue-ID: OOM-1852 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-05-16Molecule tests for application role.Samuli Silvius2-0/+51
Issue-ID: OOM-1812 Change-Id: Ifb6f5a10afb4014b20be77a4141371e561d346ce Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2019-05-14Fix idempotency issue in 'prepare-docker' roleBartek Grzybowski1-0/+2
This adds 'creates' arg to 'command' module used in the role scope. Change-Id: Ib500680114fb267cc08ab52f09fa691738ea4a1a Issue-ID: OOM-1850 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-05-10Molecule test for resources playbook.Samuli Silvius10-0/+162
Issue-ID: OOM-1813 Change-Id: I5c070f1ed20bf29b432c91e9de5d861267802b6d Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2019-05-09Extending molecule test to playbooksMateusz Pilat3-3/+3
Review should also execute molecule tests for ansible/test/play-xxx when anything in /ansible/test has been changed Change-Id: I9a106a1c141b1053db6ac892e2dcecd4e646fd5b Issue-ID: OOM-1801 Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
2019-05-06Add script to start review for offline installer in community JenkinsMateusz Pilat1-2/+4
script to detect what tests are supposed to be executed for a given change Change-Id: I8e392e5d67bb56ab7653d4a5176a3b8df1dc72c9 Issue-ID: OOM-1801 Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
2019-05-06Merge "Fix for Molecule images build-all.sh"Michal Ptacek1-2/+2
2019-05-02Merge "Make 'prepare-docker' install proper docker-ce version"Michal Ptacek5-33/+27
2019-04-30Fix docker run in ansible/test/bin/molecule.sh.Mateusz Pilat1-1/+1
-it in docker run does not work well with jenkins Change-Id: Ic1bfedfb64e0a862aa9d49b5615048b9eccf9670 Issue-ID: OOM-1833 Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
2019-04-30Make 'prepare-docker' install proper docker-ce versionBartek Grzybowski5-33/+27
Docker-ce version should be aligned with Docker release installed on target platform (see build/creating_data/create-rhel-repo.sh) This patch also optimizes package installation process in Molecule tests. Change-Id: I3f0cb7cd36a3f91027b2be43a925e54167d9c6d0 Issue-ID: OOM-1815 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>