Carlos Nihelton
37758047f2
Improved control over lang packs on integration
...
- Dryrun should never return empty packages list unless under failure.
- runtests check if the mimic-installed files match the proper language.
2021-11-22 12:16:01 -03:00
Carlos Nihelton
1e6c4472a5
Complementary to 1127 on integration side
2021-11-17 13:26:41 -03:00
Didier Roche
dde0a6d53c
Merge pull request #1116 from CarlosNihelton/ft-wsl-locale-deeng-31
...
System locale manipulation wired into Subiquity.
2021-11-16 08:43:51 +01:00
Michael Hudson-Doyle
fe9caa4715
Merge pull request #1121 from CarlosNihelton/ft-test-lxd-local
...
Enables preserving existing container instances.
2021-11-10 12:46:04 +13:00
Carlos Nihelton
d944d48d5a
Less likely to conflict with existing containers.
...
By renaming the test images with a `subiquity-` prefix.
2021-11-09 18:20:41 -03:00
Carlos Nihelton
7eee081405
Updated runtests to look for locale files
2021-11-09 18:16:10 -03:00
Carlos Nihelton
e88eb7334f
Avoiding grep
2021-11-09 09:42:57 -03:00
Dan Bungert
e31a3c31ac
kvm-test: fix slimy invocation
...
We can't delete the snap file created by quick-test because we don't
have the path to it. The with statement makes no sense.
2021-11-08 16:44:35 -07:00
Carlos Nihelton
8f4a6927bb
Enables preserving existing container instances.
...
- Useful for develop env.
- Mimics the CI while avoiding downloading images all the time.
- Instance names change from 'tester' to the Ubuntu release adjective.
- lxc will only download if there is no local instance with that name.
- Useful for preserving matrix build instances.
2021-11-08 19:20:44 -03:00
Carlos Nihelton
6be4aea138
l-s-c as dep on Makefile, avoid raising exceptions
...
- And clear .subiquity/var/cache
2021-11-05 18:09:15 -03:00
Carlos Nihelton
5f9f2122ce
System locale manipulation wired into Subiquity.
...
- We don't have cloud-init in WSL.
- Subiquity must perform any actions to support the choosen locale.
- l-s-c package added as dependency.
2021-11-05 17:29:33 -03:00
Michael Hudson-Doyle
ce94726a43
kvm-test: do not boot via -kernel/-initrd unless needed
2021-11-05 16:05:22 +13:00
Michael Hudson-Doyle
b6e4181fe7
kvm-test: fix a typo
2021-11-05 16:05:00 +13:00
Michael Hudson-Doyle
c3727ac506
kvm-test: fix assumption around snap name quick-test-this-branch.sh creates
2021-11-05 16:04:51 +13:00
Michael Hudson-Doyle
8b7662b0a3
kvm-test: add a --snap argument to inject a specific snap
2021-11-05 16:04:18 +13:00
Michael Hudson-Doyle
277e1fe173
kvm-test: add a --basenap argument
...
this is like --quick but updates a passed snap rather than the one
already in the iso
2021-11-05 16:03:41 +13:00
Dan Bungert
a67b9d18dc
scripts: add kvm-test
...
Updated version of the kvm-test script shown previously.
2021-11-04 17:32:52 -06:00
Michael Hudson-Doyle
4fa0e22b58
create a helper class for invoking curtin
2021-11-03 15:28:26 +13:00
Didier Roche
8b996f9ba5
Merge pull request #1100 from canonical/wsl_oobe_adduser_tests
...
WSL OOBE: add `useradd` tests
2021-10-20 09:33:46 +02:00
Patrick Wu
a3fce9f9c2
system_setup: add useradd tests
2021-10-20 00:27:10 +08:00
Dan Bungert
8da3df2cd2
schema: remove timezones, and tz schema check
2021-10-19 10:06:01 -06:00
Patrick Wu
ec04a6833a
system_setup: shutdown/reboot tests
2021-10-18 17:15:45 +08:00
Dan Bungert
39b3394047
runtests: fail on detected crash
...
* exit if a crash is detected
* intentionally not cleanup on exit, to make it easier to analyze
2021-10-12 17:17:05 -06: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
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
Dan Bungert
e14febd709
Merge pull request #1082 from dbungert/pytest-3
...
unittest: use pytest-3
2021-10-05 17:42:22 -06:00
Dan Bungert
b757b0f972
unittest: use pytest-3
...
pytest-3 lets us set exclude directories, which is helpful with the
desired API testing to seperate them from 'unittest discover' so that we
can keep unit test runtime short.
2021-10-05 17:36:54 -06:00
Dan Bungert
8092b3405b
slimy: python 3.8
2021-10-05 12:27:47 -06:00
Jean-Baptiste Lallement
4a2f2af268
Run WSL tests on 20.04+
...
The behaviour of python regarding asynchronous packages changed between
18.04 and 20.04+. OOBE is only supported on 20.04 and higher and there
is no point in making the WSL specific code compatible with ealier
releases than 20.04
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-28 09:32:39 +02: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
fheimes
f6154d9129
Update zdev-generate.py
...
adjusted whitespaces
2021-09-25 20:09:54 +02:00
fheimes
913436c77a
Update zdev-generate.py
...
Adding "--quiet" as additional option to "lszdev" - here more for the reason of completeness and for consistency reasons.
The relevant change for solving LP#1944516 is the change in subiquity/server/controllers/zdev.py
2021-09-24 20:01:31 +02:00
Dan Bungert
525060be16
runtests: misc cleanup
...
* remove a stray space
* remove an extra call to check-yaml-fields.py, which can accept a list
of directives
* remove an entire redundant autoinstall run that I added as part of
bitlocker work but isn't actually verified in any way other than not
timing out
2021-09-20 16:46:23 -06: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
Michael Hudson-Doyle
d1cc1cf593
make the snaps produced by slimy-update-snap.sh pass review
...
I mean we /probably/ shouldn't be using the snaps this makes for
anything serious but it can be useful for testing emergency fixes...
2021-08-24 11:43:24 +12:00
Michael Hudson-Doyle
a29d14a3f1
unset GIT_DIR in update-part.py
...
Otherwise very confusing things happen (it turns out GIT_DIR is set when
running an exec command during rebase).
2021-08-19 17:12:16 +12:00
Dan Bungert
ee38a4506f
deps: +build-essential
2021-08-10 13:14:08 -06:00
Dan Bungert
ffc4bbde0a
runtests support - first API test, has_bitlocker
2021-08-09 10:41:54 -06:00
Michael Hudson-Doyle
88384f0a98
have slimy-update-snap.sh update curtin in the snap too
...
Also tweak scripts/update-part.py to work better when switching
repositories.
2021-08-05 10:46:39 +12:00
Michael Hudson-Doyle
9e0f11c02e
update quick-test-this-branch.sh too
2021-07-21 10:42:25 +12:00
Michael Hudson-Doyle
9a4871f416
use livefs-editor to make customized isos
...
a while ago I rewrote inject-subiquity-snap in python, generalized it
and put it at https://github.com/mwhudson/livefs-editor . TBH, it's
always been better than the shell version but now there's a reason to
switch to it: the impish live server ISO use layers, which the current
shell scripts do not support and livefs-editor now does.
2021-07-19 14:44:27 +12: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
Michael Hudson-Doyle
545d77eeab
Merge pull request #1006 from mwhudson/lp-1936248
...
fix "make check" on uefi systems
2021-07-15 13:18:46 +12:00