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

Rewrite and cleanup some tests #1711

Merged
merged 1 commit into from
Jan 10, 2024
Merged

Rewrite and cleanup some tests #1711

merged 1 commit into from
Jan 10, 2024

Conversation

mdellweg
Copy link
Member

[noissue]

@mdellweg mdellweg marked this pull request as ready for review December 18, 2023 15:09
@mdellweg mdellweg enabled auto-merge (rebase) January 8, 2024 12:06
@mdellweg mdellweg requested a review from gerrod3 January 8, 2024 12:06
Comment on lines +106 to +107
# These assertions are failing way too often.
# assert version.git_url == "https://github.com/ansible-collections/amazon.aws/"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this assertion fails due to the parallel nature of the test. In other parallel sync tests we sync the amazon.aws collection which means the git sync will use that version already present in the system (name,namespace uniqeuness strikes again) causing the metadata to differ.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do believe so. The problem is, that means the feature is in conflict with shareable content.

Comment on lines +291 to +293
tmpdir = tmp_path_factory.mktemp("collection")
collection = build_collection("skeleton", **kwargs)
collection.filename = shutil.copy(collection.filename, tmpdir)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice use of the tmp_path_factory to get this fixture parallelize.

@mdellweg mdellweg merged commit b44f82d into pulp:main Jan 10, 2024
16 checks passed
@mdellweg mdellweg deleted the modern_tests branch January 10, 2024 09:13
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.

2 participants