Closed breca closed 3 weeks ago
Cool, happy to look at it when the bar is set.
I looked into this again and think that we could simply have a unit test for get_secret_args
function.
We already have tests for container_to_args()
in pytests/test_container_to_args.py
. At the moment splitting tests by function seems a bit non-optimal, but I expect we will have hundreds of lines of unit tests for each function. Splitting tests by function seems like an easy way to help navigating them.
Merged via https://github.com/containers/podman-compose/pull/971 which added unit tests. Thanks for the PR that did most of the work.
This merge adds support for
type=env
secret parameter, picking up the work of @71ms1 in #671.It also adds some basic tests to the existing secret checks: