79 Commits

Author SHA1 Message Date
Zygmunt Krynicki
9f92b223f5 tests: document upgrade/basic
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
2024-04-22 14:06:45 +02:00
Zygmunt Krynicki
098a240aa3 tests: fix typo: downloading
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
2024-04-22 14:06:45 +02:00
Sergio Cazzolato
d9dd2e2ffa tests: enable centos-9 (#11849)
* Initial changes to support centos-9

* Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..9b7b4e9bf1

9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support
7fe2087423 Add support for centos-9
64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer
7fe27d4aea Improve log analyzer utility
207536268e Merge pull request #19 from snapcore/new-spread-manager
2f2ff2e282 Update spread manager to support csv
33a44ca3be Merge branch 'main' into new-spread-manager
b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions
3250bbd885 Support expressions with comma separation
2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser
2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments
84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser
515770b3bf Add support for fedora-35
875c29b5ce Updated results with latest log-parser changes
d27f2bcdb7 Fix log-parser
b2cce1fcce fix wording
14d15e4fe4 Fixes for log-parser and changes for log analyzer
438d92d241 Log analyzer updated to support reexecute in all the scenarios
1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser
cc7ee488d1 Fix shellcheck
324b99e719 revert change in log-analyzer test
f746f40ebe Fix shellcheck
2d7dbbe1bd Fix spelling
728dd64c2c Last set of changes for log analizer tools
bf389dcd01 New fixes for log parses
6b2b56afc3 Fix another shellcheck
56163e170b Fix shellcheck
d96ab8094f Merge branch 'main' into new-spread-manager
60fb99f02f new dir task5
259a7e188c Fix spread test
e674234454 New spread-manager tool

git-subtree-dir: tests/lib/external/snapd-testing-tools
git-subtree-split: 9b7b4e9bf102d9520be02959b184ee09d4021ec7

* Adding centos-9 to workflow

* Skip centos-9 on some tests

* data/selinux: update the policy to allow snap to access openssl certificates

As observed in the spread tests:

type=AVC msg=audit(06/07/22 14:39:47.321:1164) : avc:  denied  { open } for
pid=47406 comm=snap path=/etc/pki/tls/openssl.cnf dev="sda2" ino=16781422
scontext=system_u:system_r:snappy_cli_t:s0 tcontext=system_u:object_r:cert_t:s0
tclass=file permissive=1

type=AVC msg=audit(06/07/22 14:39:47.321:1164) : avc:  denied  { read } for
pid=47406 comm=snap name=openssl.cnf dev="sda2" ino=16781422
scontext=system_u:system_r:snappy_cli_t:s0 tcontext=system_u:object_r:cert_t:s0
tclass=file permissive=1

type=AVC msg=audit(06/07/22 14:39:47.321:1164) : avc: denied { search } for
pid=47406 comm=snap name=pki dev="sda2" ino=50341780
scontext=system_u:system_r:snappy_cli_t:s0 tcontext=system_u:object_r:cert_t:s0
tclass=dir permissive=1

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>

* Work around the snap version unknown issue

* Revert chnage to  force mkversion for centos-9

* Change spec used to build centos

In centos 9 if we use the spec "$packaging_path/snapd.spec" them
rpmbuild takes the packages from $packaging_path

* sources are also built from rpm_dir

* Updaing spec to support rhel 9

* Squashed 'tests/lib/external/snapd-testing-tools/' changes from 9b7b4e9bf1..54909c304d

54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems
cc1729c2f4 preserve size for amazon-linux
bb3d8db60e preserve size for centos
d1089d5ce3 Fixing the tests
47793a6465 Fix auto-merge problem
f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems
1a40a224c9 os.query tool cli simplified

git-subtree-dir: tests/lib/external/snapd-testing-tools
git-subtree-split: 54909c304ddbe284ee49142d3247aeb7876d1feb

* Update os.query uses following changes in the cli

* Skip test on centos-9

* fix os.query usage

* Skip rhbz-1708991 on centos-9

* Fix os.query error in tests

Co-authored-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2022-07-14 00:22:15 -03:00
Paweł Stołowski
bb52a67991 Renaming related to inclusive language. 2022-04-14 14:30:47 +02:00
Maciej Borzecki
282562de1d tests: and then some more excluded tests or fixes
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-08-25 14:37:13 +02:00
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