blob: 08202661575ec662e39bf46ce394d6b29e949461 [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.
weijia yuan3aa8d2b2018-03-06 15:35:57 -08004
Shuo Chen028dcd32014-06-21 16:36:44 +08005rule
6{
7 id "Test Rule For Signed Interest"
8 for interest
9 filter
10 {
11 type name
12 name /
13 relation is-prefix-of
14 }
15 checker
16 {
weijia yuan82cf9142018-10-21 12:25:02 -070017 type customized
Shuo Chen028dcd32014-06-21 16:36:44 +080018 sig-type rsa-sha256
weijia yuan82cf9142018-10-21 12:25:02 -070019 key-locator
Shuo Chen028dcd32014-06-21 16:36:44 +080020 {
weijia yuan82cf9142018-10-21 12:25:02 -070021 type name
weijia yuan3aa8d2b2018-03-06 15:35:57 -080022 name /ndn/test/repo
weijia yuan82cf9142018-10-21 12:25:02 -070023 relation equal
Shuo Chen028dcd32014-06-21 16:36:44 +080024 }
25 }
Shuo Chenc88c87d2014-06-25 20:21:02 +080026}
27
28rule
29{
weijia yuan82cf9142018-10-21 12:25:02 -070030 id "Test Rule For Data"
Shuo Chenc88c87d2014-06-25 20:21:02 +080031 for data
32 filter
33 {
34 type name
35 name /
36 relation is-prefix-of
37 }
38 checker
39 {
weijia yuan82cf9142018-10-21 12:25:02 -070040 type customized
Shuo Chenc88c87d2014-06-25 20:21:02 +080041 sig-type rsa-sha256
weijia yuan82cf9142018-10-21 12:25:02 -070042 key-locator
Shuo Chenc88c87d2014-06-25 20:21:02 +080043 {
weijia yuan82cf9142018-10-21 12:25:02 -070044 type name
weijia yuan3aa8d2b2018-03-06 15:35:57 -080045 name /ndn/test/repo
weijia yuan82cf9142018-10-21 12:25:02 -070046 relation equal
Shuo Chenc88c87d2014-06-25 20:21:02 +080047 }
48 }
weijia yuan82cf9142018-10-21 12:25:02 -070049}
50
51trust-anchor
52{
53 type file
54 file-name "insert-delete-test.cert"
55}