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

Check if SUSEConnect command includes all expected addons info for migration #10452

Merged
merged 1 commit into from Jun 12, 2020

Conversation

tinawang123
Copy link
Contributor

@tinawang123 tinawang123 commented Jun 5, 2020

Check if SUSEConnect command includes all expected addons info
Background: Before we only check SUSEConnect -s command includes all expected addons registration information. Now we need add SUSEConnect --list-extensions and SUSEConnect --status-text command also includes all expected addon information. As we have check each addons at SUSEConnect -s command. Now we just need compare addon information between SUSEConnect -s and SUSEConnect --list-extensions & SUSEConnect --staus-text command. If those two command includes all addons which SUSEConnect -s included. We will get all expected addons information.

Related ticket: https://progress.opensuse.org/issues/66826

Verification run:https://openqa.nue.suse.com/tests/4315290#step/system_prepare/22
function case: https://openqa.nue.suse.com/tests/4315214#step/system_prepare/10

@lemon-suse
Copy link
Contributor

I think the condition is ok for isolate migration test from others.

@lemon-suse lemon-suse requested a review from rwx788 June 5, 2020 08:59
assert_script_run "SUSEConnect --status-text | grep -v 'Not Registered'" unless get_var('MEDIA_UPGRADE');
if (!get_var('MEDIA_UPGRADE')) {
assert_script_run "SUSEConnect --status-text | grep -v 'Not Registered'";
services::registered_addons::full_registered_check;
Copy link
Member

Choose a reason for hiding this comment

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

I don't think that we have clash of names, so it should work if we just use full_registered_check. Otherwise we can skip explicit import as we call it by full name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used 'full_registered_check' before, it cannot find this file. So I change to use full path

Copy link
Member

Choose a reason for hiding this comment

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

I've checked now, and it's actually because it's not exported in the lib/services/registered_addons.pm. As you import that method, I would propose to export it properly in lib/services/registered_addons.pm

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi Rodion, I merge it seems early, do you think we need revert it and add this modification?

@lemon-suse lemon-suse merged commit c22cc03 into os-autoinst:master Jun 12, 2020
@tinawang123 tinawang123 deleted the susec branch June 15, 2020 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants