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 ansible-test sanity & unit #5

Merged
merged 1 commit into from
Dec 2, 2020

Conversation

gundalow
Copy link
Contributor

@gundalow gundalow commented Nov 30, 2020

Run Sanity and unit tests (via ansible-test)
This is a requirement before this collection can be included in ansible==2.10

See ansible-collections/overview#128 (comment)

@gundalow
Copy link
Contributor Author

@gundalow
Copy link
Contributor Author

gundalow commented Nov 30, 2020

Failing with

ERROR: Found 3 validate-modules issue(s) which need to be resolved:
ERROR: plugins/modules/nso_config.py:0:0: return-syntax-error: RETURN.changes.contains.to.type: required key not provided @ data['changes']['contains']['to']['type']. Got None
ERROR: plugins/modules/nso_config.py:0:0: return-syntax-error: RETURN.changes.contains.type.type: required key not provided @ data['changes']['contains']['type']['type']. Got None
ERROR: plugins/modules/nso_query.py:0:0: parameter-list-no-elements: Argument 'fields' in argument_spec defines type as list but elements

Full log see https://github.com/gundalow/ansible-nso/actions/runs/391348067

@mamullen13316
Copy link
Collaborator

@gundalow sanity tests for 2.10 should now be passing with the latest commit.

@jabelk @qsnyder could you please enable GitHub Actions for this repo?

@qsnyder
Copy link

qsnyder commented Dec 2, 2020

@mamullen13316 -- just looked in the Repo Settings -- and actions seem to be enabled.

@mamullen13316
Copy link
Collaborator

Thanks for checking @qsnyder. @gundalow please let us know if you are still blocked by Github Actions.

@gundalow gundalow closed this Dec 2, 2020
@gundalow gundalow reopened this Dec 2, 2020
@mamullen13316 mamullen13316 merged commit 569d669 into CiscoDevNet:master Dec 2, 2020
@gundalow gundalow deleted the patch-1 branch December 2, 2020 19:07
@mamullen13316
Copy link
Collaborator

hi @gundalow, apologies if you were still working on that PR before I merged it. The unit tests were failing on installing of the ansible.utils dependency which I think these modules are not using so I commented out that task. I also added the Python version 3.8 to the unit test command, as it was failing on the default 2.X version in the container. Please let me know if any issues. I wasn't sure if we need to sort out the unit tests failing on 2.X?

@felixfontein
Copy link

Right now unit tests seem to run fine for all Python versions (2.6 to 3.9).

The ansible.utils and ansible.netcommon dependencies are not needed, commenting that out is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants