mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
* 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>
17 lines
571 B
YAML
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
|