File: task.yaml

package info (click to toggle)
snapd 2.72-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 80,412 kB
  • sloc: sh: 16,506; ansic: 16,211; python: 11,213; makefile: 1,919; exp: 190; awk: 58; xml: 22
file content (22 lines) | stat: -rw-r--r-- 910 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
summary: Ensure that the snap switch command works

details: |
    The switch command switches the given snap to a different channel without
    doing a refresh. All available channels of a snap are listed in
    its 'snap info' output.

    This test switches the snap channel from stable to edge by using the
    `snap switch` command. Also it is verified that we don't print
    incorrect and confusing information.

execute: |
    echo "Having test-snapd-sh snap installed using stable channel"
    snap install test-snapd-sh
    snap info test-snapd-sh | MATCH "tracking: +latest/stable"

    echo "Run the snap switch command using the edge channel"
    snap switch --edge test-snapd-sh > stdout.txt
    snap info test-snapd-sh | MATCH "tracking: +latest/edge"

    echo "Ensure we don't print incorrect and confusing information"
    not grep "is closed; temporarily forwarding to stable." < stdout.txt