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

Sanity tests failing in cyberark.conjur #140

Open
dmsimard opened this issue May 6, 2022 · 0 comments
Open

Sanity tests failing in cyberark.conjur #140

dmsimard opened this issue May 6, 2022 · 0 comments

Comments

@dmsimard
Copy link

dmsimard commented May 6, 2022

SUMMARY

We are running sanity tests across every collection included in the Ansible community package (as part of this issue) and found that ansible-test sanity --docker against cyberark.conjur 1.1.0 fails with ansible-core 2.13.0rc1 in ansible 6.0.0a2.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

n/a

ANSIBLE VERSION
ansible [core 2.13.0rc1]
COLLECTION VERSION
1.1.0
STEPS TO REPRODUCE
ansible-test sanity --docker
EXPECTED RESULTS

Tests are either passing or ignored.

ACTUAL RESULTS
ERROR: Found 7 shebang issue(s) which need to be resolved:
ERROR: Jenkinsfile:1:1: unexpected non-module shebang: b'#!/usr/bin/env groovy'
ERROR: ci/build_release:1:1: unexpected non-module shebang: b'#!/bin/bash'
ERROR: ci/parse-changelog.sh:1:1: unexpected non-module shebang: b'#!/bin/bash -ex'
ERROR: ci/publish_to_galaxy:1:1: unexpected non-module shebang: b'#!/bin/bash'
ERROR: ci/test.sh:1:1: unexpected non-module shebang: b'#!/bin/bash -x'
ERROR: roles/conjur_host_identity/tests/test.sh:1:1: unexpected non-module shebang: b'#!/bin/bash -e'
ERROR: tests/conjur_variable/test.sh:1:1: unexpected non-module shebang: b'#!/bin/bash -e'
ERROR: Found 5 shellcheck issue(s) which need to be resolved:
ERROR: ci/test.sh:44:11: SC2236: Use -n instead of ! -z.
ERROR: ci/test.sh:80:3: SC2220: Invalid flags are not handled. Add a *) case.
ERROR: roles/conjur_host_identity/tests/test.sh:25:8: SC2236: Use -n instead of ! -z.
ERROR: roles/conjur_host_identity/tests/test.sh:61:8: SC2236: Use -n instead of ! -z.
ERROR: tests/conjur_variable/test.sh:93:8: SC2236: Use -z instead of ! -n.
ERROR: Found 3 validate-modules issue(s) which need to be resolved:
ERROR: plugins/lookup/conjur_variable.py:0:0: invalid-documentation: DOCUMENTATION.author: Invalid author for dictionary value @ data['author']. Got ['CyberArk BizDev (@cyberark-bizdev)', 'CyberArk Community and Integrations Team (@cyberark/community-and-integrations-team)']
ERROR: plugins/lookup/conjur_variable.py:0:0: invalid-documentation: DOCUMENTATION.lookup: extra keys not allowed @ data['lookup']. Got 'conjur_variable'
ERROR: plugins/lookup/conjur_variable.py:0:0: invalid-documentation: DOCUMENTATION.name: required key not provided @ data['name']. Got None
ERROR: Found 3 yamllint issue(s) which need to be resolved:
ERROR: roles/conjur_host_identity/tests/policy/root.yml:2:3: unparsable-with-libyaml: None - could not determine a constructor for the tag '!policy'
ERROR: secrets.yml:2:17: unparsable-with-libyaml: None - could not determine a constructor for the tag '!var'
ERROR: tests/conjur_variable/policy/root.yml:2:3: unparsable-with-libyaml: None - could not determine a constructor for the tag '!policy'
ERROR: The 4 sanity test(s) listed below (out of 43) failed. See error output above for details.
shebang
shellcheck
validate-modules
yamllint
ERROR: Command "podman exec ansible-test-controller-qbpY8nel /usr/bin/env ANSIBLE_TEST_CONTENT_ROOT=/root/ansible_collections/cyberark/conjur LC_ALL=en_US.UTF-8 /usr/bin/python3.10 /root/ansible/bin/ansible-test sanity --containers '{}' --skip-test pylint --metadata tests/output/.tmp/metadata-u7v41c_d.json --truncate 0 --color no --host-path tests/output/.tmp/host-07p3e2g8" returned exit status 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants