Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ansible-test does not work with collections installed by galaxy inside a git repository #68499

@felixfontein

Description

@felixfontein
SUMMARY

For example in ansible.netcommon installed with ansible-galaxy collection install ansible.netcommon:

$ ansible-test integration -vvv
RLIMIT_NOFILE: (1024, 524288)
MAXFD: -1
ERROR: Cannot run integration tests without "roles/test/" or "tests/integration/targets/".

$ ansible-test units -vvv
RLIMIT_NOFILE: (1024, 524288)
MAXFD: -1
ERROR: Cannot run unit tests without "tests/unit/".

$ ansible-test sanity -vvv
RLIMIT_NOFILE: (1024, 524288)
MAXFD: -1
WARNING: All targets skipped.

That collection has both unit and integration tests, and some plugins and modules.

For source collections checked out with git, ansible-test works.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

ansible-test

ANSIBLE VERSION
devel

Metadata

Metadata

Assignees

Labels

affects_2.15affects_2.16bugThis issue/PR relates to a bug.collectionRelated to Ansible Collections workhas_prThis issue has an associated PR.support:coreThis issue/PR relates to code supported by the Ansible Engineering Team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions