blob: c97bb4ccc51836e049c44ca67db3d3fe07f54e53 [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 {
weijia yuan82cf9142018-10-21 12:25:02 -070018 type customized
Shuo Chen028dcd32014-06-21 16:36:44 +080019 sig-type rsa-sha256
weijia yuan82cf9142018-10-21 12:25:02 -070020 key-locator
Shuo Chen028dcd32014-06-21 16:36:44 +080021 {
weijia yuan82cf9142018-10-21 12:25:02 -070022 type name
23 name /DEFAULT
24 relation equal
Shuo Chen028dcd32014-06-21 16:36:44 +080025 }
26 }
Shuo Chenc88c87d2014-06-25 20:21:02 +080027}
28
29rule
30{
weijia yuan82cf9142018-10-21 12:25:02 -070031 id "Test Rule For Data"
Shuo Chenc88c87d2014-06-25 20:21:02 +080032 for data
33 filter
34 {
35 type name
36 name /
37 relation is-prefix-of
38 }
39 checker
40 {
weijia yuan82cf9142018-10-21 12:25:02 -070041 type customized
Shuo Chenc88c87d2014-06-25 20:21:02 +080042 sig-type rsa-sha256
weijia yuan82cf9142018-10-21 12:25:02 -070043 key-locator
Shuo Chenc88c87d2014-06-25 20:21:02 +080044 {
weijia yuan82cf9142018-10-21 12:25:02 -070045 type name
46 name /DEFAULT
47 relation equal
Shuo Chenc88c87d2014-06-25 20:21:02 +080048 }
49 }
weijia yuan82cf9142018-10-21 12:25:02 -070050}
51
52trust-anchor
53{
54 type file
55 file-name "insert-delete-test.cert"
56}