subiquity/examples
Olivier Gayot ec80a1cdee integration-tests: import SSH keys from LP instead of GH
As part of our integrations tests, we import mwhudson's public SSH
key(s) from GitHub. At the moment, however, the GitHub API is rate
limiting the number of queries from our CI.

Upon exceeding the rate limit, our HTTP queries are responded with a 403:

┌────────────────────────────────────────────────────────────────────────┐
│  Importing keys failed:                                                │
│                                                                        │
│  2023-01-08 23:43:40,562 ERROR GitHub REST API rate-limited this IP    │
│  address. See https://developer.github.com/v3/#rate-limiting .         │
│  status_code=403 user=mwhudson                                         │
└────────────────────────────────────────────────────────────────────────┘

Currently, upon pushing to GitHub, the CI runs the integrations tests
against 4 different Ubuntu images (focal, jammy, kinetic, lunar).

This ends up doing 4 SSH import queries at roughly the same time ; which
often exceeds the rate limit and makes some of the tests fail.

This patch makes integration tests import SSH keys from Launchpad
instead of GitHub. Maybe a better approach would be to mock the calls to
ssh-import-id in the CI instead.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-01-09 09:43:53 +01:00
..
postinst.d hooks: execute hook scripts as builtin late commands 2022-08-09 09:47:26 +02:00
snaps call into snapd to set up encryption when required 2022-11-11 14:46:44 +13: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 storage: use fields named passphrase for passphrases 2022-06-24 11:37:54 +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 Answers no longer relevant for wsl_setup 2022-12-16 13:28:11 +00:00
answers-system-setup-reconf.yaml Removed systemd from the UI 2022-04-07 10:55:30 +02:00
answers-tpm.yaml filesystem: mount snapd/seed/systems only if it exists 2022-11-25 15:50:01 +01:00
answers.yaml integration-tests: import SSH keys from LP instead of GH 2023-01-09 09:43:53 +01: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 Adding WSLSetupOptions API endpoint 2022-08-23 10:45:29 -03: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 examples: fix invalid user-data example since we now validate schema 2022-09-01 13:12:53 -06:00
autoinstall.yaml Rename UbuntuAdvantage -> UbuntuPro but keep autoinstall compat 2022-03-15 11:50:57 +01:00
curtin-events-curthooks.json install: invoke curtin multiple times with different stages 2022-08-11 09:16:06 +02:00
curtin-events-extract.json install: invoke curtin multiple times with different stages 2022-08-11 09:16:06 +02:00
curtin-events-fail.json install: invoke curtin multiple times with different stages 2022-08-11 09:16:06 +02:00
curtin-events-initial.json install: invoke curtin multiple times with different stages 2022-08-11 09:16:06 +02:00
curtin-events-partitioning.json install: invoke curtin multiple times with different stages 2022-08-11 09:16:06 +02:00
dr-config-magic-attach.yaml ubuntu-pro: add ability to run magic-attach locally in dry-run mode 2022-11-28 17:27:23 +01: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
lp-1986676-missing-osprober.json filesystem: fix kname for os prober 2022-08-25 17:01:33 -06:00
lp1999173-raid1.json examples: machine config for raid1 delete crash 2022-12-08 12:30:09 -07: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
mixed-sources.yaml mixed-catalog: rework description and name of entries 2022-12-06 15:08:00 +01: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 examples: make the 'simple' mc disk bigger 2022-07-21 08:52:42 -06:00
threebuntu-on-msdos.json examples: threebuntu-on-msdos 2022-07-11 18:17:19 -06:00
tpm-dr-config.yaml filesystem: mount snapd/seed/systems only if it exists 2022-11-25 15:50:01 +01:00
tpm-sources.yaml configure controllers tui does not support when installing desktop 2022-11-15 15:43:33 +13: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