Commit e5e5eba
authored
Allow request IP retrieval during tests via server parameters (#7187)
* Enable retrieving the a mocked request IP during test execution by accessing server parameters
This update allows retrieving the request IP address while running tests by enabling access to the REMOTE_ADDR server parameter. This enhancement is particularly useful for scenarios where the application logic relies on the client’s IP address, ensuring consistent behavior in both runtime and testing environments. By leveraging mock server parameters, developers can validate IP-dependent functionality during automated tests with greater accuracy and flexibility.1 parent d703d28 commit e5e5eba
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
| |||
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
288 | 305 | | |
0 commit comments