Dan Bungert
74e118d735
snapcraft: save env vars
2022-06-13 14:02:19 -06:00
Dan Bungert
a44939e402
Merge pull request #1309 from dbungert/gap-utils
...
gap: several utilities
2022-06-13 13:58:49 -06:00
Dan Bungert
1aa1ee5cb0
gaps: add gaps.at_offset
2022-06-13 11:29:18 -06:00
Dan Bungert
cb2d184ef2
gaps: add gap.split
2022-06-13 11:29:17 -06:00
Olivier Gayot
7f4a72a12f
Merge pull request #1311 from ogayot/pro-services-auto-enabled
...
ubuntu-pro: add auto_enabled property for services
2022-06-13 17:45:17 +02:00
Olivier Gayot
d67c71e0ba
ubuntu-pro: add auto_enabled property for services
...
The JSON returned by uaclient for a status request contains the
auto_enabled property for each service. This property tells whether a
given service is enabled automatically when `ua attach` is done. We will
need this information going forward so we now include it in the success
response to /ubuntu_pro/check_token:
{
"status": "VALID_TOKEN",
"services": [
{
"name": "esm-infra",
"description": "UA Infra: Extended Security Maintenance (ESM)",
"auto_enabled": true
},
{
"name": "fips",
"description": "NIST-certified core packages",
"auto_enabled": false
}
]
}
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-06-13 16:01:39 +02:00
Dan Bungert
6933e55843
gaps: test cleanup
2022-06-10 15:45:26 -06:00
Carlos Nihelton
039f5d45c0
Merge pull request #1306 from CarlosNihelton/wsl-tcp-deeng-284
...
Enables TCPSite for WSL
2022-06-10 12:50:52 -03:00
Dan Bungert
e6cfd6b592
Merge pull request #1308 from dbungert/fix-boot-plan-gap
...
boot: update plans to use a better Gap
2022-06-10 09:12:10 -06:00
Dan Bungert
03f4760e4c
boot: update plans to use a better Gap
...
The Gap object created in boot plans had size == 0, which can cause
problems if create_partition() actually looks at this size.
2022-06-09 16:53:40 -06:00
Carlos Nihelton
0263924386
Adds testing for IPv6.
...
Currently IPv4 is hardcoded, meaning IPv6 should not work even for
the loopback interface.
2022-06-08 12:17:23 -03:00
Carlos Nihelton
4c9a99e9ce
Asserts that only loopback connections are allowed.
2022-06-08 12:07:58 -03:00
Carlos Nihelton
858241956f
Add a simple test for TCP connectivity.
2022-06-07 14:53:29 -03:00
Carlos Nihelton
7e94f78c0a
Enhance comment and fix typo on it.
2022-06-07 13:27:15 -03:00
Carlos Nihelton
061efddec2
Missed linter warnings.
2022-06-06 17:57:00 -03:00
Carlos Nihelton
eff558c8ad
Enables TCPSite for WSL
...
It listens on 127.0.0.1 only.
2022-06-06 17:42:49 -03:00
Dan Bungert
a9ac5a5fb2
Merge pull request #1305 from CarlosNihelton/start-site-deeng-246
...
Enables variants to override site creation and startup
2022-06-02 12:52:41 -06:00
Carlos Nihelton
d69c2eee82
Enables variants to override creation and ...
...
... startup by exposing the method `start_site`.
2022-06-02 13:15:50 -03:00
Michael Hudson-Doyle
05f057a4e7
Merge pull request #1304 from mwhudson/storage-version-kernel-command-line
...
take storage version from kernel command line
2022-06-02 20:00:50 +12:00
Michael Hudson-Doyle
736efcb11d
take default storage-version from kernel command line
2022-06-02 08:56:40 +12:00
Michael Hudson-Doyle
3d1c8fd6cf
convert SubiquityServer.kernel_params to an overengineered class
2022-06-02 08:56:32 +12:00
Dan Bungert
3e0c91e34b
Merge pull request #1302 from dbungert/report-size-mins
...
filesystem: report estimated partition size minimums
2022-05-31 17:00:18 -06:00
Dan Bungert
69b765efd5
storage/v2: report aligned min size value
2022-05-31 16:34:17 -06:00
Dan Bungert
4d2d6455bf
test/api: estimated_min
2022-05-31 09:09:33 -06:00
Dan Bungert
b999cbc087
test/api: test_resize cleanup
2022-05-31 09:09:33 -06:00
Dan Bungert
498d220314
test/api: add MachineConfig class
...
Make it easier to edit machine configs on the fly for test.
2022-05-31 09:09:33 -06:00
Dan Bungert
73853e5769
snapcraft: rev probert
2022-05-31 09:09:33 -06:00
Dan Bungert
40b2f3267b
storage/v2: report min part size
2022-05-31 09:09:33 -06:00
Dan Bungert
b298caf83a
examples: add sample with size info
2022-05-31 09:09:33 -06:00
Dan Bungert
021686d7d9
probert: ask for sizing info
2022-05-31 09:09:33 -06:00
Dan Bungert
0b1c87d460
filesystem: fix and futureproof probert unit test
2022-05-31 09:09:33 -06:00
Didier Roche
95bee59dee
Merge pull request #1303 from CarlosNihelton/wsl-locgen-speedup
...
[system_setup] Allow skipping locale-gen command
2022-05-31 14:08:07 +02:00
Carlos Nihelton
5a8e2f2835
Allow skipping locale-gen command.
...
lang-packs post-install hook executes locale-gen.
For certain languages a matrix of locales is generated.
Re-running locale-gen regenerates not only the locale we wanted,
but the whole matrix, causing further delays.
We can save up to 40s (tested on my laptop) by skipping locale-gen if
apt succeeded.
Still useful to run it unconditionally i dry-run since apt won't execute
any post-install hook.
2022-05-31 08:22:41 -03:00
Olivier Gayot
ade6f828c9
Merge pull request #1301 from CarlosNihelton/wsl-help-messages
...
TUI Help/About message customisation point for variants
2022-05-31 09:58:35 +02:00
Dan Bungert
d6cbbda685
Merge pull request #1299 from dbungert/fs-probe-no-udev-loops
...
filesystem: fix udev infinite loop
2022-05-27 11:07:49 -06:00
Dan Bungert
27720a4c34
filesystem: fix udev infinite loop
...
If the probert probe triggers a udev event, we can loop forever.
Fixed by not restarting an active probe, which can lose information if
it appears mid-probe but that's better than an infinite loop.
2022-05-26 10:54:21 -06:00
Carlos Nihelton
87112ebecf
Sets TUI about help message on super init.
2022-05-26 07:37:35 -03:00
Carlos Nihelton
c6fedfb8e1
Set the about message on client initialization
...
Inherently better than being a public field to be set later.
Achieves a more declarative API.
2022-05-26 07:36:12 -03:00
Dan Bungert
77119a8e0b
SingleInstanceTask: add cancel_restart
...
cancel_restart is a mode for SingleInstanceTask that changes the
behavior when starting the task - if the task is already running, do not
cancel it to start another.
2022-05-25 10:25:00 -06:00
Dan Bungert
884f1c87ae
pubsub: fix test fragility
2022-05-24 13:36:02 -06:00
Carlos Nihelton
3c27982939
Programmatic manipulation of the lsb fields
...
For better message composition.
2022-05-24 14:25:34 -03:00
Carlos Nihelton
2adc001693
Customises WSL system_setup Help/About message.
2022-05-24 13:58:13 -03:00
Carlos Nihelton
cbb491bb91
Enables customisation of the Help/About message.
...
Variants can set a new message to customize the TUI to their intent.
2022-05-24 13:57:24 -03:00
Olivier Gayot
a97333bebb
Merge pull request #1298 from ogayot/FR-2269
...
geoip: move from requests to aiohttp again
2022-05-20 08:54:10 +02:00
Olivier Gayot
10af626767
geoip: move from requests to aiohttp again
...
python3-aiohttp has been fixed and released in focal-updates.
New Subiquity builds should not be affected by LP: #1969393 anymore.
This reverts commit 413cc87337
.
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-05-18 16:27:12 +02:00
Olivier Gayot
8d64d4d3ef
Merge pull request #1296 from CarlosNihelton/username-server-validation
...
Server-side username validation
2022-05-18 13:50:39 +02:00
Carlos Nihelton
6b3609ae3a
Fix typo "pytest-a(s)yncio"
2022-05-18 07:50:00 -03:00
Carlos Nihelton
13a23a4b46
Fix async test.
...
Test class inherits form IsolatedAsyncioTestCase to enable coroutines.
Event loop policy is reset on module teardown to avoid conflicting with
next tests.
2022-05-17 12:46:53 -03:00
Carlos Nihelton
e6a6f7a92b
Moved the aync validation logic into a mixin class
...
Intended to be combined with Editor widgets
Able to call async validation functions on focus leave.
2022-05-16 18:15:02 -03:00
Carlos Nihelton
df8b157ae8
Validation on focus leave.
...
Reduces the amount of async calls.
Challenging revalidation scheme.
2022-05-16 17:07:27 -03:00