summaryrefslogtreecommitdiffstats
path: root/distro/tests
diff options
context:
space:
mode:
authorJakub Ružička <jakub.ruzicka@nic.cz>2022-08-23 12:55:49 +0200
committerJakub Ružička <jakub.ruzicka@nic.cz>2022-08-23 13:11:48 +0200
commit078c42c82e7a26f201cd5b8c88c3a352f3451dd2 (patch)
tree02e4866d6c7df55a3765d8c24fd749475ef27c82 /distro/tests
parentDockerfile: switch to liburcu 8 (diff)
downloadknot-078c42c82e7a26f201cd5b8c88c3a352f3451dd2.tar.xz
knot-078c42c82e7a26f201cd5b8c88c3a352f3451dd2.zip
distro/tests: remove ansible/vagrant tests
in favor of shared autopkgtests using `apkg test`.
Diffstat (limited to 'distro/tests')
-rw-r--r--distro/tests/.ansible.cfg6
-rw-r--r--distro/tests/README.md41
-rw-r--r--distro/tests/ansible-roles/knot_dns/defaults/main.yaml5
-rw-r--r--distro/tests/ansible-roles/knot_dns/tasks/configure_dnstap.yaml7
-rw-r--r--distro/tests/ansible-roles/knot_dns/tasks/configure_geoip.yaml7
-rw-r--r--distro/tests/ansible-roles/knot_dns/tasks/configure_listen.yaml6
-rw-r--r--distro/tests/ansible-roles/knot_dns/tasks/configure_zone.yaml24
-rw-r--r--distro/tests/ansible-roles/knot_dns/tasks/main.yaml59
-rw-r--r--distro/tests/ansible-roles/knot_dns/tasks/reload_knot.yaml15
-rw-r--r--distro/tests/ansible-roles/knot_dns/tasks/restart_knot.yaml15
-rw-r--r--distro/tests/ansible-roles/knot_dns/tasks/test_tcp.yaml5
-rw-r--r--distro/tests/ansible-roles/knot_dns/tasks/test_udp.yaml5
-rw-r--r--distro/tests/ansible-roles/knot_dns/vars/CentOS.yaml5
-rw-r--r--distro/tests/ansible-roles/knot_dns/vars/Debian.yaml5
-rw-r--r--distro/tests/ansible-roles/knot_dns/vars/Fedora.yaml5
-rw-r--r--distro/tests/ansible-roles/knot_dns/vars/Rocky.yaml5
-rw-r--r--distro/tests/ansible-roles/knot_dns/vars/Ubuntu.yaml5
-rw-r--r--distro/tests/ansible-roles/knot_dns/vars/openSUSE_Leap.yaml5
-rw-r--r--distro/tests/ansible-roles/obs_repos/defaults/main.yaml3
-rw-r--r--distro/tests/ansible-roles/obs_repos/tasks/CentOS.yaml17
-rw-r--r--distro/tests/ansible-roles/obs_repos/tasks/Debian.yaml14
-rw-r--r--distro/tests/ansible-roles/obs_repos/tasks/Fedora.yaml7
-rw-r--r--distro/tests/ansible-roles/obs_repos/tasks/Rocky.yaml12
-rw-r--r--distro/tests/ansible-roles/obs_repos/tasks/Ubuntu.yaml13
-rw-r--r--distro/tests/ansible-roles/obs_repos/tasks/main.yaml11
-rw-r--r--distro/tests/ansible-roles/obs_repos/tasks/openSUSE_Leap.yaml17
-rw-r--r--distro/tests/ansible-roles/obs_repos/vars/CentOS.yaml2
-rw-r--r--distro/tests/ansible-roles/obs_repos/vars/Debian_10.yaml2
l---------distro/tests/ansible-roles/obs_repos/vars/Debian_11.yaml1
-rw-r--r--distro/tests/ansible-roles/obs_repos/vars/Fedora.yaml2
-rw-r--r--distro/tests/ansible-roles/obs_repos/vars/Rocky.yaml2
-rw-r--r--distro/tests/ansible-roles/obs_repos/vars/Ubuntu.yaml2
-rw-r--r--distro/tests/ansible-roles/obs_repos/vars/openSUSE_Leap.yaml2
-rw-r--r--distro/tests/centos7/Vagrantfile29
l---------distro/tests/centos7/ansible.cfg1
-rw-r--r--distro/tests/debian10/Vagrantfile27
l---------distro/tests/debian10/ansible.cfg1
-rw-r--r--distro/tests/debian11/Vagrantfile26
l---------distro/tests/debian11/ansible.cfg1
-rw-r--r--distro/tests/fedora34/Vagrantfile30
l---------distro/tests/fedora34/ansible.cfg1
-rw-r--r--distro/tests/fedora35/Vagrantfile29
l---------distro/tests/fedora35/ansible.cfg1
-rw-r--r--distro/tests/knot-dns-pkgtest.yaml12
-rw-r--r--distro/tests/leap15/Vagrantfile28
l---------distro/tests/leap15/ansible.cfg1
-rw-r--r--distro/tests/repos.yaml2
-rw-r--r--distro/tests/rocky8/Vagrantfile30
l---------distro/tests/rocky8/ansible.cfg1
-rwxr-xr-xdistro/tests/test-distro.sh21
-rw-r--r--distro/tests/ubuntu1804/Vagrantfile29
l---------distro/tests/ubuntu1804/ansible.cfg1
-rw-r--r--distro/tests/ubuntu2004/Vagrantfile30
l---------distro/tests/ubuntu2004/ansible.cfg1
-rw-r--r--distro/tests/ubuntu2110/Vagrantfile30
l---------distro/tests/ubuntu2110/ansible.cfg1
56 files changed, 0 insertions, 665 deletions
diff --git a/distro/tests/.ansible.cfg b/distro/tests/.ansible.cfg
deleted file mode 100644
index b3b37ea1f..000000000
--- a/distro/tests/.ansible.cfg
+++ /dev/null
@@ -1,6 +0,0 @@
-[defaults]
-
-# additional paths to search for roles in, colon separated
-roles_path = ../ansible-roles
-interpreter_python = auto
-stdout_callback=debug
diff --git a/distro/tests/README.md b/distro/tests/README.md
deleted file mode 100644
index 0012dfc80..000000000
--- a/distro/tests/README.md
+++ /dev/null
@@ -1,41 +0,0 @@
-Requirements
-------------
-
-- ansible
-- vagrant
-- libvirt (+vagrant-libvirt) / virtualbox
-
-Usage
------
-
-`vagrant up` command is configured to trigger ansible provisioning
-which configures OBS repository, installs the knot package, creates
-a zone and config file, starts the knot.service and attempts to
-resolve the entry from created zone file.
-
-By default, the *knot-dns-devel* repo is used. To test the
-*knot-dns-latest* or *knot-dns-testing* repo, set it in `repos.yaml`
-(or use the test-distro.sh script which overwrites this file). If
-you're running tests in parallel, they all HAVE TO use the same repo.
-
-Run the following command for every distro (aka directory with
-Vagrantfile):
-
-```
-./test-distro.sh knot-dns-devel debian9
-```
-
-or
-
-```
-./test-distro.sh knot-dns-testing debian9
-```
-
-or
-
-```
-./test-distro.sh knot-dns-latest debian9
-```
-
-At the end of the test, the package version that was tested is
-printed out. Make sure you're testing what you intended to.
diff --git a/distro/tests/ansible-roles/knot_dns/defaults/main.yaml b/distro/tests/ansible-roles/knot_dns/defaults/main.yaml
deleted file mode 100644
index 0beb2edd5..000000000
--- a/distro/tests/ansible-roles/knot_dns/defaults/main.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-repos:
- - knot-dns-latest
-update_packages: false
-distro: "{{ ansible_distribution | replace(' ', '_') }}"
diff --git a/distro/tests/ansible-roles/knot_dns/tasks/configure_dnstap.yaml b/distro/tests/ansible-roles/knot_dns/tasks/configure_dnstap.yaml
deleted file mode 100644
index 4af03e015..000000000
--- a/distro/tests/ansible-roles/knot_dns/tasks/configure_dnstap.yaml
+++ /dev/null
@@ -1,7 +0,0 @@
----
-- name: dnstap_config set up knot.conf
- copy:
- dest: /etc/knot/knot.conf
- mode: 0640
- content: |
- mod-dnstap:
diff --git a/distro/tests/ansible-roles/knot_dns/tasks/configure_geoip.yaml b/distro/tests/ansible-roles/knot_dns/tasks/configure_geoip.yaml
deleted file mode 100644
index 51842a943..000000000
--- a/distro/tests/ansible-roles/knot_dns/tasks/configure_geoip.yaml
+++ /dev/null
@@ -1,7 +0,0 @@
----
-- name: geoip_config set up knot.conf
- copy:
- dest: /etc/knot/knot.conf
- mode: 0640
- content: |
- mod-geoip:
diff --git a/distro/tests/ansible-roles/knot_dns/tasks/configure_listen.yaml b/distro/tests/ansible-roles/knot_dns/tasks/configure_listen.yaml
deleted file mode 100644
index c5c2157d1..000000000
--- a/distro/tests/ansible-roles/knot_dns/tasks/configure_listen.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
----
-- name: Uncomment listen configuration
- replace:
- path: /etc/knot/knot.conf
- regexp: '(\s*)#(\s*listen:.*)'
- replace: '\1\2'
diff --git a/distro/tests/ansible-roles/knot_dns/tasks/configure_zone.yaml b/distro/tests/ansible-roles/knot_dns/tasks/configure_zone.yaml
deleted file mode 100644
index c6cce014b..000000000
--- a/distro/tests/ansible-roles/knot_dns/tasks/configure_zone.yaml
+++ /dev/null
@@ -1,24 +0,0 @@
----
-- name: create example.com zone
- copy:
- dest: /etc/knot/example.com.zone
- mode: 0644
- content: |
- $ORIGIN example.com.
- $TTL 3600
- @ SOA dns1.example.com. hostmaster.example.com. (
- 2010111213 ; serial
- 6h ; refresh
- 1h ; retry
- 1w ; expire
- 1d ) ; minimum
- NS dns1
- dns1 A 192.0.2.1
-
-- name: create config
- blockinfile:
- dest: /etc/knot/knot.conf
- block: |
- zone:
- - domain: example.com
- file: "/etc/knot/example.com.zone"
diff --git a/distro/tests/ansible-roles/knot_dns/tasks/main.yaml b/distro/tests/ansible-roles/knot_dns/tasks/main.yaml
deleted file mode 100644
index a2470186b..000000000
--- a/distro/tests/ansible-roles/knot_dns/tasks/main.yaml
+++ /dev/null
@@ -1,59 +0,0 @@
----
-- name: Include distribution specific vars
- include_vars: "{{ distro }}.yaml"
-
-- name: Update all packages
- package:
- name: '*'
- state: latest
- when: update_packages|bool
-
-- name: Install packages
- package:
- name: "{{ packages }}"
- state: latest
-
-- name: Always print package version at the end
- block:
-
- - include: configure_listen.yaml
- - include: configure_zone.yaml
- - include: restart_knot.yaml
-
- - include: test_udp.yaml
- - include: test_tcp.yaml
-
- - include: reload_knot.yaml
-
- - include: test_udp.yaml
- - include: test_tcp.yaml
-
- - name: Test dnstap module
- block:
- - name: Install knot-module-dnstap
- package:
- name: knot-module-dnstap
- state: latest
- - include: configure_dnstap.yaml
- - include: restart_knot.yaml
-
- - name: Test geoip module
- block:
- - name: Install knot-module-geoip
- package:
- name: knot-module-geoip
- state: latest
- - include: configure_geoip.yaml
- - include: restart_knot.yaml
-
- always:
-
- - name: Get installed package version
- shell: "{{ show_package_version }}"
- args:
- warn: false
- register: package_version
-
- - name: Show installed version
- debug:
- var: package_version.stdout
diff --git a/distro/tests/ansible-roles/knot_dns/tasks/reload_knot.yaml b/distro/tests/ansible-roles/knot_dns/tasks/reload_knot.yaml
deleted file mode 100644
index b7e681c64..000000000
--- a/distro/tests/ansible-roles/knot_dns/tasks/reload_knot.yaml
+++ /dev/null
@@ -1,15 +0,0 @@
----
-- block:
- - name: Reload knot.service
- service:
- name: knot.service
- state: reloaded
- rescue:
- - name: Get knot.service journal
- shell: journalctl -u knot --since -20s
- register: journal
- - name: Print journal
- debug:
- var: journal
- - name: Reload knot.service failed, see log above
- shell: /bin/false
diff --git a/distro/tests/ansible-roles/knot_dns/tasks/restart_knot.yaml b/distro/tests/ansible-roles/knot_dns/tasks/restart_knot.yaml
deleted file mode 100644
index 08a37529d..000000000
--- a/distro/tests/ansible-roles/knot_dns/tasks/restart_knot.yaml
+++ /dev/null
@@ -1,15 +0,0 @@
----
-- block:
- - name: Restart knot.service
- service:
- name: knot.service
- state: restarted
- rescue:
- - name: Get knot.service journal
- shell: journalctl -u knot --since -20s
- register: journal
- - name: Print journal
- debug:
- var: journal
- - name: Restart knot.service failed, see log above
- shell: /bin/false
diff --git a/distro/tests/ansible-roles/knot_dns/tasks/test_tcp.yaml b/distro/tests/ansible-roles/knot_dns/tasks/test_tcp.yaml
deleted file mode 100644
index 68dd8e9c6..000000000
--- a/distro/tests/ansible-roles/knot_dns/tasks/test_tcp.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-- name: tcp_test resolve dns1.example.com
- shell: kdig +tcp @127.0.0.1 dns1.example.com A
- register: res
- failed_when: '"192.0.2.1" not in res.stdout'
diff --git a/distro/tests/ansible-roles/knot_dns/tasks/test_udp.yaml b/distro/tests/ansible-roles/knot_dns/tasks/test_udp.yaml
deleted file mode 100644
index 6ab324550..000000000
--- a/distro/tests/ansible-roles/knot_dns/tasks/test_udp.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-- name: udp_test resolve dns1.example.com
- shell: kdig @127.0.0.1 dns1.example.com A
- register: res
- failed_when: '"192.0.2.1" not in res.stdout'
diff --git a/distro/tests/ansible-roles/knot_dns/vars/CentOS.yaml b/distro/tests/ansible-roles/knot_dns/vars/CentOS.yaml
deleted file mode 100644
index 90f7c9ede..000000000
--- a/distro/tests/ansible-roles/knot_dns/vars/CentOS.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-show_package_version: rpm -qi knot | grep '^Version'
-packages:
- - knot
- - knot-utils
diff --git a/distro/tests/ansible-roles/knot_dns/vars/Debian.yaml b/distro/tests/ansible-roles/knot_dns/vars/Debian.yaml
deleted file mode 100644
index 1b744d6e6..000000000
--- a/distro/tests/ansible-roles/knot_dns/vars/Debian.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-show_package_version: dpkg -s knot | grep '^Version'
-packages:
- - knot
- - knot-dnsutils
diff --git a/distro/tests/ansible-roles/knot_dns/vars/Fedora.yaml b/distro/tests/ansible-roles/knot_dns/vars/Fedora.yaml
deleted file mode 100644
index 90f7c9ede..000000000
--- a/distro/tests/ansible-roles/knot_dns/vars/Fedora.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-show_package_version: rpm -qi knot | grep '^Version'
-packages:
- - knot
- - knot-utils
diff --git a/distro/tests/ansible-roles/knot_dns/vars/Rocky.yaml b/distro/tests/ansible-roles/knot_dns/vars/Rocky.yaml
deleted file mode 100644
index 90f7c9ede..000000000
--- a/distro/tests/ansible-roles/knot_dns/vars/Rocky.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-show_package_version: rpm -qi knot | grep '^Version'
-packages:
- - knot
- - knot-utils
diff --git a/distro/tests/ansible-roles/knot_dns/vars/Ubuntu.yaml b/distro/tests/ansible-roles/knot_dns/vars/Ubuntu.yaml
deleted file mode 100644
index 1b744d6e6..000000000
--- a/distro/tests/ansible-roles/knot_dns/vars/Ubuntu.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-show_package_version: dpkg -s knot | grep '^Version'
-packages:
- - knot
- - knot-dnsutils
diff --git a/distro/tests/ansible-roles/knot_dns/vars/openSUSE_Leap.yaml b/distro/tests/ansible-roles/knot_dns/vars/openSUSE_Leap.yaml
deleted file mode 100644
index 90f7c9ede..000000000
--- a/distro/tests/ansible-roles/knot_dns/vars/openSUSE_Leap.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-show_package_version: rpm -qi knot | grep '^Version'
-packages:
- - knot
- - knot-utils
diff --git a/distro/tests/ansible-roles/obs_repos/defaults/main.yaml b/distro/tests/ansible-roles/obs_repos/defaults/main.yaml
deleted file mode 100644
index 96c6b178a..000000000
--- a/distro/tests/ansible-roles/obs_repos/defaults/main.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-obs_distro: "{{ ansible_distribution | replace(' ', '_') }}"
-obs_repofile_url: "https://download.opensuse.org/repositories/home:CZ-NIC:{{ item }}/{{ obs_repo_version }}/home:CZ-NIC:{{ item }}.repo"
diff --git a/distro/tests/ansible-roles/obs_repos/tasks/CentOS.yaml b/distro/tests/ansible-roles/obs_repos/tasks/CentOS.yaml
deleted file mode 100644
index 56be3bff4..000000000
--- a/distro/tests/ansible-roles/obs_repos/tasks/CentOS.yaml
+++ /dev/null
@@ -1,17 +0,0 @@
----
-- name: update CA certificates
- yum:
- name: ca-certificates
- state: latest
-
-- name: Install EPEL
- yum:
- name: epel-release
- state: present
-
-- name: Download repo file(s)
- get_url:
- url: "{{ obs_repofile_url }}"
- dest: /etc/yum.repos.d/home:CZ-NIC:{{ item }}.repo
- mode: 0644
- with_items: "{{ repos }}"
diff --git a/distro/tests/ansible-roles/obs_repos/tasks/Debian.yaml b/distro/tests/ansible-roles/obs_repos/tasks/Debian.yaml
deleted file mode 100644
index 9d70fd7df..000000000
--- a/distro/tests/ansible-roles/obs_repos/tasks/Debian.yaml
+++ /dev/null
@@ -1,14 +0,0 @@
----
-- name: Add upstream package signing key
- get_url:
- url: https://gitlab.nic.cz/knot/knot-resolver-release/raw/master/cznic-obs.gpg.asc
- dest: /etc/apt/trusted.gpg.d/cznic-obs.gpg.asc
- mode: 0644
-
-- name: Add OBS repo(s)
- apt_repository:
- repo: >
- deb http://download.opensuse.org/repositories/home:/CZ-NIC:/{{ item }}/{{ obs_repo_version }}/ /
- state: present
- update_cache: true
- with_items: "{{ repos }}"
diff --git a/distro/tests/ansible-roles/obs_repos/tasks/Fedora.yaml b/distro/tests/ansible-roles/obs_repos/tasks/Fedora.yaml
deleted file mode 100644
index 8e1bbba98..000000000
--- a/distro/tests/ansible-roles/obs_repos/tasks/Fedora.yaml
+++ /dev/null
@@ -1,7 +0,0 @@
----
-- name: Download repo file(s)
- get_url:
- url: "{{ obs_repofile_url }}"
- dest: "/etc/yum.repos.d/home:CZ-NIC:{{ item }}.repo"
- mode: 0644
- with_items: "{{ repos }}"
diff --git a/distro/tests/ansible-roles/obs_repos/tasks/Rocky.yaml b/distro/tests/ansible-roles/obs_repos/tasks/Rocky.yaml
deleted file mode 100644
index d777cbfc2..000000000
--- a/distro/tests/ansible-roles/obs_repos/tasks/Rocky.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
----
-- name: Install EPEL
- yum:
- name: epel-release
- state: present
-
-- name: Download repo file(s)
- get_url:
- url: "{{ obs_repofile_url }}"
- dest: /etc/yum.repos.d/home:CZ-NIC:{{ item }}.repo
- mode: 0644
- with_items: "{{ repos }}"
diff --git a/distro/tests/ansible-roles/obs_repos/tasks/Ubuntu.yaml b/distro/tests/ansible-roles/obs_repos/tasks/Ubuntu.yaml
deleted file mode 100644
index 6b778acb0..000000000
--- a/distro/tests/ansible-roles/obs_repos/tasks/Ubuntu.yaml
+++ /dev/null
@@ -1,13 +0,0 @@
----
-- name: Add upstream package signing key
- apt_key:
- url: https://gitlab.nic.cz/knot/knot-resolver-release/raw/master/cznic-obs.gpg.asc
- state: present
-
-- name: Add OBS repo(s)
- apt_repository:
- repo: >
- deb http://download.opensuse.org/repositories/home:/CZ-NIC:/{{ item }}/{{ obs_repo_version }}/ /
- state: present
- update_cache: true
- with_items: "{{ repos }}"
diff --git a/distro/tests/ansible-roles/obs_repos/tasks/main.yaml b/distro/tests/ansible-roles/obs_repos/tasks/main.yaml
deleted file mode 100644
index e5c7465c0..000000000
--- a/distro/tests/ansible-roles/obs_repos/tasks/main.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
----
-- name: Include Debian specific vars
- include_vars: "{{ obs_distro }}_{{ ansible_distribution_major_version }}.yaml"
- when: obs_distro == "Debian"
-
-- name: Include distribution specific vars
- include_vars: "{{ obs_distro }}.yaml"
- when: obs_distro != "Debian"
-
-- name: Configure upstream repositories
- include: "{{ obs_distro }}.yaml"
diff --git a/distro/tests/ansible-roles/obs_repos/tasks/openSUSE_Leap.yaml b/distro/tests/ansible-roles/obs_repos/tasks/openSUSE_Leap.yaml
deleted file mode 100644
index 907f29d2f..000000000
--- a/distro/tests/ansible-roles/obs_repos/tasks/openSUSE_Leap.yaml
+++ /dev/null
@@ -1,17 +0,0 @@
----
-- name: Install python-xml dependency for zypper_repository
- shell: zypper install -y python-xml
- args:
- warn: false
-
-- name: Add upstream repo(s)
- zypper_repository:
- repo: "{{ obs_repofile_url }}"
- state: present
- disable_gpg_check: true # auto_import_keys is broken
- with_items: "{{ repos }}"
-
-- name: Refresh all repositories
- zypper_repository:
- repo: '*'
- runrefresh: true
diff --git a/distro/tests/ansible-roles/obs_repos/vars/CentOS.yaml b/distro/tests/ansible-roles/obs_repos/vars/CentOS.yaml
deleted file mode 100644
index bc753749c..000000000
--- a/distro/tests/ansible-roles/obs_repos/vars/CentOS.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
----
-obs_repo_version: "{{ obs_distro }}_{{ ansible_distribution_major_version }}_EPEL"
diff --git a/distro/tests/ansible-roles/obs_repos/vars/Debian_10.yaml b/distro/tests/ansible-roles/obs_repos/vars/Debian_10.yaml
deleted file mode 100644
index bbe23e468..000000000
--- a/distro/tests/ansible-roles/obs_repos/vars/Debian_10.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
----
-obs_repo_version: "{{ obs_distro }}_{{ ansible_distribution_major_version }}"
diff --git a/distro/tests/ansible-roles/obs_repos/vars/Debian_11.yaml b/distro/tests/ansible-roles/obs_repos/vars/Debian_11.yaml
deleted file mode 120000
index 4babdf4e3..000000000
--- a/distro/tests/ansible-roles/obs_repos/vars/Debian_11.yaml
+++ /dev/null
@@ -1 +0,0 @@
-Debian_10.yaml \ No newline at end of file
diff --git a/distro/tests/ansible-roles/obs_repos/vars/Fedora.yaml b/distro/tests/ansible-roles/obs_repos/vars/Fedora.yaml
deleted file mode 100644
index bbe23e468..000000000
--- a/distro/tests/ansible-roles/obs_repos/vars/Fedora.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
----
-obs_repo_version: "{{ obs_distro }}_{{ ansible_distribution_major_version }}"
diff --git a/distro/tests/ansible-roles/obs_repos/vars/Rocky.yaml b/distro/tests/ansible-roles/obs_repos/vars/Rocky.yaml
deleted file mode 100644
index 1f3e23fbe..000000000
--- a/distro/tests/ansible-roles/obs_repos/vars/Rocky.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
----
-obs_repo_version: "CentOS_{{ ansible_distribution_major_version }}_EPEL"
diff --git a/distro/tests/ansible-roles/obs_repos/vars/Ubuntu.yaml b/distro/tests/ansible-roles/obs_repos/vars/Ubuntu.yaml
deleted file mode 100644
index 93e92b017..000000000
--- a/distro/tests/ansible-roles/obs_repos/vars/Ubuntu.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
----
-obs_repo_version: "x{{ obs_distro }}_{{ ansible_distribution_version }}"
diff --git a/distro/tests/ansible-roles/obs_repos/vars/openSUSE_Leap.yaml b/distro/tests/ansible-roles/obs_repos/vars/openSUSE_Leap.yaml
deleted file mode 100644
index fc650ccf8..000000000
--- a/distro/tests/ansible-roles/obs_repos/vars/openSUSE_Leap.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
----
-obs_repo_version: "{{ obs_distro }}_{{ ansible_distribution_version }}"
diff --git a/distro/tests/centos7/Vagrantfile b/distro/tests/centos7/Vagrantfile
deleted file mode 100644
index f51caa0a8..000000000
--- a/distro/tests/centos7/Vagrantfile
+++ /dev/null
@@ -1,29 +0,0 @@
-# -*- mode: ruby -*-
-# vi: set ft=ruby :
-#
-
-Vagrant.configure(2) do |config|
-
- config.vm.box = "centos/7"
- config.vm.synced_folder ".", "/vagrant", disabled: true
-
- config.vm.define "centos7_knot-dns" do |machine|
- machine.vm.provision "ansible" do |ansible|
- ansible.playbook = "../knot-dns-pkgtest.yaml"
- ansible.extra_vars = {
- ansible_python_interpreter: "/usr/bin/python2"
- }
- end
- end
-
- config.vm.provider :libvirt do |libvirt|
- libvirt.cpus = 1
- libvirt.memory = 1024
- end
-
- config.vm.provider :virtualbox do |vbox|
- vbox.cpus = 1
- vbox.memory = 1024
- end
-
-end
diff --git a/distro/tests/centos7/ansible.cfg b/distro/tests/centos7/ansible.cfg
deleted file mode 120000
index f80698e88..000000000
--- a/distro/tests/centos7/ansible.cfg
+++ /dev/null
@@ -1 +0,0 @@
-../.ansible.cfg \ No newline at end of file
diff --git a/distro/tests/debian10/Vagrantfile b/distro/tests/debian10/Vagrantfile
deleted file mode 100644
index 6398e7c4c..000000000
--- a/distro/tests/debian10/Vagrantfile
+++ /dev/null
@@ -1,27 +0,0 @@
-# -*- mode: ruby -*-
-# vi: set ft=ruby :
-#
-
-Vagrant.configure(2) do |config|
-
- # debian/buster64 requires manual intervention for apt update as of 2019-07-18
- config.vm.box = "generic/debian10"
- config.vm.synced_folder ".", "/vagrant", disabled: true
-
- config.vm.define "debian10_knot-dns" do |machine|
- machine.vm.provision "ansible" do |ansible|
- ansible.playbook = "../knot-dns-pkgtest.yaml"
- end
- end
-
- config.vm.provider :libvirt do |libvirt|
- libvirt.cpus = 1
- libvirt.memory = 1024
- end
-
- config.vm.provider :virtualbox do |vbox|
- vbox.cpus = 1
- vbox.memory = 1024
- end
-
-end
diff --git a/distro/tests/debian10/ansible.cfg b/distro/tests/debian10/ansible.cfg
deleted file mode 120000
index f80698e88..000000000
--- a/distro/tests/debian10/ansible.cfg
+++ /dev/null
@@ -1 +0,0 @@
-../.ansible.cfg \ No newline at end of file
diff --git a/distro/tests/debian11/Vagrantfile b/distro/tests/debian11/Vagrantfile
deleted file mode 100644
index ae6f7c3c3..000000000
--- a/distro/tests/debian11/Vagrantfile
+++ /dev/null
@@ -1,26 +0,0 @@
-# -*- mode: ruby -*-
-# vi: set ft=ruby :
-#
-
-Vagrant.configure(2) do |config|
-
- config.vm.box = "generic/debian11"
- config.vm.synced_folder ".", "/vagrant", disabled: true
-
- config.vm.define "debian11_knot-dns" do |machine|
- machine.vm.provision "ansible" do |ansible|
- ansible.playbook = "../knot-dns-pkgtest.yaml"
- end
- end
-
- config.vm.provider :libvirt do |libvirt|
- libvirt.cpus = 1
- libvirt.memory = 1024
- end
-
- config.vm.provider :virtualbox do |vbox|
- vbox.cpus = 1
- vbox.memory = 1024
- end
-
-end
diff --git a/distro/tests/debian11/ansible.cfg b/distro/tests/debian11/ansible.cfg
deleted file mode 120000
index f80698e88..000000000
--- a/distro/tests/debian11/ansible.cfg
+++ /dev/null
@@ -1 +0,0 @@
-../.ansible.cfg \ No newline at end of file
diff --git a/distro/tests/fedora34/Vagrantfile b/distro/tests/fedora34/Vagrantfile
deleted file mode 100644
index a55e0b229..000000000
--- a/distro/tests/fedora34/Vagrantfile
+++ /dev/null
@@ -1,30 +0,0 @@
-# SPDX-License-Identifier: GPL-3.0-or-later
-# -*- mode: ruby -*-
-# vi: set ft=ruby :
-#
-
-Vagrant.configure(2) do |config|
-
- config.vm.box = "fedora/34-cloud-base"
- config.vm.synced_folder ".", "/vagrant", disabled: true
-
- config.vm.define "fedora34_knot-dns" do |machine|
- machine.vm.provision "ansible" do |ansible|
- ansible.playbook = "../knot-dns-pkgtest.yaml"
- ansible.extra_vars = {
- ansible_python_interpreter: "/usr/bin/python3",
- }
- end
- end
-
- config.vm.provider :libvirt do |libvirt|
- libvirt.cpus = 1
- libvirt.memory = 1024
- end
-
- config.vm.provider :virtualbox do |vbox|
- vbox.cpus = 1
- vbox.memory = 1024
- end
-
-end
diff --git a/distro/tests/fedora34/ansible.cfg b/distro/tests/fedora34/ansible.cfg
deleted file mode 120000
index f80698e88..000000000
--- a/distro/tests/fedora34/ansible.cfg
+++ /dev/null
@@ -1 +0,0 @@
-../.ansible.cfg \ No newline at end of file
diff --git a/distro/tests/fedora35/Vagrantfile b/distro/tests/fedora35/Vagrantfile
deleted file mode 100644
index 4f079555e..000000000
--- a/distro/tests/fedora35/Vagrantfile
+++ /dev/null
@@ -1,29 +0,0 @@
-# -*- mode: ruby -*-
-# vi: set ft=ruby :
-#
-
-Vagrant.configure(2) do |config|
-
- config.vm.box = "fedora/35-cloud-base"
- config.vm.synced_folder ".", "/vagrant", disabled: true
-
- config.vm.define "fedora35_knot-dns" do |machine|
- machine.vm.provision "ansible" do |ansible|
- ansible.playbook = "../knot-dns-pkgtest.yaml"
- ansible.extra_vars = {
- ansible_python_interpreter: "/usr/bin/python3"
- }
- end
- end
-
- config.vm.provider :libvirt do |libvirt|
- libvirt.cpus = 1
- libvirt.memory = 1024
- end
-
- config.vm.provider :virtualbox do |vbox|
- vbox.cpus = 1
- vbox.memory = 1024
- end
-
-end
diff --git a/distro/tests/fedora35/ansible.cfg b/distro/tests/fedora35/ansible.cfg
deleted file mode 120000
index f80698e88..000000000
--- a/distro/tests/fedora35/ansible.cfg
+++ /dev/null
@@ -1 +0,0 @@
-../.ansible.cfg \ No newline at end of file
diff --git a/distro/tests/knot-dns-pkgtest.yaml b/distro/tests/knot-dns-pkgtest.yaml
deleted file mode 100644
index ffddccad3..000000000
--- a/distro/tests/knot-dns-pkgtest.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
----
-- hosts: all
-
- remote_user: root
- become: true
-
- vars_files:
- - repos.yaml
-
- roles:
- - obs_repos
- - knot_dns
diff --git a/distro/tests/leap15/Vagrantfile b/distro/tests/leap15/Vagrantfile
deleted file mode 100644
index fee36fb79..000000000
--- a/distro/tests/leap15/Vagrantfile
+++ /dev/null
@@ -1,28 +0,0 @@
-# -*- mode: ruby -*-
-# vi: set ft=ruby :
-#
-
-Vagrant.configure(2) do |config|
-
- config.vm.box = "generic/opensuse15"
-
- config.vm.synced_folder ".", "/vagrant", disabled: true
-
- config.vm.define "leap15_knot-dns" do |machine|
- machine.vm.provision "ansible" do |ansible|
- ansible.playbook = "../knot-dns-pkgtest.yaml"
- end
- end
-
- config.vm.provider :libvirt do |libvirt|
- libvirt.cpus = 1
- libvirt.memory = 1024
- libvirt.disk_bus = "sata"
- end
-
- config.vm.provider :virtualbox do |vbox|
- vbox.cpus = 1
- vbox.memory = 1024
- end
-
-end
diff --git a/distro/tests/leap15/ansible.cfg b/distro/tests/leap15/ansible.cfg
deleted file mode 120000
index f80698e88..000000000
--- a/distro/tests/leap15/ansible.cfg
+++ /dev/null
@@ -1 +0,0 @@
-../.ansible.cfg \ No newline at end of file
diff --git a/distro/tests/repos.yaml b/distro/tests/repos.yaml
deleted file mode 100644
index ca4b13b00..000000000
--- a/distro/tests/repos.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
-repos:
- - knot-dns-devel
diff --git a/distro/tests/rocky8/Vagrantfile b/distro/tests/rocky8/Vagrantfile
deleted file mode 100644
index 4963430bb..000000000
--- a/distro/tests/rocky8/Vagrantfile
+++ /dev/null
@@ -1,30 +0,0 @@
-# SPDX-License-Identifier: GPL-3.0-or-later
-# -*- mode: ruby -*-
-# vi: set ft=ruby :
-#
-
-Vagrant.configure(2) do |config|
-
- config.vm.box = "generic/rocky8"
- config.vm.synced_folder ".", "/vagrant", disabled: true
-
- config.vm.define "rocky8_knot-dns" do |machine|
- machine.vm.provision "ansible" do |ansible|
- ansible.playbook = "../knot-dns-pkgtest.yaml"
- ansible.extra_vars = {
- ansible_python_interpreter: "/usr/libexec/platform-python"
- }
- end
- end
-
- config.vm.provider :libvirt do |libvirt|
- libvirt.cpus = 1
- libvirt.memory = 1024
- end
-
- config.vm.provider :virtualbox do |vbox|
- vbox.cpus = 1
- vbox.memory = 1024
- end
-
-end
diff --git a/distro/tests/rocky8/ansible.cfg b/distro/tests/rocky8/ansible.cfg
deleted file mode 120000
index f80698e88..000000000
--- a/distro/tests/rocky8/ansible.cfg
+++ /dev/null
@@ -1 +0,0 @@
-../.ansible.cfg \ No newline at end of file
diff --git a/distro/tests/test-distro.sh b/distro/tests/test-distro.sh
deleted file mode 100755
index 6728829dc..000000000
--- a/distro/tests/test-distro.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash -x
-
-# ./test-distro.sh {obs_repo} {distro}
-# Example usage: ./test-distro.sh knot-dns-devel debian9
-
-pkgtestdir="$(dirname ${0})"
-repofile="$pkgtestdir/repos.yaml"
-
-repo=$1
-distro=$2
-
-# Select repos
-echo -e "repos:\n - $repo" > $repofile
-
-pushd "$pkgtestdir/$distro"
-vagrant destroy -f &>/dev/null
-vagrant up
-ret=$?
-vagrant destroy -f &>/dev/null
-popd
-exit $ret
diff --git a/distro/tests/ubuntu1804/Vagrantfile b/distro/tests/ubuntu1804/Vagrantfile
deleted file mode 100644
index 08c6d5a16..000000000
--- a/distro/tests/ubuntu1804/Vagrantfile
+++ /dev/null
@@ -1,29 +0,0 @@
-# -*- mode: ruby -*-
-# vi: set ft=ruby :
-#
-
-Vagrant.configure(2) do |config|
-
- config.vm.box = "generic/ubuntu1804"
- config.vm.synced_folder ".", "/vagrant", disabled: true
-
- config.vm.define "ubuntu1804_knot-dns" do |machine|
- machine.vm.provision "ansible" do |ansible|
- ansible.playbook = "../knot-dns-pkgtest.yaml"
- ansible.extra_vars = {
- ansible_python_interpreter: "/usr/bin/python3"
- }
- end
- end
-
- config.vm.provider :libvirt do |libvirt|
- libvirt.cpus = 1
- libvirt.memory = 1024
- end
-
- config.vm.provider :virtualbox do |vbox|
- vbox.cpus = 1
- vbox.memory = 1024
- end
-
-end
diff --git a/distro/tests/ubuntu1804/ansible.cfg b/distro/tests/ubuntu1804/ansible.cfg
deleted file mode 120000
index f80698e88..000000000
--- a/distro/tests/ubuntu1804/ansible.cfg
+++ /dev/null
@@ -1 +0,0 @@
-../.ansible.cfg \ No newline at end of file
diff --git a/distro/tests/ubuntu2004/Vagrantfile b/distro/tests/ubuntu2004/Vagrantfile
deleted file mode 100644
index c23a814bd..000000000
--- a/distro/tests/ubuntu2004/Vagrantfile
+++ /dev/null
@@ -1,30 +0,0 @@
-# SPDX-License-Identifier: GPL-3.0-or-later
-# -*- mode: ruby -*-
-# vi: set ft=ruby :
-#
-
-Vagrant.configure(2) do |config|
-
- config.vm.box = "generic/ubuntu2004"
- config.vm.synced_folder ".", "/vagrant", disabled: true
-
- config.vm.define "ubuntu2004_knot-dns" do |machine|
- machine.vm.provision "ansible" do |ansible|
- ansible.playbook = "../knot-dns-pkgtest.yaml"
- ansible.extra_vars = {
- ansible_python_interpreter: "/usr/bin/python3"
- }
- end
- end
-
- config.vm.provider :libvirt do |libvirt|
- libvirt.cpus = 1
- libvirt.memory = 1024
- end
-
- config.vm.provider :virtualbox do |vbox|
- vbox.cpus = 1
- vbox.memory = 1024
- end
-
-end
diff --git a/distro/tests/ubuntu2004/ansible.cfg b/distro/tests/ubuntu2004/ansible.cfg
deleted file mode 120000
index f80698e88..000000000
--- a/distro/tests/ubuntu2004/ansible.cfg
+++ /dev/null
@@ -1 +0,0 @@
-../.ansible.cfg \ No newline at end of file
diff --git a/distro/tests/ubuntu2110/Vagrantfile b/distro/tests/ubuntu2110/Vagrantfile
deleted file mode 100644
index d388db0a7..000000000
--- a/distro/tests/ubuntu2110/Vagrantfile
+++ /dev/null
@@ -1,30 +0,0 @@
-# SPDX-License-Identifier: GPL-3.0-or-later
-# -*- mode: ruby -*-
-# vi: set ft=ruby :
-#
-
-Vagrant.configure(2) do |config|
-
- config.vm.box = "generic/ubuntu2110"
- config.vm.synced_folder ".", "/vagrant", disabled: true
-
- config.vm.define "ubuntu2110_knot-dns" do |machine|
- machine.vm.provision "ansible" do |ansible|
- ansible.playbook = "../knot-dns-pkgtest.yaml"
- ansible.extra_vars = {
- ansible_python_interpreter: "/usr/bin/python3"
- }
- end
- end
-
- config.vm.provider :libvirt do |libvirt|
- libvirt.cpus = 1
- libvirt.memory = 1024
- end
-
- config.vm.provider :virtualbox do |vbox|
- vbox.cpus = 1
- vbox.memory = 1024
- end
-
-end
diff --git a/distro/tests/ubuntu2110/ansible.cfg b/distro/tests/ubuntu2110/ansible.cfg
deleted file mode 120000
index f80698e88..000000000
--- a/distro/tests/ubuntu2110/ansible.cfg
+++ /dev/null
@@ -1 +0,0 @@
-../.ansible.cfg \ No newline at end of file