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 | { |
| 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 Chen | c88c87d | 2014-06-25 20:21:02 +0800 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | rule |
| 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 Chen | 028dcd3 | 2014-06-21 16:36:44 +0800 | [diff] [blame] | 48 | } |