feat: add test for Rocky Linux 8 #1

Merged
xoxys merged 3 commits from test-rocky8 into master 2021-12-12 15:47:56 +00:00
5 changed files with 22 additions and 7 deletions
Showing only changes of commit 28b1d098f6 - Show all commits

View File

@ -1,5 +1,5 @@
--- ---
cups_version: 2.3.3op2 cups_version: 2.4.0-1
# @var cups_packages_extra:description: > # @var cups_packages_extra:description: >
# Install dependencies or custom driver packages # Install dependencies or custom driver packages

View File

@ -16,3 +16,11 @@ def test_cups_running_and_enabled(host):
def test_cups_socket(host): def test_cups_socket(host):
# Verify the socket is listening for HTTP traffic # Verify the socket is listening for HTTP traffic
assert host.socket("tcp://127.0.0.1:631").is_listening assert host.socket("tcp://127.0.0.1:631").is_listening
def test_cups_conn_error(host):
code = int(host.run("curl -s -w '%{http_code}' http://127.0.0.1:631/ -o /dev/null").stdout)
body = host.run("curl -sX GET http://127.0.0.1:631/").stdout
assert code == 200
assert "OpenPrinting CUPS" in body

View File

@ -16,3 +16,11 @@ def test_cups_running_and_enabled(host):
def test_cups_socket(host): def test_cups_socket(host):
# Verify the socket is listening for HTTP traffic # Verify the socket is listening for HTTP traffic
assert host.socket("tcp://127.0.0.1:631").is_listening assert host.socket("tcp://127.0.0.1:631").is_listening
def test_cups_conn_error(host):
code = int(host.run("curl -s -w '%{http_code}' http://127.0.0.1:631/ -o /dev/null").stdout)
body = host.run("curl -sX GET http://127.0.0.1:631/").stdout
assert code == 200
assert "OpenPrinting CUPS" in body

View File

@ -1,10 +1,9 @@
--- ---
__cups_download_url: https://gitea.rknet.org/rpmbuild/cups/releases/download/v{{ cups_version }} __cups_download_url: https://gitea.rknet.org/rpmbuild/cups/releases/download/v{{ cups_version }}
__cups_packages: __cups_packages:
- "{{ __cups_download_url }}/cups-{{ cups_version }}-0.el{{ ansible_distribution_major_version }}.x86_64.rpm" - "{{ __cups_download_url }}/cups-{{ cups_version }}.el{{ ansible_distribution_major_version }}.x86_64.rpm"
- "{{ __cups_download_url }}/cups-devel-{{ cups_version }}-0.el{{ ansible_distribution_major_version }}.x86_64.rpm" - "{{ __cups_download_url }}/cups-libs-{{ cups_version }}.el{{ ansible_distribution_major_version }}.x86_64.rpm"
- "{{ __cups_download_url }}/cups-libs-{{ cups_version }}-0.el{{ ansible_distribution_major_version }}.x86_64.rpm" - "{{ __cups_download_url }}/cups-lpd-{{ cups_version }}.el{{ ansible_distribution_major_version }}.x86_64.rpm"
- "{{ __cups_download_url }}/cups-lpd-{{ cups_version }}-0.el{{ ansible_distribution_major_version }}.x86_64.rpm"
__pam_config: __pam_config:
- type: "auth" - type: "auth"