Skip to content

pkg/namespaces: add tests for UsernsMode and NetworkMode#28953

Open
ROKUMATE wants to merge 1 commit into
podman-container-tools:mainfrom
ROKUMATE:test-pkg-namespaces
Open

pkg/namespaces: add tests for UsernsMode and NetworkMode#28953
ROKUMATE wants to merge 1 commit into
podman-container-tools:mainfrom
ROKUMATE:test-pkg-namespaces

Conversation

@ROKUMATE

Copy link
Copy Markdown
Contributor

What

Add unit tests for the UsernsMode and NetworkMode methods in pkg/namespaces.
These parse the --userns / --network mode strings and had no test coverage.

Why

The methods parse user-supplied "mode:options" input (keep-id options, ns:,
container:, pasta, user-defined names, etc.). Tests lock the parsing and
predicate behavior in.

Fixes: podman-container-tools#28952
Signed-off-by: ROKUMATE <rohitkumawat0110@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant