https://github.com/testertech/sync-kiwi-gitlab-issues
Code for the YouTube video https://youtu.be/DjnyrirGTng
https://github.com/testertech/sync-kiwi-gitlab-issues
Last synced: about 1 month ago
JSON representation
Code for the YouTube video https://youtu.be/DjnyrirGTng
- Host: GitHub
- URL: https://github.com/testertech/sync-kiwi-gitlab-issues
- Owner: TesterTech
- Created: 2021-10-22T20:33:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-22T21:19:56.000Z (over 4 years ago)
- Last Synced: 2025-02-01T10:11:19.264Z (about 1 year ago)
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sync-Kiwi-Gitlab-issues
Code for the YouTube video https://youtu.be/DjnyrirGTng
## Prerequisites
- Make sure you have Docker installed
I'm using actual Docker-ce for this video, not Podman see this guide for RHEL https://docs.docker.com/engine/install/rhel/
Reason I'm also using RHEL and Docker is for compatibility reasons, when creating a video for demo want to have not too much issues for the installation so I can really focus on the subject matter.
## KIWI TCMS
- Install Kiwi through script kiwi.sh ```sudo ./kiwi.sh```
- After it has completed add your required config (Test Plan, Product, version etc and Test Case) in there.
- Note: I do change the ports of Kiwi because of the port conflicts (80/443 is also being used by Gitlab).
- After Kiwi has been installed and is running, stop the Containers using ```/usr/local/bin/docker-compose down```
- Change the ports in de ```docker-compose.yml``` file and up the containers again ```/usr/local/bin/docker-compose up -d```
## Gitlab EE
```
sudo dnf install -y curl policycoreutils openssh-server perl
sudo systemctl start sshd --now
```
- Note: only needed if you want to use firewall, generally a GOOD practice but for this throw away demo environment, didn't even bother. Check if opening the firewall is needed with:
```sudo systemctl status firewalld```
```
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo systemctl reload firewalld
```
```curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash```
- Note: you need to adjust host or ip below to match your own value.
``sudo EXTERNAL_URL="http://" dnf install -y gitlab-ee```
- Beware that it could take some time for this to complete...
- To get the initial root password ```cat /etc/gitlab/initial_root_password```
- Open browser (in my case it was http... but could be different for you if you use https) to the IP of the machine and login with root and password
- Create project and setup API Token for that project
## Configuration of Kiwi
- Like described in the video, use the following parameters when filling the form:
- base_url: URL to a GitLab repository for which we're going to report issues. For example http://192.168.1.10/root/my-awesome-project
- api_url: URL to a GitLab instance. For example http://192.168.1.10
- api_password: GitLab API token with the ``api`` scope. See https://gitlab.com/-/profile/personal_access_tokens
# Now create new testrun and sync some issues!
# References
https://github.com/kiwitcms/Kiwi/pull/2565/commits/ae557ac2a774f54fe553a45ce09feab61d8c4e10
https://docs.docker.com/engine/install/rhel/