11 Commits

Author SHA1 Message Date
Sergio Cazzolato
3a533b8094 tests: adding details to tests in core suite - part 1 (#13789)
* tests: adding details to tests in core suite - part 1

* Update tests/core/compat/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/basic18/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/compat/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/config-defaults-once/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/core-dump/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/create-user-2/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/create-user-2/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/create-user/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/create-user/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/fan/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/grub-no-unpacked-assets/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/core-to-snapd-failover16/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

---------

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>
2024-04-09 16:09:59 -03:00
Michael Vogt
18b33575e4 tests: fix tests/core/create-user on testflinger pi3
The `create-user` test was failing on the testflinger external
pi3 devices. The reason is that the test only looked at
`$MANAGED_DEVICE` which is set in spread.yaml just based on
if the device is external or not. However not all external
devices are already managed (the testflinger pi3 is not).

So this commit fixes this by simply checking directly for
`snap managed` instead.
2022-01-12 21:46:43 +01:00
Sergio Cazzolato
a8e08b8324 Apply solution also for create-user test 2021-08-18 15:18:40 -03:00
Sergio Cazzolato
08ff097c92 Adding debug info for create user tests
This is to add extra info when the test fails during beta validation

Error executing external:ubuntu-core-20-64:tests/core/create-user
(external:ubuntu-core-20-64) :
-----
+ '[' true = true ']'
+ snap create-user --sudoer mvo@ubuntu.com
created user "mvo"
+ echo 'Did not get expected error creating user in managed device'
Did not get expected error creating user in managed device
+ exit 1
-----
2021-04-23 11:50:34 -03:00
Sergio Cazzolato
f3505763ac Fix filter for core tests 2020-06-09 15:21:25 -03:00
Sergio Cazzolato
830d5a77e3 More tests ported to uc20 2020-06-04 17:32:19 -03:00
Sergio Cazzolato
e2ba8ec88f Fix expected name used when user is created 2020-02-28 14:18:46 -03:00
Sergio Cazzolato
46eeb026f4 Fix create-user test 2020-02-28 08:32:44 -03:00
Sergio Cazzolato
0ee6d728f7 Fix tests create/remove user to work on managed devices
The idea of this change is to make tests work properly on devices which
are managed by default.

A following change should make those test work idependently is they are
initially managed or not.
2020-02-27 15:58:20 -03:00
Ian Johnson
a456c6994f tests: move more main/ ubuntu-core specific tests to core/
Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2020-02-11 16:03:52 -06:00
Ian Johnson
6fcd43dba5 tests: move main/ubuntu-core-* tests to core/ suite
This does not enable any new systems for these tests, it just moves them over.

We will work on enabling these tests to run on other systems in a follow-up.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2020-02-11 16:03:52 -06:00