74 Commits

Author SHA1 Message Date
Sergio Cazzolato
edad6be209 Move snaps.sh helper to snaps-state and remove not needed uses of snaps.sh
The change includes:
. Start using the tool snaps-state
. Remove includes for snaps.sh
. Cleanup snaps.sh helper
. Update snaps-state too to include repack with target dir
2021-06-02 23:14:45 -03:00
Sergio Cazzolato
07b94bf2ff Fix shell check errors 2021-04-15 15:20:14 -03:00
Sergio Cazzolato
e81fb86c1e Use op.paths tools instead of dirs.sh helper - part 1 2021-04-13 12:39:12 -03:00
Sergio Cazzolato
29aa7f4157 Updated restore phase of spread tests
Changes included:
 . removed lines used to delete files/dirs in $PWD
 . ordered the tests 1. prepare 2. restore 3.debug 4.execute
 . new lines added between phases
 . removed lines which make snap remove in restore

This is the first part of the change
2021-03-30 16:41:59 -03:00
Sergio Cazzolato
b95e50f3c6 use is-arch-linux instead of is-arch
This is because arch could be used for architecture
2020-12-03 17:20:57 -03:00
Sergio Cazzolato
7db34d5fa5 Use os.query tool instead of comparing the system var 2020-12-02 18:04:34 -03:00
Sergio Cazzolato
9be34ab482 Moving smoke test suite and some tests from main suite to snaps-state tool 2020-09-30 14:41:11 -03:00
Sergio Cazzolato
7ff0f23acc Moving test-snapd-tools snapd to test-snapd-sh 2019-12-04 14:32:01 -03:00
Maciej Borzecki
630e3e4225 tests/upgrade/basic: tweak comments
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2019-04-15 11:46:50 +02:00
Maciej Borzecki
96dec7e5b3 tests/upgrade/basic: restore SELinux context of /var/cache/fontconfig
The test installs an older version of snapd that may be missing proper context
transitions for /var/cache/fontconfig when created in the context of snapd
daemon (snappy_t). Avoid breaking tests that run after this one and restore the
context to whatever is the default.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2019-04-12 13:37:27 +02:00
Maciej Borzecki
5348363cbe tests/upgrade/basic: tweak comments
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2019-04-02 09:44:29 +02:00
Maciej Borzecki
7bac0d3dda tests/upgrade/basic: replace bare grep with MATCH
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2019-03-28 13:34:33 +01:00
Maciej Borzecki
ff858f16b5 tests/upgrade/basic: drop snap pack
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2019-03-28 10:48:36 +01:00
Maciej Borzecki
9ea0fa7ce6 tests/upgrade/basic: verify post-upgrade mount context on Fedora/CentOS
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2019-03-27 08:38:26 +01:00
Maciej Borzecki
9fb2c8e6b6 tests/upgrade/basic: add support for selinux mount context transition
We need to reboot in order to apply SELinux mount context specified in mount units.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2019-03-27 07:41:59 +01:00
Maciej Borzecki
061f1c6ba6 tests/upgrade/basic: extra push for CentOS
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2019-03-13 12:30:33 +01:00
Maciej Borzecki
64415a3d7b tests/upgrade/basic: enable CentOS
snapd can be installed from EPEL on CentOS

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2019-03-13 09:12:30 +01:00
Maciej Borzecki
70becf45e3 tests: more test tweaks for CentOS
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2018-11-20 08:49:21 +01:00
Maciej Borzecki
28a2209021 tests: shellchecks, final round
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2018-10-02 12:13:03 +02:00
Samuele Pedroni
4fc5814300 fix upgrade test on debian that still has an old snapd 2018-09-28 12:59:25 +02:00
Samuele Pedroni
b49ff9c066 adjust spread tests 2018-09-27 21:01:38 +02:00
Maciej Borzecki
7af93ba182 tests: disable/fix more tests for Amazon Linux 2
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2018-07-26 10:50:04 +02:00
Maciej Borzecki
6ff5c9838b tests/upgrade/basic: disable test on arch
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2018-04-05 12:29:20 +02:00
Maciej Borzecki
5178e16a98 tests/upgrade/basic: workaround Arch issues
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2018-04-05 12:29:20 +02:00
sergio-j-cazzolato
bdb312e37d Adding ubuntu-18.04-64 to google backend exec
Also snapd-selinux is just removed on fedora on the upgrade test. This
is done because on bionic when we remove all the packages together if
there is any package not installed, then no packages are removed.

Example:
https://paste.ubuntu.com/p/DsXFCvTGQP/
2018-02-28 10:17:41 -03:00