Yasas-Sri opened a new pull request, #6970:
URL: https://github.com/apache/camel-k/pull/6970
<!-- Description -->
Fixes #6962
Adds an e2e test for the `mount` trait (`e2e/common/traits/mount_test.go`).
It covers the main trait options. Each mounted value is fed into a simple
timer/file route, and the test checks the expected output in the integration
logs.
**Coverage**
- `mount.configs` from a ConfigMap: a properties key is interpolated into
`{{my.message}}` and logged.
- `mount.configs` from a Secret: same check, with the value coming from a
Secret.
- `mount.resources` with a filtered key and a destination path
(`configmap:cm/my-resource.txt@/tmp/mount/my-resource.txt`): the route reads
and logs the file, and the test checks that the other key in the ConfigMap is
not mounted.
- `mount.empty-dirs` with a size limit: the route writes a file to the
emptyDir and reads it back, and the test checks the volume's `sizeLimit` on the
pod spec.
- `mount.volumes` with a dynamic PVC (`name:/path:size:accessMode`): same
write/read round trip, plus a check that the PVC was created.
**Notes**
- `mount.hot-reload` is not covered here because
`e2e/common/config/config_reload_test.go` already covers it.
- The three small route files under `e2e/common/traits/files/mount/` are
needed because no existing trait route logs a property or a mounted file.
- Tests only, no production code changes.
--
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]