fix tests and remove devel package
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
Robert Kaussow 2021-12-12 15:20:42 +01:00
parent c3c4cec341
commit 28b1d098f6
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
5 changed files with 22 additions and 7 deletions

View File

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

View File

@ -16,3 +16,11 @@ def test_cups_running_and_enabled(host):
def test_cups_socket(host):
# Verify the socket is listening for HTTP traffic
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):
# Verify the socket is listening for HTTP traffic
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_packages:
- "{{ __cups_download_url }}/cups-{{ cups_version }}-0.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 }}-0.el{{ ansible_distribution_major_version }}.x86_64.rpm"
- "{{ __cups_download_url }}/cups-lpd-{{ 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-libs-{{ cups_version }}.el{{ ansible_distribution_major_version }}.x86_64.rpm"
- "{{ __cups_download_url }}/cups-lpd-{{ cups_version }}.el{{ ansible_distribution_major_version }}.x86_64.rpm"
__pam_config:
- type: "auth"