Commit 05fb81e
authored
feat: HTTP external functions SDK support (#33)
* feat: add registerHttpFunction API for HTTP external functions
- Node: registerHttpFunction(id, config), HttpInvocationConfig types, integration test
- Rust: register_http_function, HttpInvocationConfig, HttpFunctionRef, unit tests
- Python: register_http_function, HttpInvocationConfig, unit + integration tests
- Add HttpFunctionsModule to config-test.yaml for integration tests
* feat(tests): enhance HTTP external functions tests for registration, event delivery, and unregistration
- Added tests for registering and unregistering HTTP functions, ensuring proper function lifecycle management.
- Implemented tests for delivering events with custom headers and to multiple external functions across different topics.
- Included a test to verify that events stop being delivered after unregistration.
- Enhanced the WebhookProbe class to capture headers from incoming requests for more comprehensive testing.
- Updated integration tests to cover all configuration options for HTTP functions, including authentication and custom headers.
* feat: add validation for duplicate function IDs in registration
- Implemented checks in Node, Python, and Rust SDKs to prevent registration of functions with duplicate IDs, enhancing error handling and ensuring unique function identifiers.
- Updated tests to verify the new validation logic for HTTP external functions and standard functions, ensuring robustness in function registration processes.
* fix: improve enum variant handling and clean up serialization code
- Added a Clippy lint allowance for large enum variants in the `Outbound` enum to enhance code quality.
- Simplified the serialization call in the tests by removing unnecessary method chaining, improving readability and maintainability.
* feat: update test configuration for HTTP functions and API module
- Added a new port configuration for the HTTP functions module.
- Updated the port for the Rest API module to 3199.
- Introduced security settings for the HTTP functions module, including URL allowlist and HTTPS requirements.1 parent 22c6405 commit 05fb81e
File tree
14 files changed
+1368
-7
lines changed- .github/engine-config
- packages
- node/iii
- src
- tests
- fixtures
- python/iii
- src/iii
- tests
- rust/iii/src
14 files changed
+1368
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
62 | 72 | | |
63 | 73 | | |
64 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
56 | 69 | | |
57 | 70 | | |
58 | 71 | | |
| |||
80 | 93 | | |
81 | 94 | | |
82 | 95 | | |
83 | | - | |
| 96 | + | |
84 | 97 | | |
85 | 98 | | |
86 | 99 | | |
| |||
96 | 109 | | |
97 | 110 | | |
98 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
99 | 116 | | |
100 | 117 | | |
101 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
190 | 192 | | |
191 | 193 | | |
192 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
193 | 198 | | |
194 | 199 | | |
195 | 200 | | |
| |||
230 | 235 | | |
231 | 236 | | |
232 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
233 | 270 | | |
234 | 271 | | |
235 | 272 | | |
| |||
606 | 643 | | |
607 | 644 | | |
608 | 645 | | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
609 | 649 | | |
610 | 650 | | |
611 | 651 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
108 | 117 | | |
109 | 118 | | |
110 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
63 | 72 | | |
64 | 73 | | |
65 | 74 | | |
| |||
0 commit comments