3
# Test for https://bugzilla.redhat.com/show_bug.cgi?id=1033467
9
# ---- do the actual testing ----
12
echo "++++ BEGINNING TEST" >$OUTPUTFILE
14
# create a keyring and attach it to the session keyring
15
marker "ADD SANDBOX KEYRING"
16
create_keyring sandbox @s
19
# create a bunch of nested keyrings in the sandbox
20
marker "ADD NESTED KEYRINGS"
21
for ((i=0; i<=16; i++))
23
create_keyring ring$i $sandbox
27
# create a key in each of those keyrings
30
for ((i=0; i<=16; i++))
32
create_key user a$i a %:ring$i
37
# search for the added keys, beginning at sandbox and exercising the nesting
40
for ((i=0; i<=16; i++))
42
search_for_key $sandbox user a$i
47
marker "COMPARE KEY LISTS"
48
if [ "$keys" != "$keys2" ]
50
echo "Key lists differ" >>$OUTPUTFILE
51
echo List 1: "\"$keys\"" >>$OUTPUTFILE
52
echo List 2: "\"$keys2\"" >>$OUTPUTFILE
56
# search for some unadded keys and make sure we get an error
57
marker "SEARCH MISSES"
58
for ((i=17; i<=20; i++))
60
search_for_key --fail $sandbox user a$i
64
echo "++++ FINISHED TEST: $result" >>$OUTPUTFILE
66
# --- then report the results in the database ---
67
toolbox_report_result $TEST $result