blob: 8a777c51f8bd96a18d9e6ed94954d0b01730c33f [file] [log] [blame]
Shuo Chenc88c87d2014-06-25 20:21:02 +08001; The test rules below are for test suite TestBasicCommandInsertDelete.
2; Signed interests and data packets are signed by default certificate.
3; In these test rules, the type of checker is fixed signer and signer type is file.
Shuo Chen028dcd32014-06-21 16:36:44 +08004; So user who wants to run this test could use security tool to dump the defualt
5; certificate into a file named "insert-delete-test.cert"
6rule
7{
8 id "Test Rule For Signed Interest"
9 for interest
10 filter
11 {
12 type name
13 name /
14 relation is-prefix-of
15 }
16 checker
17 {
18 type fixed-signer
19 sig-type rsa-sha256
20 signer
21 {
22 type file
23 file-name "insert-delete-test.cert"
24 }
25 }
Shuo Chenc88c87d2014-06-25 20:21:02 +080026}
27
28rule
29{
30 id "Test Rule For Datat"
31 for data
32 filter
33 {
34 type name
35 name /
36 relation is-prefix-of
37 }
38 checker
39 {
40 type fixed-signer
41 sig-type rsa-sha256
42 signer
43 {
44 type file
45 file-name "insert-delete-test.cert"
46 }
47 }
Shuo Chen028dcd32014-06-21 16:36:44 +080048}