Skip to content

Commit 80db97f

Browse files
committed
tests: add test snaps for core24 and core26 for interfaces-account-control
1 parent f7d384e commit 80db97f

9 files changed

Lines changed: 54 additions & 0 deletions

File tree

tests/lib/core-config.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ get_test_snap_suffix(){
9898
echo "-core20"
9999
elif os.query is-core22; then
100100
echo "-core22"
101+
elif os.query is-core24; then
102+
echo "-core24"
103+
elif os.query is-core26; then
104+
echo "-core26"
101105
fi
102106
}
103107

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
exec /usr/sbin/chpasswd "$@"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
exec /usr/sbin/deluser "$@"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
exec /usr/sbin/useradd "$@"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: account-control-consumer-core24
2+
version: 1.0
3+
summary: Basic account-control consumer snap
4+
description: A basic snap declaring a plug on a account-control slot
5+
base: core24
6+
7+
apps:
8+
useradd:
9+
command: bin/useradd
10+
plugs: [account-control]
11+
deluser:
12+
command: bin/deluser
13+
plugs: [account-control]
14+
chpasswd:
15+
command: bin/chpasswd
16+
plugs: [account-control]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
exec /usr/sbin/chpasswd "$@"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
exec /usr/sbin/deluser "$@"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
exec /usr/sbin/useradd "$@"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: account-control-consumer-core26
2+
version: 1.0
3+
summary: Basic account-control consumer snap
4+
description: A basic snap declaring a plug on a account-control slot
5+
base: core26
6+
7+
apps:
8+
useradd:
9+
command: bin/useradd
10+
plugs: [account-control]
11+
deluser:
12+
command: bin/deluser
13+
plugs: [account-control]
14+
chpasswd:
15+
command: bin/chpasswd
16+
plugs: [account-control]

0 commit comments

Comments
 (0)