9 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov
0e8acf144b Use OSA_TEST_REQUIREMENTS_FILE for molecule job
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/939290
Change-Id: Ib7c864a29c68ceacd9722007e324b132b4156f52
2025-04-02 10:35:38 +00:00
Dmitriy Rabotyagov
7583efdafa Use centralized requirements for molecule testing
In order to make molecule tests more widespread across roles to cover
variety of usecases, a centralized approach on managing molecule
requirements is applied.

It ensures that there's no need to separately maintain requirements
for molecule and they can be aligned from integrated repo.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/938571
Change-Id: I4f0b6705f5bdd0ba14225775108732db32600cb3
2025-01-07 17:39:42 +01:00
Dmitriy Rabotyagov
552c4d2aaf Remove Buster testing
Debian buster is not supported for a while now in OSA, so we should
remove it from testing platfrom.

Change-Id: I717a1e3593c161f179dc8fb63d5b85677f606956
2024-11-27 16:33:30 +00:00
Dmitriy Rabotyagov
41f2fc7432 Add EL repos to supported by the role
This patch add support and molecule testing for CentOS 9 Stream in addition
to already supported Debian/Ubuntu versions.

Change-Id: Ice095d479bcd8cd9592609329514efe565db6353
2024-04-23 08:25:21 +00:00
Dmitriy Rabotyagov
2a375f9f81 Add tests of more modern distros
Buster goes EOL in June 2024, so it's good time to add testing of more
distros, including latest Debian 12 and Ubuntu 22.04 as latest LTS at
the moment.

Change-Id: I62dafeef2e2483631cabb10e8f2c289dfb726bea
2024-04-23 10:09:24 +02:00
Dmitriy Rabotyagov
d4b8abae78 Add molecule job
While having a native Zuul job for testing is really nice, but it puts some
imitations, like being unable to use external collections which a role
might depend on.

In order to overcome these limitations, molecule test job was added,
which does exactly same set of actions, except vlan configuration.

We also switch ansible-lint job to track molecule playbook.

Change-Id: I219cc1c06c49a6710edfd6104580cdc01b768ab0
2024-02-23 17:07:40 +01:00
Dmitriy Rabotyagov
81ce068db6 Add yamllint to linters check
Change-Id: Iab88f866bc5253df09ea574576256e7fb0c11414
2024-02-23 16:06:35 +00:00
Dmitriy Rabotyagov
b04bf138e4 Add ebgp policy definition for tests
According to RFC-8212 policies must be described in order to allow
announce/accept routes. Without policies being described, no routes
will be announced/recieved by default.

This patch fixes current CI failures.

Change-Id: Ia033cc7c3ed3146860ab96452bec988f3c3069bf
2024-02-23 16:05:20 +00:00
Dmitriy Rabotyagov
c706aedb95 Add linters check
This patch adds linters check with help of ansible-lint tool

Change-Id: Id7d11416ac7cf375211f9b9fb9c5bf2028cba496
2020-06-26 16:01:12 +00:00