Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/gitlab_milestone/README.md

raw
1 <!--
2 Copyright (c) Ansible Project
3 GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 SPDX-License-Identifier: GPL-3.0-or-later
5 -->
6
7 # Gitlab integration tests
8
9 1. to run integration tests locally, I've setup a podman pod with both gitlab-ee image and the testing image
10 2. gitlab's related information were taken from [here](https://docs.gitlab.com/ee/install/docker.html), about the variable it needs (hostname, ports, volumes); volumes were pre-made before launching the image
11 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`
12 4. into the testing image, run
13 ```sh
14 pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
15 cd <container_path_to>/workspace/ansible_collections/community/general
16 ansible-test integration gitlab_milestone -vvv
17 ```
18
19 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` .