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

Add hdm to installer's UPSTREAM_SPECIFIC_MODULES & fix comparison #15833

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

ekohl
Copy link
Contributor

@ekohl ekohl commented Aug 2, 2024

Problem Statement

This has two problems. First of all, HDM is a new plugin that recently started shipping upstream, but don't ship downstream.

The second problem is that the diff is hard to read. On the right hand side it is dict_keys() - set() which results in a set. While you can compare dict_keys and set, the resulting diff isn't very useful because pytest doesn't diff the elements.

Solution

For the first problem, hdm is added to installer's UPSTREAM_SPECIFIC_MODULES.

The second problem is solved by converting the left hand side into a set so it's comparing two sets. Technically that's also correct because for us the order doesn't matter either; it's only about the elements.

Related Issues

theforeman/foreman-installer@de26c75 added HDM to the upstream installer.

On the right hand side it is `dict_keys() - set()` which results in a
set. While you can compare dict_keys and set, the resulting diff isn't
very useful because pytest doesn't diff the elements.

This converts the left hand side into a set so it's comparing two sets.
Technically that's also correct because for us the order doesn't matter
either; it's only about the elements.
HDM is a new plugin that recently started shipping upstream, but don't
ship downstream.
@ekohl ekohl requested a review from a team as a code owner August 2, 2024 10:07
@omkarkhatavkar
Copy link
Contributor

Can one of the admins verify this patch?

@Gauravtalreja1
Copy link
Collaborator

trigger: test-robottelo
pytest: tests/foreman/installer/test_installer.py

@Gauravtalreja1 Gauravtalreja1 added the No-CherryPick PR doesnt need CherryPick to previous branches label Aug 14, 2024
@jameerpathan111 jameerpathan111 merged commit eb91020 into SatelliteQE:master Aug 15, 2024
7 of 8 checks passed
@ekohl ekohl deleted the fix-installer-tests branch August 16, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No-CherryPick PR doesnt need CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants