subiquity/examples
Olivier Gayot 7ebef6d609 ubuntu-pro: add subscription info in response to /ubuntu_pro/check_token
The response to /ubuntu_pro/check_token now includes information about
the subscription: the name of the contract and the "name" of the account.

Instead of returning the list of services as an optional field, we now
include the list of services in the subscription object. The
subscription object is itself marked optional. This is a backward
incompatible change.

  {
    "status": "VALID_TOKEN",
    "services": [
      {
        "name": "esm-infra",
        "description": "UA Infra: Extended Security Maintenance (ESM)",
        "auto_enabled": true
      }
    ]
  }

  =>

  {
    "status": "VALID_TOKEN",
    "subscription": {
        "account_name": "user@domain.com",
        "contract_name": "UA Apps - Essential (Virtual)",
        "services": [
          {
            "name": "esm-infra",
            "description": "UA Infra: Extended Security Maintenance (ESM)",
            "auto_enabled": true
          }
        ]
     }
  }

If the token is not valid, the subscription object will be null:

  {
    "status": "EXPIRED_TOKEN",
    "subscription": null
  }

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-06-30 16:31:56 +02:00
..
snaps snaplist: add visual indication for starred publishers 2022-05-04 10:32:32 +02:00
answers-bond.yaml source: run answers when only one source is configured 2022-04-26 13:43:47 +02:00
answers-guided-lvm.yaml source: run answers when only one source is configured 2022-04-26 13:43:47 +02:00
answers-imsm.yaml source: run answers when only one source is configured 2022-04-26 13:43:47 +02:00
answers-lvm-dmcrypt.yaml source: run answers when only one source is configured 2022-04-26 13:43:47 +02:00
answers-lvm.yaml source: run answers when only one source is configured 2022-04-26 13:43:47 +02:00
answers-preserve.yaml source: run answers when only one source is configured 2022-04-26 13:43:47 +02:00
answers-raid-lvm.yaml source: run answers when only one source is configured 2022-04-26 13:43:47 +02:00
answers-raid.yaml source: run answers when only one source is configured 2022-04-26 13:43:47 +02:00
answers-serial.yaml source: run answers when only one source is configured 2022-04-26 13:43:47 +02:00
answers-swap.yaml source: run answers when only one source is configured 2022-04-26 13:43:47 +02:00
answers-system-setup-init.yaml system_setup: refactor the testing system 2021-10-08 20:49:06 +08:00
answers-system-setup-reconf.yaml Removed systemd from the UI 2022-04-07 10:55:30 +02:00
answers.yaml source: run answers when only one source is configured 2022-04-26 13:43:47 +02:00
autoinstall-interactive.yaml run error commands on failure 2020-12-18 14:42:01 +13:00
autoinstall-invalid.yaml tweak autoinstall command lists 2020-03-31 22:42:24 +13:00
autoinstall-system-setup-full.yaml System-Setup: Add systemd experimental support to WSL 2022-03-16 12:24:18 +01:00
autoinstall-system-setup-no-shutdown.yaml system_setup: shutdown/reboot tests 2021-10-18 17:15:45 +08:00
autoinstall-system-setup.yaml system_setup: include full autoinstall system 2021-10-11 10:20:18 +08:00
autoinstall-user-data.yaml add setting policy for post-install updates via autoinstall (#920) 2021-03-31 13:57:53 -06:00
autoinstall.yaml Rename UbuntuAdvantage -> UbuntuPro but keep autoinstall compat 2022-03-15 11:50:57 +01:00
curtin-events-fail.json have dry-run install failures replay events from a real failure 2019-11-21 11:25:43 +13:00
curtin-events.json Fix curtin block comments in example events. 2018-06-08 10:54:28 -04:00
existing-partitions.json add existing partitions sample data 2019-05-30 15:10:54 +12:00
imsm.json add examples/imsm.json 2021-07-07 08:40:33 +12:00
install-sources.yaml sources: add sample source catalog 2021-10-08 13:02:55 -06:00
lsb-release-focal Only show UA screen if running on LTS release 2021-12-16 11:06:09 +01:00
lsb-release-impish Only show UA screen if running on LTS release 2021-12-16 11:06:09 +01:00
many-nics-and-disks.json Cleanup example data 2021-06-02 14:54:43 -06:00
multipath.json Add multipath machine config 2019-10-08 15:40:50 +01:00
mwhudson.json add sample data with wifi 2021-06-09 11:07:22 +12:00
prefill-system-setup-complete.yaml Sample files for testing 2021-10-28 14:16:28 -03:00
prefill-system-setup-missing-identity.yaml Sample files for testing 2021-10-28 14:16:28 -03:00
prefill-system-setup-missing-locale.yaml Sample files for testing 2021-10-28 14:16:28 -03:00
prefill-system-setup-missing-realname.yaml Sample files for testing 2021-10-28 14:16:28 -03:00
prefill-system-setup-missing-username.yaml Sample files for testing 2021-10-28 14:16:28 -03:00
prefill-system-setup-missing-welcome.yaml Sample files for testing 2021-10-28 14:16:28 -03:00
simple.json add existing partitions sample data 2019-05-30 15:10:54 +12:00
uaclient-status-expired.json ubuntu-pro: add subscription info in response to /ubuntu_pro/check_token 2022-06-30 16:31:56 +02:00
uaclient-status-valid.json ubuntu-pro: add subscription info in response to /ubuntu_pro/check_token 2022-06-30 16:31:56 +02:00
ubuntu-and-free-space.json examples: add disk with free space at end 2022-02-28 16:01:49 -07:00
virtio.json Cleanup example data 2021-06-02 14:54:43 -06:00
win10-along-ubuntu.json examples: add sample with size info 2022-05-31 09:09:33 -06:00
win10.json examples: add os-prober to win10 2021-12-07 11:46:28 -07:00