Replace the Livepatch tab by an Ubuntu Pro one
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
* Impact
We want desktop integration with Ubuntu Pro, that will also replace the custom registration code we had for Livepatch which is integrated with the new service
* Test case
- ensure that the machine isn't attached to ubuntu pro (otherwise the screen would not be displayed) and is online
$ pro status
and `$ pro detach` if needed
- until the service is in production to try the magic workflow, edit /etc/ubuntu-
contract_url: https:/
then 'ua refresh config')
and use the non staging for token registration
- $ software-
-> the list of tabs should include an 'Ubuntu Pro' one and no 'Livepatch'
The Ubuntu Pro tab should state 'This machine is not covered by an Ubuntu Pro subscription', display a 'Enable Ubuntu Pro' button and have other controls inactive
- click 'Enable Ubuntu Pro'
-> A dialog 'Enable Ubuntu Pro' opens
-> the first option 'Enter code on ubuntu.
-> a pincode is displayed under the option
- go to http//ubuntu.
-> after some seconds the software-properties UI should update and display a green mark and 'Valid token' label on the right of the pincode
- click 'Confirm'
-> you should get an authentification prompt
- enter your password
-> a spinner starts animating instead of the 'Valid token' label
-> once the attachment job is done the dialog is autoclosed
-> the UI should now state 'Ubuntu Pro support is enabled', under Security 'ESM Infra', 'ESM Apps' and 'Kernel Livepatch' should be displayed an enabled
(or without 'ESM Apps' if you don't have the current ubuntu-
- check that the '$ pro status' output matches the UI one
- try enabling/disable options
-> verify that the 'pro status' change accordingly
- Click 'Disable Ubuntu Pro'
-> you get asked for confirmation and password
-> confirm that the UI is back to the original state and that 'pro status' confirm the system isn't attached to Ubuntu Pro anymore
- Go through the testcase again but selecting the 'Or add token manually' option, the steps should be similar
* Regression Potential
There could be problems in the UI
The new service could be not working as expected
Strings are new and currently have no translations
description: | updated |
The changes in Lunar, https:/ /bugs.launchpad .net/ubuntu/ +source/ software- properties/ 0.99.30 (with some extra tweaks in the vcs pending upload)