Commit db0d8f8
* test infra (wip)
* wip
* finish xml test
* simplify tests
* add XmlProtectionTutorialTest
* add Json TutorialTests
* feat(xml-protection): set HTTP status codes for error responses
- Added explicit status codes (500, 415, 400) for error responses in `XMLProtectionInterceptor` to improve clarity and alignment with HTTP standards.
* refactor(core): remove `URLNormalizerInterceptor` and replace `getRequestURI` with `getUri` for improved URI handling
- Completely removed the unused `URLNormalizerInterceptor`.
- Updated multiple classes to replace deprecated `getRequestURI` with `getUri` or `getOriginalRelativeURI` for improved readability and consistency in URI handling.
- Added `getOriginalRelativeURI` method in `Exchange` class to encapsulate original relative URI logic.
* refactor(core): rename `getRequestURI` to `getOriginalRelativeURI` and remove redundant method
- Updated `Exchange` class to replace `getRequestURI` with `getOriginalRelativeURI` for improved naming consistency.
- Removed redundant `getOriginalRelativeURI` implementation that relied on `getRequestURI`.
* update to use `getOriginalRelativeURI()` instead of `getRequestURI()` across core and test classes
* test(core): simplify `getOpenapiValidatorRequestFromExchange` test setup
- Refactored test to use utility methods for cleaner and more concise setup.
- Replaced manual request creation with `post` method and static constants for improved readability.
* test(core): clean up imports and fix formatting in `UtilsTest`
- Removed unused imports for better readability.
- Standardized formatting to improve code consistency across `UtilsTest`.
* test(core): add suppression for empty try block warning in `UtilsTest`
- Added `//noinspection EmptyTryBlock` to silence warnings for intentionally empty try block in `getResourceAsStreamInvalidResource` test.
---------
Co-authored-by: Thomas Bayer <bayer@predic8.de>
1 parent 9be1b74 commit db0d8f8
35 files changed
Lines changed: 96 additions & 150 deletions
File tree
- core/src
- main/java/com/predic8/membrane/core
- exchange
- interceptor
- acl
- adminapi
- apikey
- ntlm
- oauth2client
- rf
- oauth2
- flows
- processors
- request
- server
- soap
- lang
- openapi/util
- test/java/com/predic8/membrane/core
- azure
- exchangestore
- interceptor/oauth2/client
- b2c
- openapi/util
- transport/http
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | | - | |
20 | 18 | | |
| 19 | + | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | | - | |
29 | | - | |
| 27 | + | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
| |||
125 | 123 | | |
126 | 124 | | |
127 | 125 | | |
128 | | - | |
| 126 | + | |
129 | 127 | | |
130 | 128 | | |
131 | 129 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
Lines changed: 0 additions & 62 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments