Commit de7680f
authored
feat(rust/signed-doc): Added unit tests for Catalyst Signed Docs validation rules (#219)
* Squashed commit of the following:
commit f2273d3
Author: Mr-Leshiy <[email protected]>
Date: Thu Feb 20 10:35:14 2025 +0200
fix clippy lints
commit 5b42d74
Author: Mr-Leshiy <[email protected]>
Date: Thu Feb 20 10:07:12 2025 +0200
fix spelling
commit 8121f33
Merge: b7bbe15 f76ccf3
Author: Alex Pozhylenkov <[email protected]>
Date: Thu Feb 20 09:30:13 2025 +0200
Merge branch 'main' into feat/cat-sign-doc-validator
commit b7bbe15
Author: Mr-Leshiy <[email protected]>
Date: Wed Feb 19 20:39:44 2025 +0200
finilize validation logic
commit 40c82d2
Author: Mr-Leshiy <[email protected]>
Date: Wed Feb 19 19:32:42 2025 +0200
refactor
commit 249f0b4
Author: Mr-Leshiy <[email protected]>
Date: Wed Feb 19 14:40:12 2025 +0200
fix signature test
commit 38104bb
Author: Mr-Leshiy <[email protected]>
Date: Wed Feb 19 12:44:06 2025 +0200
wip
commit d60579c
Author: Mr-Leshiy <[email protected]>
Date: Wed Feb 19 11:52:53 2025 +0200
add utils mod
commit 20929de
Author: Mr-Leshiy <[email protected]>
Date: Wed Feb 19 11:33:25 2025 +0200
wip
commit 6d933fb
Author: Mr-Leshiy <[email protected]>
Date: Wed Feb 19 11:13:28 2025 +0200
added new Section struct
commit 09e1b2c
Author: Mr-Leshiy <[email protected]>
Date: Tue Feb 18 22:15:49 2025 +0200
refactor
commit 7efe2e2
Author: Mr-Leshiy <[email protected]>
Date: Tue Feb 18 14:55:46 2025 +0200
cleanup
commit bfd27c0
Author: Mr-Leshiy <[email protected]>
Date: Tue Feb 18 13:40:38 2025 +0200
add section rule
commit 613a958
Author: Mr-Leshiy <[email protected]>
Date: Tue Feb 18 13:31:39 2025 +0200
add more rules
commit fb9e256
Author: Mr-Leshiy <[email protected]>
Date: Tue Feb 18 12:37:45 2025 +0200
refactor
commit 2c2bd38
Author: Mr-Leshiy <[email protected]>
Date: Mon Feb 17 23:24:23 2025 +0200
fix
commit 3c9506b
Merge: fc8d5ba d32efec
Author: Alex Pozhylenkov <[email protected]>
Date: Mon Feb 17 23:00:33 2025 +0200
Merge branch 'main' into feat/cat-sign-doc-validator
commit fc8d5ba
Author: Mr-Leshiy <[email protected]>
Date: Mon Feb 17 22:27:00 2025 +0200
make all validation async
commit c287e3a
Author: Mr-Leshiy <[email protected]>
Date: Mon Feb 17 14:21:12 2025 +0200
make a separate trait
commit 40478ae
Author: Mr-Leshiy <[email protected]>
Date: Mon Feb 17 14:07:47 2025 +0200
make signed doc signature validation async
commit cd4301c
Author: Mr-Leshiy <[email protected]>
Date: Mon Feb 17 13:59:37 2025 +0200
wip
commit 2182445
Author: Mr-Leshiy <[email protected]>
Date: Mon Feb 17 10:19:13 2025 +0200
wip
commit 6630c02
Author: Mr-Leshiy <[email protected]>
Date: Sun Feb 16 21:00:14 2025 +0200
wip
commit f9ec1fc
Author: Mr-Leshiy <[email protected]>
Date: Sun Feb 16 18:27:42 2025 +0200
replace trait with Fn
commit d173bf4
Author: Mr-Leshiy <[email protected]>
Date: Sun Feb 16 17:59:40 2025 +0200
wip
commit 49b541e
Author: Mr-Leshiy <[email protected]>
Date: Sun Feb 16 16:13:56 2025 +0200
add full template validation
commit d710304
Author: Mr-Leshiy <[email protected]>
Date: Sun Feb 16 15:58:07 2025 +0200
wip
commit b54623a
Author: Mr-Leshiy <[email protected]>
Date: Sun Feb 16 15:21:26 2025 +0200
refactor
commit 1ce8a3c
Author: Mr-Leshiy <[email protected]>
Date: Sun Feb 16 14:08:35 2025 +0200
add proposal document validation
commit c6f3a04
Merge: b5d70cb d26f589
Author: Mr-Leshiy <[email protected]>
Date: Sun Feb 16 13:01:04 2025 +0200
Merge branch 'main' into feat/cat-sign-doc-validator
commit b5d70cb
Merge: 5bb6cc4 5f31d75
Author: Joaquín Rosales <[email protected]>
Date: Thu Feb 13 12:50:13 2025 -0600
Merge remote-tracking branch 'origin/main' into feat/cat-sign-doc-validator
commit 5bb6cc4
Author: Joaquín Rosales <[email protected]>
Date: Thu Feb 13 12:49:24 2025 -0600
fix(rust/signed-doc): signed docs implement Clone
commit 8b9622b
Author: Joaquín Rosales <[email protected]>
Date: Thu Feb 13 08:37:58 2025 -0600
chore(docs): fix spelling
commit 1b0cbb5
Merge: c2a8d7b c441fb6
Author: Joaquín Rosales <[email protected]>
Date: Thu Feb 13 00:35:46 2025 -0600
Merge remote-tracking branch 'origin/main' into feat/cat-sign-doc-validator
commit c2a8d7b
Author: Joaquín Rosales <[email protected]>
Date: Thu Feb 13 00:35:33 2025 -0600
wip(rust/signed_doc): add comment document validation
commit 25107e6
Merge: 7014694 9b9de32
Author: Joaquín Rosales <[email protected]>
Date: Tue Feb 11 19:02:06 2025 -0600
Merge remote-tracking branch 'origin/main' into feat/cat-sign-doc-validator
commit 7014694
Author: Joaquín Rosales <[email protected]>
Date: Mon Feb 3 20:46:55 2025 -0600
wip(rust/signed_doc): add comment document type
* refactor
* refactor builder
* refactor content_type validation rule
* move document signature validation into the validator mod
* remove uneeded 'static
* fix test
* fix clippy
* add content_type rule and content_encoding rule tests
* add ref rule test
* fix
* add category rule test
* fix
* wip
* add reply tests
* refactor ref
* wip
* wip
* wip
* add section rule test
* wip
* add template document tests
* fix spelling
* fix spelling
* fix clippy
* make pub use of `catalyst_types` imports
* wip
* save mk_signed_doc as an artifact
* fix clippy
* wip
* fix clippy1 parent 4325244 commit de7680f
File tree
21 files changed
+1407
-643
lines changed- rust
- signed_doc
- examples
- src
- metadata
- validator
- rules
21 files changed
+1407
-643
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
| 62 | + | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
77 | | - | |
78 | | - | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | | - | |
82 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| 34 | + | |
36 | 35 | | |
37 | 36 | | |
38 | | - | |
| 37 | + | |
39 | 38 | | |
40 | | - | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 47 | + | |
55 | 48 | | |
56 | 49 | | |
57 | 50 | | |
| |||
62 | 55 | | |
63 | 56 | | |
64 | 57 | | |
65 | | - | |
| 58 | + | |
66 | 59 | | |
67 | | - | |
68 | | - | |
69 | | - | |
| 60 | + | |
70 | 61 | | |
71 | 62 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 63 | + | |
80 | 64 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 65 | + | |
| 66 | + | |
84 | 67 | | |
85 | 68 | | |
86 | 69 | | |
87 | 70 | | |
88 | 71 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
94 | 75 | | |
95 | 76 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
110 | 84 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
119 | 93 | | |
120 | 94 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | | - | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 35 | + | |
48 | 36 | | |
49 | 37 | | |
50 | 38 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 39 | + | |
| 40 | + | |
58 | 41 | | |
59 | 42 | | |
60 | 43 | | |
| |||
74 | 57 | | |
75 | 58 | | |
76 | 59 | | |
77 | | - | |
| 60 | + | |
78 | 61 | | |
79 | 62 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
84 | 70 | | |
85 | 71 | | |
86 | 72 | | |
| |||
0 commit comments