Commit Graph

4224 Commits

Author SHA1 Message Date
Dan Bungert 06a2626db8
Merge pull request #1093 from dbungert/lp-1946668
filesystem: fix lack of confirm
2021-10-11 13:32:36 -06:00
Dan Bungert 63eeb20e8f filesystem: fix lack of confirm
LP: #1946668
2021-10-11 13:11:30 -06:00
Didier Roche 02e602354d
Merge pull request #1090 from canonical/wsl_oobe_setup_user
WSL OOBE - setup users with wsl.conf
2021-10-11 09:42:03 +02:00
Didier Roche deab1b0859
Merge pull request #1091 from canonical/wsl_oobe_autoinstall
WSL OOBE - properly setup autoinstall
2021-10-11 09:34:59 +02:00
Patrick Wu 271b72b41a
system_setup: setup user with wsl.conf 2021-10-11 15:33:46 +08:00
Patrick Wu 7ae8e108a6
system_setup: include full autoinstall system 2021-10-11 10:20:18 +08:00
Michael Hudson-Doyle 206b7ae678
Merge pull request #1092 from dbungert/source-catalog-tests
sources: add sample source catalog
2021-10-11 12:09:25 +13:00
Dan Bungert a9bf5e004b sources: add sample source catalog
* Add sample source catalog from impish iso
* Show in dryrun
* Use in one of the runtests invocations (but not really tested yet)
2021-10-08 13:02:55 -06:00
Didier Roche 031256c771
Merge pull request #1084 from canonical/wsl_oobe_conf_calls_tests
DEENG-82 - Compare in runtest.sh the configuration set to `.subiquity/wsl.conf` and other generated files.
2021-10-08 15:07:18 +02:00
Patrick Wu 07b0407815
system_setup: refactor the testing system
1. updating testing system with the proper autoinstall schema
2. reconf mode testing included
2021-10-08 20:49:06 +08:00
Didier Roche 8cf0b5350f
Merge pull request #1089 from canonical/wsl_oobe_conf_fixes
WSL OOBE - several fixes that should be merged before DEENG-82
2021-10-08 11:30:57 +02:00
Patrick Wu 5879b41e48
system_setup: several fixes that should be merge before DEENG-82
1. fix a wrong type information
2. fix some configuration error when updating information
2021-10-08 16:41:28 +08:00
Michael Hudson-Doyle 66021ef6e2
Merge pull request #1086 from mwhudson/source-answers
fix SourceController.run_answers
2021-10-08 11:20:49 +13:00
Michael Hudson-Doyle 4e3b7610ee
Merge pull request #1087 from dbungert/core20-ssh
ssh: fix PYTHONPATH
2021-10-08 11:20:34 +13:00
Dan Bungert 5b425b2ea0 ssh: fix PYTHONPATH 2021-10-07 15:57:37 -06:00
Michael Hudson-Doyle 26d15adcdf fix SourceController.run_answers
for https://bugs.launchpad.net/subiquity/+bug/1946398
2021-10-08 10:34:31 +13:00
Didier Roche 58a78c0506
Merge pull request #1074 from canonical/wsl_oobe_conf_calls_tmp_files
DEENG-40 - Write wsl.conf and other files in dry-run mode to .subiquity/
2021-10-07 10:44:33 +02:00
Patrick Wu 1c111c764c
system_setup: write files to .subiquity when dryrun 2021-10-07 16:25:07 +08:00
Didier Roche e367e7b4b1
Merge pull request #1066 from canonical/wsl_oobe_conf_calls
DEENG-38/DEENG-39 - Moving to WSL Configuration and remove old command call
2021-10-07 09:35:02 +02:00
Dan Bungert 18f04d1172 storage/v2: more explicit machine config init
Use a context manager and an explicit machine config arg per test to
help clarify the background machine assumptions.

Restructure tests for the above, and to make them more targeted on a
single idea per test.
2021-10-06 18:47:58 -06:00
Dan Bungert 5203b1dcd0 storage/v2: annotations -> attr Factory 2021-10-06 18:47:38 -06:00
Dan Bungert 57148ee8d4 storage/v2: edit reuse existing format/mount value 2021-10-06 18:45:14 -06:00
Dan Bungert 7d80e8cc83 storage/v2: allow add without mount point 2021-10-06 18:45:14 -06:00
Dan Bungert af2de09c68 storage/v2: show todos in response
Subiquity TUI has access to the full model class and can easily answer
questions that the Server normally has info for, such as if "/" has been
mounted on one of the target filesystems or if we have boot setup.
Expose that information in the v2 response.
2021-10-06 18:45:14 -06:00
Dan Bungert eb365c1292 apitest: use raise_for_status 2021-10-06 18:44:22 -06:00
Dan Bungert 91487713fa storage/v2: test cleanup 2021-10-06 18:44:22 -06:00
Dan Bungert 8917d2b693 storage/v2: enforce some partition rules
* add some exceptions on likely desired behaviors that are not yet
  implemented, skip the weird ones
* misc cleanup also
2021-10-06 18:44:22 -06:00
Dan Bungert e21b03fd05 storage/v2: list limitations on add/edit/delete 2021-10-06 18:44:22 -06:00
Dan Bungert 1362f0aab0 storage/v2: return config on POST 2021-10-06 18:44:22 -06:00
Dan Bungert 4b93b47ccc storage/v2: add_boot_partition 2021-10-06 18:44:22 -06:00
Dan Bungert 18de910019 storage/v2: report ptable 2021-10-06 18:44:22 -06:00
Dan Bungert 576c2e3025 storage/v2: disk preserve also 2021-10-06 18:44:22 -06:00
Dan Bungert b820861c59 storage/v2: allow preserve=null for caller 2021-10-06 18:44:22 -06:00
Dan Bungert e630995aa1 storage/v2: report grub_device 2021-10-06 18:44:22 -06:00
Dan Bungert 9bee715156 storage/v2: show disk path 2021-10-06 18:44:22 -06:00
Dan Bungert b6ed0595ef storage/v2: tests for edit in place 2021-10-06 18:44:22 -06:00
Dan Bungert ce89e99a64 storage/v2: provide wipe info 2021-10-06 18:44:22 -06:00
Dan Bungert ddbdbb869f storage/v2: reuse existing partitions
Add test for flow of reusing existing partitions.  Certain operations
are allowed, such as formatting and using an existing partition, or
mounting a partition without formatting it.  Creating new in free space
is off limits, as is deleting a partition (even if it is just about to
be added again).
2021-10-06 18:44:22 -06:00
Dan Bungert cf31bf9606 storage/v2: less invasive edit partition 2021-10-06 18:44:22 -06:00
Dan Bungert 1d2aa890ad delete_partition: allow when disk preserve False
If disk.preserve is false, a delete partition may proceed.
If we're actively removing partitions from a disk before clearing it,
that's fine as well even though the preserve bit may yet be True.
2021-10-06 18:44:22 -06:00
Dan Bungert 6d5e9d047f storage/v2: add preserve 2021-10-06 18:44:22 -06:00
Dan Bungert 022724b694 storage/v2: add free_for_partitions at DISK level
This is the size, adjusted downward for GPT overhead and space consumed
by partitions.
2021-10-06 18:44:22 -06:00
Dan Bungert 3eaecb69c0 storage/v2: testing, grub 2021-10-06 18:44:22 -06:00
Dan Bungert 7313ca3e9d storage/v2: test cleanup 2021-10-06 18:44:22 -06:00
Dan Bungert 81870995ab storage/v2: remove most V2 types
With the ability to send items with default values, we can simplify the
calling API and don't need to split out distinct types.
2021-10-06 18:44:22 -06:00
Dan Bungert aa10897802 storage/v2: api test cases for deserialize fixes 2021-10-06 18:44:22 -06:00
Dan Bungert 3b6b89c5d9 storage/v2: create api test 2021-10-06 18:44:22 -06:00
Dan Bungert 92500bf8c9 storage/v2: start using -1 for 'rest of disk' 2021-10-06 18:44:22 -06:00
Dan Bungert 69873d8ab2 storage/v2: test cleanup 2021-10-06 18:44:22 -06:00
Dan Bungert 7f22e91cb3 storage/v2: add api test 2021-10-06 18:44:22 -06:00