blob: 05a77c1a6cd59276b31ad8aab84db136fffc832d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/bash
. ../../../prepare.inc.sh
. ../../../toolbox.inc.sh
# ---- do the actual testing ----
result=PASS
echo "++++ BEGINNING TEST" >$OUTPUTFILE
# check that we can add a user key to the session keyring
marker "ADD USER KEY"
create_key user wibble stuff @s
expect_keyid keyid
# read back what we put in it
marker "PRINT PAYLOAD"
print_key $keyid
expect_payload payload "stuff"
# check that we can update a user key
marker "PUPDATE USER KEY"
pupdate_key $keyid "lizard"
# read back what we changed it to
marker "PRINT UPDATED PAYLOAD"
print_key $keyid
expect_payload payload "lizard"
# remove the key we added
marker "UNLINK KEY"
unlink_key $keyid @s
echo "++++ FINISHED TEST: $result" >>$OUTPUTFILE
# --- then report the results in the database ---
toolbox_report_result $TEST $result
|