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