Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] cpanm: disable test with version operator #8290

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 18 additions & 12 deletions tests/integration/targets/cpanm/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,22 @@
- install_same_perl_package_result is not changed
- install_same_perl_package_result is not failed

- name: install a Perl package with version operator
cpanm:
name: JSON
version: "@4.01"
notest: true
mode: new
register: install_perl_package_with_version_op_result
#
# The following test is failing in CentOS 7.
#
- name: Not for CentOS 7
when: not (ansible_distribution == 'CentOS' and ansible_distribution_major_version < '8')
block:
- name: install a Perl package with version operator
cpanm:
name: JSON
version: "@4.01"
notest: true
mode: new
register: install_perl_package_with_version_op_result

- name: assert package with version operator is installed
assert:
that:
- install_perl_package_with_version_op_result is changed
- install_perl_package_with_version_op_result is not failed
- name: assert package with version operator is installed
assert:
that:
- install_perl_package_with_version_op_result is changed
- install_perl_package_with_version_op_result is not failed