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

Modernize functional tests III #1562

Merged
merged 1 commit into from
Sep 1, 2023
Merged

Modernize functional tests III #1562

merged 1 commit into from
Sep 1, 2023

Conversation

mdellweg
Copy link
Member

[noissue]

@mdellweg mdellweg force-pushed the modern_tests branch 3 times, most recently from 21c3604 to ac3387a Compare August 25, 2023 10:28
assert distribution.repository_version == repository.latest_version_href

if False:
# TODO This fails by complaining repository and version cannot be used together.
Copy link
Member Author

Choose a reason for hiding this comment

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

This is actually a pulpcore bug.

Copy link
Member Author

Choose a reason for hiding this comment

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

@mdellweg mdellweg marked this pull request as ready for review August 25, 2023 10:55
@mdellweg mdellweg force-pushed the modern_tests branch 4 times, most recently from 7158c14 to 97d8a78 Compare August 26, 2023 08:10
Comment on lines 30 to 33
# TODO That's not how you get roles from galaxy v1...
assert pulp_hash is not None
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you figured out how to get roles from galaxy v1?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not yet. And also this test was skipped before. So do you think it brings new value, or should we remove it altogether?

Copy link
Contributor

Choose a reason for hiding this comment

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

I personally think this test doesn't add much value. We already test that we can download roles in the cli test when we check we can install a role from Pulp. I would suggest removing it.

Comment on lines +49 to +50
if has_pulp_plugin("pulpcore", min="3.30.1"):
# On older versions, this fails complaining repository and version cannot be used together.
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 has_pulp_plugin!

@@ -358,6 +358,7 @@ class Meta:
"pulp_href",
"pulp_created",
"base_path",
"base_url",
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we really be exposing base_url for an ansible distribution? client_url is the url you are most likely to need and I think if we do expose it we need to add a feature log for it.

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'm going to remove it again and mark the dysfunctional test mentioned above skipped.
(Maybe we get back to the roles api eventually...)

@mdellweg mdellweg merged commit d5fb061 into pulp:main Sep 1, 2023
13 checks passed
@mdellweg mdellweg deleted the modern_tests branch September 1, 2023 06:23
@patchback
Copy link

patchback bot commented Sep 21, 2023

Backport to 0.18: 💔 cherry-picking failed — conflicts found

❌ Failed to cleanly apply d5fb061 on top of patchback/backports/0.18/d5fb061f37cc42a0cea7df52f36347154a215c88/pr-1562

Backporting merged PR #1562 into main

  1. Ensure you have a local repo clone of your fork. Unless you cloned it
    from the upstream, this would be your origin remote.
  2. Make sure you have an upstream repo added as a remote too. In these
    instructions you'll refer to it by the name upstream. If you don't
    have it, here's how you can add it:
    $ git remote add upstream https://github.com/pulp/pulp_ansible.git
  3. Ensure you have the latest copy of upstream and prepare a branch
    that will hold the backported code:
    $ git fetch upstream
    $ git checkout -b patchback/backports/0.18/d5fb061f37cc42a0cea7df52f36347154a215c88/pr-1562 upstream/0.18
  4. Now, cherry-pick PR Modernize functional tests III #1562 contents into that branch:
    $ git cherry-pick -x d5fb061f37cc42a0cea7df52f36347154a215c88
    If it'll yell at you with something like fatal: Commit d5fb061f37cc42a0cea7df52f36347154a215c88 is a merge but no -m option was given., add -m 1 as follows instead:
    $ git cherry-pick -m1 -x d5fb061f37cc42a0cea7df52f36347154a215c88
  5. At this point, you'll probably encounter some merge conflicts. You must
    resolve them in to preserve the patch from PR Modernize functional tests III #1562 as close to the
    original as possible.
  6. Push this branch to your fork on GitHub:
    $ git push origin patchback/backports/0.18/d5fb061f37cc42a0cea7df52f36347154a215c88/pr-1562
  7. Create a PR, ensure that the CI is green. If it's not — update it so that
    the tests and any other checks pass. This is it!
    Now relax and wait for the maintainers to process your pull request
    when they have some cycles to do reviews. Don't worry — they'll tell you if
    any improvements are necessary when the time comes!

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

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

Successfully merging this pull request may close these issues.

2 participants