Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .github/Dockerfile.c7-network-role

This file was deleted.

13 changes: 0 additions & 13 deletions .github/Dockerfile.c8s-network-role

This file was deleted.

14 changes: 0 additions & 14 deletions .github/Dockerfile.c9s-network-role

This file was deleted.

193 changes: 0 additions & 193 deletions .github/run_test.sh

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/integration.yml

This file was deleted.

48 changes: 0 additions & 48 deletions contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,51 +70,3 @@ ansible-playbook --skip-tags tests::cleanup \

[NM 1.0](https://lazka.github.io/pgi-docs/#NM-1.0), it contains a full
explanation about the NetworkManager API.

### Integration tests with podman

1. Create `~/.ansible/collections/ansible_collections/containers/podman/` if this
directory does not exist and `cd` into this directory.

```bash
mkdir -p ~/.ansible/collections/ansible_collections/containers/podman/
cd ~/.ansible/collections/ansible_collections/containers/podman/
```

2. Clone the collection plugins for Ansible-Podman into the current directory.

```bash
git clone https://github.com/containers/ansible-podman-collections.git .
```

3. Change directory into the `tests` subdirectory.

```bash
cd ~/network/tests
```

4. Use podman with `-d` to run in the background (daemon). Use `c7` because
`centos/systemd` is centos7.

```bash
podman run --name lsr-ci-c7 --rm --privileged \
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \
-d registry.centos.org/centos/systemd
```

5. Use `podman unshare` first to run "podman mount" in root mode, use `-vi` to
run ansible as inventory in verbose mode, use `-c podman` to use the podman
connection plugin. NOTE: Some of the tests do not work with podman - see
`.github/run_test.sh` for the list of tests that do not work.

```bash
podman unshare
ansible-playbook -vi lsr-ci-c7, -c podman tests_provider_nm.yml
```

6. NOTE that this leaves the container running in the background, to kill it:

```bash
podman stop lsr-ci-c7
podman rm lsr-ci-c7
```
Loading