fix tests and remove devel package
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
c3c4cec341
commit
28b1d098f6
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user