Skip to content

Commit d1083aa

Browse files
committed
ci: get rid of integration tests - broken, unmaintained
The container based integration tests are broken and unmaintained. We don't need them anymore anyway. If you want to run tests in a container, use tox-lsr. https://github.com/linux-system-roles/tox-lsr?tab=readme-ov-file#container-testing Signed-off-by: Rich Megginson <[email protected]>
1 parent c0b8196 commit d1083aa

File tree

6 files changed

+0
-310
lines changed

6 files changed

+0
-310
lines changed

.github/Dockerfile.c7-network-role

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/Dockerfile.c8s-network-role

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/Dockerfile.c9s-network-role

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/run_test.sh

Lines changed: 0 additions & 193 deletions
This file was deleted.

.github/workflows/integration.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

contributing.md

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -70,51 +70,3 @@ ansible-playbook --skip-tags tests::cleanup \
7070

7171
[NM 1.0](https://lazka.github.io/pgi-docs/#NM-1.0), it contains a full
7272
explanation about the NetworkManager API.
73-
74-
### Integration tests with podman
75-
76-
1. Create `~/.ansible/collections/ansible_collections/containers/podman/` if this
77-
directory does not exist and `cd` into this directory.
78-
79-
```bash
80-
mkdir -p ~/.ansible/collections/ansible_collections/containers/podman/
81-
cd ~/.ansible/collections/ansible_collections/containers/podman/
82-
```
83-
84-
2. Clone the collection plugins for Ansible-Podman into the current directory.
85-
86-
```bash
87-
git clone https://github.com/containers/ansible-podman-collections.git .
88-
```
89-
90-
3. Change directory into the `tests` subdirectory.
91-
92-
```bash
93-
cd ~/network/tests
94-
```
95-
96-
4. Use podman with `-d` to run in the background (daemon). Use `c7` because
97-
`centos/systemd` is centos7.
98-
99-
```bash
100-
podman run --name lsr-ci-c7 --rm --privileged \
101-
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \
102-
-d registry.centos.org/centos/systemd
103-
```
104-
105-
5. Use `podman unshare` first to run "podman mount" in root mode, use `-vi` to
106-
run ansible as inventory in verbose mode, use `-c podman` to use the podman
107-
connection plugin. NOTE: Some of the tests do not work with podman - see
108-
`.github/run_test.sh` for the list of tests that do not work.
109-
110-
```bash
111-
podman unshare
112-
ansible-playbook -vi lsr-ci-c7, -c podman tests_provider_nm.yml
113-
```
114-
115-
6. NOTE that this leaves the container running in the background, to kill it:
116-
117-
```bash
118-
podman stop lsr-ci-c7
119-
podman rm lsr-ci-c7
120-
```

0 commit comments

Comments
 (0)