-
Notifications
You must be signed in to change notification settings - Fork 589
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/nested/manual/hybrid-remodel: use fakestore
- Loading branch information
1 parent
85b21c6
commit 400dc31
Showing
6 changed files
with
269 additions
and
25 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
tests/lib/assertions/developer1-22-classic-dangerous-rev1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"type": "model", | ||
"authority-id": "developer1", | ||
"series": "16", | ||
"brand-id": "developer1", | ||
"model": "developer1-22-classic-dangerous", | ||
"architecture": "amd64", | ||
"timestamp": "2022-09-06T22:00:00+00:00", | ||
"grade": "dangerous", | ||
"base": "core22", | ||
"classic": "true", | ||
"distribution": "ubuntu", | ||
"revision": "1", | ||
"serial-authority": [ | ||
"generic" | ||
], | ||
"snaps": [ | ||
{ | ||
"default-channel": "22/edge", | ||
"id": "UqFziVZDHLSyO3TqSWgNBoAdHbLI4dAH", | ||
"name": "pc", | ||
"type": "gadget" | ||
}, | ||
{ | ||
"default-channel": "22-oem/stable", | ||
"id": "pYVQrBcKmBa0mZ4CCN7ExT6jH8rY1hza", | ||
"name": "pc-kernel", | ||
"type": "kernel" | ||
}, | ||
{ | ||
"default-channel": "latest/edge", | ||
"id": "amcUKQILKXHHTlmSa7NMdnXSx02dNeeT", | ||
"name": "core22", | ||
"type": "base" | ||
}, | ||
{ | ||
"default-channel": "latest/stable", | ||
"id": "PMrrV4ml8uWuEUDBT8dSGnKUYbevVhc4", | ||
"name": "snapd", | ||
"type": "snapd" | ||
}, | ||
{ | ||
"default-channel": "latest/edge", | ||
"id": "vFTrGWyktbEDwuYJjdsZykV270mqcNz8", | ||
"name": "jq-core22", | ||
"type": "app" | ||
} | ||
] | ||
} |
49 changes: 49 additions & 0 deletions
49
tests/lib/assertions/developer1-24-classic-dangerous-rev1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"type": "model", | ||
"authority-id": "developer1", | ||
"series": "16", | ||
"brand-id": "developer1", | ||
"model": "developer1-24-classic-dangerous", | ||
"architecture": "amd64", | ||
"timestamp": "2024-04-09T22:00:00+00:00", | ||
"grade": "dangerous", | ||
"base": "core24", | ||
"classic": "true", | ||
"distribution": "ubuntu", | ||
"revision": "1", | ||
"serial-authority": [ | ||
"generic" | ||
], | ||
"snaps": [ | ||
{ | ||
"default-channel": "24/edge", | ||
"id": "UqFziVZDHLSyO3TqSWgNBoAdHbLI4dAH", | ||
"name": "pc", | ||
"type": "gadget" | ||
}, | ||
{ | ||
"default-channel": "24-oem/stable", | ||
"id": "pYVQrBcKmBa0mZ4CCN7ExT6jH8rY1hza", | ||
"name": "pc-kernel", | ||
"type": "kernel" | ||
}, | ||
{ | ||
"default-channel": "latest/edge", | ||
"id": "dwTAh7MZZ01zyriOZErqd1JynQLiOGvM", | ||
"name": "core24", | ||
"type": "base" | ||
}, | ||
{ | ||
"default-channel": "latest/stable", | ||
"id": "PMrrV4ml8uWuEUDBT8dSGnKUYbevVhc4", | ||
"name": "snapd", | ||
"type": "snapd" | ||
}, | ||
{ | ||
"default-channel": "latest/stable", | ||
"id": "zBAzEImJzOAoGxmoG5o6Tl6ELZXMeUlt", | ||
"name": "test-snapd-jq-core24", | ||
"type": "app" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
# 10.0.2.2 is the host from a nested VM | ||
snapctl set device-service.url=http://10.0.2.2:11029 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
rootfs="$1" | ||
|
||
mkdir -p "${rootfs}/etc/systemd/system/snapd.service.d" | ||
cat <<EOF >"${rootfs}/etc/systemd/system/snapd.service.d/snapd-override.conf" | ||
[Service] | ||
Environment=SNAPPY_FORCE_API_URL=http://10.0.2.2:11028 | ||
Environment=SNAPD_DEBUG=1 | ||
Environment=SNAPPY_USE_STAGING_STORE=0 | ||
Environment=SNAPPY_TESTING=1 | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters