Skip to content

Commit 972b56f

Browse files
authored
tests: enable interfaces-account-control on UC24 and UC26 (#16983)
* tests: enable interfaces-account-control on UC24 and UC26 * tests: add test snaps for core24 and core26 for interfaces-account-control
1 parent 44b22b5 commit 972b56f

10 files changed

Lines changed: 55 additions & 1 deletion

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]

tests/main/interfaces-account-control/task.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ details: |
44
This test makes sure that a snap using the account-control interface
55
can handle the user accounts properly.
66
7-
systems: [ubuntu-core-16-64, ubuntu-core-18-64, ubuntu-core-20-64, ubuntu-core-22-64]
7+
systems: [ubuntu-core-16-64, ubuntu-core-18-64, ubuntu-core-20-64, ubuntu-core-22-64, ubuntu-core-24-64, ubuntu-core-26-64]
88

99
environment:
1010
TSNAP: account-control-consumer

0 commit comments

Comments
 (0)