1# vi: set ft=conf
 2
 3# start soft serve
 4exec soft serve &
 5# wait for SSH server to start
 6ensureserverrunning SSH_PORT
 7
 8# check default allow-keyless
 9soft settings allow-keyless true
10soft settings allow-keyless
11stdout 'true.*'
12
13# change allow-keyless and check
14soft settings allow-keyless false
15soft settings allow-keyless
16stdout 'false.*'
17
18# check default anon-access
19soft settings anon-access
20stdout 'read-only.*'
21
22# change anon-access to all available options, and check them
23soft settings anon-access no-access
24soft settings anon-access
25stdout 'no-access.*'
26
27soft settings anon-access read-only
28soft settings anon-access
29stdout 'read-only.*'
30
31soft settings anon-access read-write
32soft settings anon-access
33stdout 'read-write.*'
34
35soft settings anon-access admin-access
36soft settings anon-access
37stdout 'admin-access.*'
38
39# try to set a bad access
40! soft settings anon-access nope
41! stdout .
42stderr .
43
44# stop the server
45[windows] stopserver
46