-
Notifications
You must be signed in to change notification settings - Fork 10
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
fix: Remove Auto-attach button #68
base: main
Are you sure you want to change the base?
Changes from all commits
cd87d63
6ab887f
5a534c9
3cb7b21
a25ab6e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,6 +209,7 @@ password=foobar | |
|
||
class TestSubscriptions(SubscriptionsCase): | ||
def testRegister(self): | ||
m = self.machine | ||
b = self.browser | ||
|
||
self.login_and_go("/subscriptions") | ||
|
@@ -228,7 +229,8 @@ class TestSubscriptions(SubscriptionsCase): | |
b.set_input_text("#subscription-register-password", "wrongpass") | ||
|
||
# Do not try to connect to insights | ||
b.set_checked("#subscription-insights", False) | ||
if m.image.startswith("rhel-"): | ||
b.set_checked("#subscription-insights", False) | ||
|
||
# try to register | ||
dialog_register_button_sel = "footer .pf-m-primary" | ||
|
@@ -272,6 +274,7 @@ class TestSubscriptions(SubscriptionsCase): | |
b.wait_visible(register_button_sel) | ||
|
||
def testRegisterWithKey(self): | ||
m = self.machine | ||
b = self.browser | ||
|
||
self.login_and_go("/subscriptions") | ||
|
@@ -287,7 +290,8 @@ class TestSubscriptions(SubscriptionsCase): | |
b.set_input_text("#subscription-register-url-custom", CANDLEPIN_URL) | ||
|
||
# Do not try to connect to insights | ||
b.set_checked("#subscription-insights", False) | ||
if m.image.startswith("rhel-"): | ||
b.set_checked("#subscription-insights", False) | ||
Comment on lines
+293
to
+294
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
|
||
# select registration method "activation key" | ||
activation_key_checkbox = "#subscription-register-activation-key-method" | ||
|
@@ -320,42 +324,6 @@ class TestSubscriptions(SubscriptionsCase): | |
# find another one that isn't subscribed too | ||
self.wait_subscription(PRODUCT_SHARED, False) | ||
|
||
def testRegisterWithoutAutoAttach(self): | ||
b = self.browser | ||
|
||
self.login_and_go("/subscriptions") | ||
|
||
# wait until we can open the registration dialog | ||
register_button_sel = "button:contains('Register')" | ||
b.click(register_button_sel) | ||
|
||
b.wait_visible("#subscription-register-url") | ||
|
||
# enter server and correct login data | ||
b.set_val("#subscription-register-url", "custom") | ||
b.set_input_text("#subscription-register-url-custom", CANDLEPIN_URL) | ||
b.set_input_text("#subscription-register-username", "doc") | ||
b.set_input_text("#subscription-register-password", "password") | ||
b.set_input_text("#subscription-register-org", "snowwhite") | ||
|
||
b.click("#subscription-auto-attach-use") | ||
|
||
dialog_register_button_sel = "footer .pf-m-primary" | ||
b.click(dialog_register_button_sel) | ||
|
||
# dialog should disappear | ||
with b.wait_timeout(60): | ||
b.wait_not_present(dialog_register_button_sel) | ||
|
||
# this product should not be subscribed ATM, because auto-attach was skipped | ||
self.wait_subscription(PRODUCT_SHARED, False) | ||
|
||
b.click("button:contains('Auto-attach')") | ||
|
||
# find another one that is subscribed | ||
with b.wait_timeout(60): | ||
self.wait_subscription(PRODUCT_SHARED, True) | ||
|
||
def testUnpriv(self): | ||
self.machine.execute("useradd junior; echo junior:foobar | chpasswd") | ||
self.login_and_go("/subscriptions", user="junior") | ||
|
@@ -476,6 +444,7 @@ class TestSubscriptions(SubscriptionsCase): | |
|
||
|
||
class TestSubscriptionsPackages(SubscriptionsCase, PackageCase): | ||
@skipUnlessDistroFamily("rhel", "Insights support is specific to RHEL") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there is no need to disable this test on non-RHEL OSes: the test itself creates a fake |
||
def testMissingPackages(self): | ||
m = self.machine | ||
b = self.browser | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should not be a problem to do regardless of the OS, so simply avoid the check altogether