Carlos Nihelton
7179bfb4fc
Sample files for testing
...
Those files simulate the information generated by WSL launcher.
2021-10-28 14:16:28 -03:00
Patrick Wu
ec04a6833a
system_setup: shutdown/reboot tests
2021-10-18 17:15:45 +08: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
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
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
Patrick Wu
c934268813
system_setup: changes and fixes
...
1. rebase with main and update autoinstall-system-setup.yml
2. provide a more unified indent style
3. update get_userandgroups() to the dropped one
4. fix the problematic os action
5. simply asignments
6. assign default_loader a default value
7. provide a type-to-file dict in wsl_conf
8. provide stderr info when providing error in creating user
9. update schema and example files
2021-10-06 22:13:15 +08:00
Patrick Wu
1a7274dbba
system_setup: unify api names and simply WSLconfig class into function
2021-10-06 22:13:15 +08:00
Patrick Wu
225cb1bd37
system_setup: fixes for after rebasing
...
1. add extra logs
2. improve the answers file
3. await the self.configured in wslconf API
2021-10-06 22:13:15 +08:00
Jean-Baptiste Lallement
4966173d6c
Test system setup autoinstall
...
It also adds an argument --ignore-tz to the schema comparison test to
not fail on system where the schema has no TZ like WSL.
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-28 09:32:39 +02:00
Dan Bungert
3de314a64f
fixup: snap & autoinstall
2021-09-22 17:45:58 -06:00
Jean-Baptiste Lallement
ab161250e1
Removed the progress view.
...
On non systemd systems (ie WSL) the progress view is always empty. Thus
this view is removed and the summary (formerly overview) view becomes
the last page of the setup with the reboot button. This button is
displayed dynamically when setup is complete.
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-01 19:06:50 +02:00
Jean-Baptiste Lallement
3044a1fc11
Update answer file with renamed controllers
...
WSL configuration controllers have been renamed, the answer file must be
updated accordingly
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-08-31 15:52:03 +02:00
Jean-Baptiste Lallement
b0299f255f
Added integration test for WSL
...
This tests covers the configuration of WSL on first boot.
2021-08-31 15:52:03 +02:00
Dan Bungert
0aa5e91670
Add probert output for win10 & bitlocker
2021-08-02 15:04:07 -06:00
Dan Bungert
c79aa602dc
Proper fix for setting timezone inappropriately in dryrun
...
Reenable integration test for set of timezone.
Don't set it while in dryrun.
2021-07-15 10:49:32 -06:00
Dan Bungert
4ed4e51a2e
Workaround dryrun test actually setting timezone
...
Until a proper fix can be finished, remove the set of timezone from the
integration tests.
2021-07-14 19:02:42 -06:00
Dan Bungert
40945f1823
TimeZone: autoinstall and API (FR-1184) ( #986 )
...
* TimeZone: autoinstall and API
Add support for Get/Set timezone methods. Get means that we inquire
with GeoIP as to which timezone is suggested. Non-availability of
GeoIP, or a previous explicit Set, means that we return the system
timezone. Set of timezone by Post results in set of the live system
timzeone, and queuing a set of the target system by way of cloud-init.
* Add clarifying comment about _request.
2021-07-13 06:25:03 -06:00
Michael Hudson-Doyle
916ee7516e
add an imsm integration test
2021-07-07 08:40:33 +12:00
Michael Hudson-Doyle
6be1289933
add examples/imsm.json
2021-07-07 08:40:33 +12:00
Michael Hudson-Doyle
d108d06aa8
add sample data with wifi
2021-06-09 11:07:22 +12:00
Dan Bungert
21058464fd
make_cloudconfig - start moving cloud config generation to models ( #975 )
...
Add make_cloudconfig as a function that models should offer that allows
for generation of the cloud-config snippet.
Move snaplist and locale to this mechanism.
Add a test for snaplist output.
2021-06-08 16:54:29 -06:00
Dan Bungert
2da973579e
Cleanup example data
...
These examples were crashing dryrun if supplied as a machineconfig due
to the missing blockdev.
2021-06-02 14:54:43 -06:00
Michael Hudson-Doyle
1da1ead19c
add a integation test for non-rich mode
2021-05-04 12:44:41 +12:00
Michael Hudson-Doyle
3b60666495
Merge pull request #925 from mwhudson/lp-1885644-again
...
add all documented fields to filesystem model classes
2021-04-12 11:24:23 +12:00
Michael Hudson-Doyle
5dbd872919
add test of mount options being propagated
2021-04-06 09:16:55 +12:00
Dan Bungert
a0e2e244bd
add setting policy for post-install updates via autoinstall ( #920 )
...
* Add element updates (non-UI)
This can be controlled with autoinstall
updates: security or all
Also an API for controlling this:
curl --silent --unix-socket .subiquity/socket a/updates ->
"security"
curl -d '"all"' --unix-socket .subiquity/socket a/updates
* Automated tests - log grep for default/none/all states
* Enforce possible values on Updates controller
Route all the various get/set thru 2 common functions.
Validate incoming data.
2021-03-31 13:57:53 -06:00
Michael Hudson-Doyle
4cdfe469e7
run error commands on failure
2020-12-18 14:42:01 +13:00
Michael Hudson-Doyle
edc43ff811
add a minimal server process
...
run it automatically in dry-run mode
2020-09-22 14:43:26 +12:00
Foster "Forst" Snowhill
069e870137
examples/autoinstall-interactive: remove duplicate "snaps" section
2020-08-23 14:28:26 +02:00
Michael Hudson-Doyle
b8c9ca2484
add mirror to examples/autoinstall.yaml
2020-06-12 15:31:15 +12:00
Michael Hudson-Doyle
3c98f68fcf
use a real locale in examples/autoinstall.yaml
2020-05-21 10:49:42 +12:00
Michael Hudson-Doyle
ba106bbbed
tests
2020-05-05 23:05:59 +12:00
Michael Hudson-Doyle
86376a4b78
be more intelligent about waiting for nics to get dhcp address when no autoinstall config is provided
2020-05-04 19:39:08 +12:00
Michael Hudson-Doyle
4891d76aca
actually write the netplan from the autoinstall config to the target system
...
I got lost in a forest of similarly named methods :(
2020-05-04 19:37:43 +12:00
Michael Hudson-Doyle
81b459cb99
make spare_devices optional in autoinstall config
2020-05-04 14:18:42 +12:00
Michael Hudson-Doyle
8a84e470c5
make sure the size of a partition gets set to int
2020-05-04 14:16:03 +12:00
Michael Hudson-Doyle
abc64fb5f2
do not force double "network" keys in autoinstall config
...
I obviously didn't test this very hard before release :/
2020-04-29 19:46:17 +12:00
Michael Hudson-Doyle
1ba62ec1cc
make sure late-commands actually run :(
2020-04-22 17:11:25 +12:00
Michael Hudson-Doyle
0d51d66a57
rename MAKE_BOOT action to TOGGLE_BOOT
2020-04-21 10:51:00 +12:00
Michael Hudson-Doyle
670c9c838a
add test for locale: in autoinstall file
2020-04-20 20:34:08 +12:00
Michael Hudson-Doyle
6ee32f4e19
have asking for confirmation cancel showing progress
...
otherwise the confiration dialog appears for 0.1s and then disappears, leaving the user stranded
2020-04-20 19:38:31 +12:00
Michael Hudson-Doyle
18e4d977e9
fix autoinstall refresh code to (a) match docs (b) work
2020-04-19 22:48:27 +12:00
Michael Hudson-Doyle
e91f8bbf89
fix for omitting identity section when passing user-data
2020-04-19 21:44:09 +12:00
Michael Hudson-Doyle
96a6dfd010
add integration-style test for reusing an existing partitions
2020-04-14 09:50:56 +12:00
Michael Hudson-Doyle
22d84fb4cc
fix some merge conflict resolution damage
2020-04-02 10:26:08 +13:00
Michael Hudson-Doyle
c1c33dee03
add a simple integration test for autoinstall
2020-04-02 10:22:08 +13:00
Michael Hudson-Doyle
c1855fe6d1
support packages, debconf-selections keys in autoinstall
2020-04-02 10:22:05 +13:00
Dimitri John Ledkov
6a091fcc44
Merge pull request #665 from mwhudson/cmdlist-checking
...
tweak autoinstall command lists
2020-04-01 22:13:10 +01:00