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,6 +1,6 @@
|
|||||||
#jinja2: lstrip_blocks: True
|
#jinja2: lstrip_blocks: True
|
||||||
{{ ansible_managed | comment }}
|
{{ ansible_managed | comment }}
|
||||||
# Configuration file for the CUPS scheduler. See "man cupsd.conf" for a
|
# Configuration file for the CUPS scheduler. See "man cupsd.conf" for a
|
||||||
# complete description of this file.
|
# complete description of this file.
|
||||||
#
|
#
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ DefaultEncryption Never
|
|||||||
LogLevel {{ cups_log_level | lower }}
|
LogLevel {{ cups_log_level | lower }}
|
||||||
PageLogFormat
|
PageLogFormat
|
||||||
|
|
||||||
# Specifies the maximum size of the log files before they are rotated. The value "0" disables log rotation.
|
# Specifies the maximum size of the log files before they are rotated. The value "0" disables log rotation.
|
||||||
MaxLogSize 1m
|
MaxLogSize 1m
|
||||||
|
|
||||||
# Default error policy for printers
|
# Default error policy for printers
|
||||||
|
@ -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