Files
snapd/tests/main/change-errors/task.yaml
Sergio Cazzolato d58cd19ed4 tests: add details to spread tests - part-3 (#13395)
* tests: add details to spread tests - part-3

This is needed to improve the spread tests documentation.

* Update tests/main/catalog-update/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/cgroup-devices-v1/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/cgroup-devices-v2/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/change-errors/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/classic-confinement-not-supported/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/classic-custom-device-reg/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/interfaces-accounts-service/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/interfaces-browser-support/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

---------

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>
2023-12-01 20:32:31 +02:00

17 lines
571 B
YAML

summary: Checks for cli errors of the tasks / change command.
details: |
Verify that `snap tasks` and `snap change` return an error
when the provided ID is invalid.
execute: |
echo "When an invalid ID is given to the tasks command it shows an error"
if snap tasks 10000000; then
echo "Expected error when trying change on invalid ID" && exit 1
fi
echo "When an invalid ID is given to the change command it shows an error"
if snap change 10000000; then
echo "Expected error when trying change on invalid ID" && exit 1
fi