subiquity/scripts
Olivier Gayot 93f06eeb0f dry-run: add configuration object to control dry-run behavior
Oftentimes, we want to simulate a specific behavior of the application
when running in dry-run mode. To do so, we use either command line
parameters or environment variables.

This patch introduces a configuration object for dry-run executions
only. The object can be automatically loaded from a JSON file specified
via the --dry-run-config CLI argument.

Such a configuration object should help us cover way more test cases.
Going forward, I would like to use this object for things like:

 * drivers - to instruct Subiquity what third-party drivers it should
   suggest ; or if Subiquity should run ubuntu-drivers on the host
   instead.
 * ubuntu-pro - to specify the ua-contracts test environment URL - or
   predefined automatic replies for the server
 * to assume that /var/lib/snapd/seed/systems directory exists on the
   source (or not).
 * to specify the Ubuntu release that is returned by lsb_release ; can
   be used to test behavior on LTS vs non LTS releases.
 *
 * ...

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-11-25 15:49:01 +01:00
..
check-yaml-fields.py add test of mount options being propagated 2021-04-06 09:16:55 +12:00
inject-subiquity-snap.sh use livefs-editor to make customized isos 2021-07-19 14:44:27 +12:00
installdeps.sh aptdeps: move to external file 2022-03-04 10:49:23 -07:00
keyboard-scraper.sh scripts: add keyboard-scraper.sh 2022-07-29 13:01:18 -06:00
kvm-test.py kvm-test: allow to specify a cloud-init file not meant for autoinstall 2022-09-22 13:09:59 +02:00
make-edge-iso.sh use livefs-editor to make customized isos 2021-07-19 14:44:27 +12:00
make-kbd-info.py pre-process keyboard auto detection steps into API friendly format 2021-03-16 16:02:23 +13:00
make-language-lists put a full locale (language/location/codeset) in languagelist 2021-02-12 15:03:10 +13:00
pc105.py pre-process keyboard auto detection steps into API friendly format 2021-03-16 16:02:23 +13:00
quick-test-this-branch.sh update quick-test-this-branch.sh too 2021-07-21 10:42:25 +12:00
raid-size-tests.py changes suggested in review 2019-11-08 09:47:34 +13:00
replay-curtin-log.py update filesystem model object paths after curtin runs 2022-10-05 16:52:10 +13:00
runtests.sh dry-run: add configuration object to control dry-run behavior 2022-11-25 15:49:01 +01:00
slimy-update-snap.sh slimy: python 3.8 2021-10-05 12:27:47 -06:00
test-in-lxd.sh Less likely to conflict with existing containers. 2021-11-09 18:20:41 -03:00
test-system-setup-loopback-only.py integration: speed up check for listening interfaces in system_setup 2022-08-23 18:38:33 +02:00
test-this-branch.sh Make sure test-this-branch.sh exits if distro-info is not installed 2022-01-04 17:38:43 +01:00
update-part.py unset GIT_DIR in update-part.py 2021-08-19 17:12:16 +12:00
update-translations.sh i18n: add scripts to help with translation updates. 2020-05-06 13:22:13 +01:00
validate-autoinstall-user-data.py Add script to validate autoinstall data against JSON schema 2022-01-21 13:48:43 +01:00
validate-yaml.py call into snapd to set up encryption when required 2022-11-11 14:46:44 +13:00
yaml-normalize.py scripts: add yaml-normalize.py 2022-08-29 13:54:51 -06:00
zdev-generate.py Update zdev-generate.py 2021-09-25 20:09:54 +02:00