Shuo Chen | c88c87d | 2014-06-25 20:21:02 +0800 | [diff] [blame] | 1 | ; 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 yuan | 3aa8d2b | 2018-03-06 15:35:57 -0800 | [diff] [blame] | 4 | |
Shuo Chen | 028dcd3 | 2014-06-21 16:36:44 +0800 | [diff] [blame] | 5 | rule |
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 yuan | 82cf914 | 2018-10-21 12:25:02 -0700 | [diff] [blame] | 17 | type customized |
Shuo Chen | 028dcd3 | 2014-06-21 16:36:44 +0800 | [diff] [blame] | 18 | sig-type rsa-sha256 |
weijia yuan | 82cf914 | 2018-10-21 12:25:02 -0700 | [diff] [blame] | 19 | key-locator |
Shuo Chen | 028dcd3 | 2014-06-21 16:36:44 +0800 | [diff] [blame] | 20 | { |
weijia yuan | 82cf914 | 2018-10-21 12:25:02 -0700 | [diff] [blame] | 21 | type name |
weijia yuan | 3aa8d2b | 2018-03-06 15:35:57 -0800 | [diff] [blame] | 22 | name /ndn/test/repo |
weijia yuan | 82cf914 | 2018-10-21 12:25:02 -0700 | [diff] [blame] | 23 | relation equal |
Shuo Chen | 028dcd3 | 2014-06-21 16:36:44 +0800 | [diff] [blame] | 24 | } |
25 | } | ||||
Shuo Chen | c88c87d | 2014-06-25 20:21:02 +0800 | [diff] [blame] | 26 | } |
27 | |||||
28 | rule | ||||
29 | { | ||||
weijia yuan | 82cf914 | 2018-10-21 12:25:02 -0700 | [diff] [blame] | 30 | id "Test Rule For Data" |
Shuo Chen | c88c87d | 2014-06-25 20:21:02 +0800 | [diff] [blame] | 31 | for data |
32 | filter | ||||
33 | { | ||||
34 | type name | ||||
35 | name / | ||||
36 | relation is-prefix-of | ||||
37 | } | ||||
38 | checker | ||||
39 | { | ||||
weijia yuan | 82cf914 | 2018-10-21 12:25:02 -0700 | [diff] [blame] | 40 | type customized |
Shuo Chen | c88c87d | 2014-06-25 20:21:02 +0800 | [diff] [blame] | 41 | sig-type rsa-sha256 |
weijia yuan | 82cf914 | 2018-10-21 12:25:02 -0700 | [diff] [blame] | 42 | key-locator |
Shuo Chen | c88c87d | 2014-06-25 20:21:02 +0800 | [diff] [blame] | 43 | { |
weijia yuan | 82cf914 | 2018-10-21 12:25:02 -0700 | [diff] [blame] | 44 | type name |
weijia yuan | 3aa8d2b | 2018-03-06 15:35:57 -0800 | [diff] [blame] | 45 | name /ndn/test/repo |
weijia yuan | 82cf914 | 2018-10-21 12:25:02 -0700 | [diff] [blame] | 46 | relation equal |
Shuo Chen | c88c87d | 2014-06-25 20:21:02 +0800 | [diff] [blame] | 47 | } |
48 | } | ||||
weijia yuan | 82cf914 | 2018-10-21 12:25:02 -0700 | [diff] [blame] | 49 | } |
50 | |||||
51 | trust-anchor | ||||
52 | { | ||||
53 | type file | ||||
54 | file-name "insert-delete-test.cert" | ||||
55 | } |