mmmmxa opened a new issue, #4264:
URL: https://github.com/apache/iggy/issues/4264
### Bug description
`cargo test -p integration connectors::http_config_provider` (and
`connectors::http::http_sink`) fail with `HttpRequestFailed("HTTP 404 Not Found
- No response could be served as there are no stub mappings in this WireMock
instance.")` on hosts with SELinux `Enforcing`. The WireMock test fixtures
bind-mount stub-mapping directories, but the mounted dirs keep the host's
default SELinux label (e.g. `user_home_t`), which the container's confined
context can't read — WireMock boots with zero stubs. Fixed in both fixtures by
adding `.with_security_opt("label=disable")` to the `testcontainers`
`GenericImage` builder.
### Affected area / component
CI / build / tooling
### Deployment
Compiled from source
### Versions
commit `bab0e331e`, rustc 1.98.0
### Hardware / environment
Fedora, SELinux `Enforcing`, Docker
### Reproduction
1. On an SELinux-enforcing host, run `cargo test -p integration
connectors::http_config_provider`
2. Observe the 404 above
3. `docker exec` into the WireMock container: `ls /home/wiremock/mappings` →
`Permission denied`
### Contribution
- [x] I'm willing to submit a pull request to fix this bug
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]