mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-30 00:21:23 -07:00
pkgng: test pkgsite parameter
This commit is contained in:
parent
a52f4bb4a4
commit
220b7e08b6
1 changed files with 18 additions and 0 deletions
|
@ -477,6 +477,24 @@
|
||||||
# Verify annotations are unaffected
|
# Verify annotations are unaffected
|
||||||
- '(pkgng_example8_invalid_annotation_verify.stdout_lines | select("search", "(naked_string|invalid_operation|empty_first_tag|validsecond|notag)") | list | count) == 0'
|
- '(pkgng_example8_invalid_annotation_verify.stdout_lines | select("search", "(naked_string|invalid_operation|empty_first_tag|validsecond|notag)") | list | count) == 0'
|
||||||
|
|
||||||
|
##
|
||||||
|
## pkgng - example - pkgsite=...
|
||||||
|
##
|
||||||
|
# NOTE: testing for failure here to not have to set up our own
|
||||||
|
# or depend on a third-party, alternate package repo
|
||||||
|
- name: Should fail with invalid pkgsite
|
||||||
|
pkgng:
|
||||||
|
name: '{{ pkgng_test_pkg_name }}'
|
||||||
|
pkgsite: DoesNotExist
|
||||||
|
ignore_errors: yes
|
||||||
|
register: pkgng_example10_invalid_pkgsite_failure
|
||||||
|
|
||||||
|
- name: Ensure invalid pkgsite fails as expected
|
||||||
|
assert:
|
||||||
|
that:
|
||||||
|
- pkgng_example10_invalid_pkgsite_failure.failed
|
||||||
|
- 'pkgng_example10_invalid_pkgsite_failure.stdout is search("^No repositories are enabled.", multiline=True)'
|
||||||
|
|
||||||
##
|
##
|
||||||
## pkgng - example - Install single package in jail
|
## pkgng - example - Install single package in jail
|
||||||
##
|
##
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue