community.general/tests/integration/targets/gitlab_milestone
Felix Fontein eaa5e07b28
Adjust YAML files (#10233)
Adjust YAML files.
2025-06-15 09:13:16 +02:00
..
defaults New module: gitlab_milestone (#7824) 2024-01-26 23:30:35 +01:00
tasks Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
aliases New module: gitlab_milestone (#7824) 2024-01-26 23:30:35 +01:00
README.md Remove and prevent trailing whitespace (#10199) 2025-06-07 17:47:22 +02:00

Gitlab integration tests

  1. to run integration tests locally, I've setup a podman pod with both gitlab-ee image and the testing image
  2. gitlab's related information were taken from here, about the variable it needs (hostname, ports, volumes); volumes were pre-made before launching the image
  3. image that run integration tests is started with podman run --rm -it --pod <pod_name> --name <image_name> --network=host --volume <path_to_git_repo>/ansible_community/community.general:<container_path_to>/workspace/ansible_collections/community/general quay.io/ansible/azure-pipelines-test-container:4.0.1
  4. into the testing image, run
pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
cd <container_path_to>/workspace/ansible_collections/community/general
ansible-test integration gitlab_milestone -vvv

While debugging with q package, open a second terminal and run podman exec -it <image_name> /bin/bash and inside it do tail -f /tmp/q .