Skip to content

Tests: add Python bindings and system tests for conversion tools#1673

Draft
ikerexxe wants to merge 9 commits into
shadow-maint:masterfrom
ikerexxe:test-conversion-bindings
Draft

Tests: add Python bindings and system tests for conversion tools#1673
ikerexxe wants to merge 9 commits into
shadow-maint:masterfrom
ikerexxe:test-conversion-bindings

Conversation

@ikerexxe

Copy link
Copy Markdown
Collaborator

Add 4 new methods to shadow role to wrap the conversion tools: pwconv, pwunconv, grpconv and grpunconv.

Add 4 test cases to validate the wrappers with comprehensive user/group entry validation, file permissions checking and cross-platform compatibility. The tests mirror the behavior from convtools/01/run where the conversion tools convert system authentication files between old and shadow formats.

@ikerexxe
ikerexxe force-pushed the test-conversion-bindings branch from 8f19008 to 84cd83c Compare July 14, 2026 07:30
@ikerexxe
ikerexxe force-pushed the test-conversion-bindings branch 2 times, most recently from 29e6b86 to 3e51e2e Compare July 14, 2026 15:01
ikerexxe added 9 commits July 15, 2026 13:19
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
This is a partial transformation to Python of the test located in
`tests/convtools/01/run`, which checks that `pwconv` is able to
convert passwd format to shadow format. The test is more complex
and checks different transformations (i.e. pwconv, pwunconv), so it will
be transformed to several tests.

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
This is a partial transformation to Python of the test located in
`tests/convtools/01/run`, which checks that `pwunconv` is able to
convert shadow format back to passwd format. The test is more complex
and checks different transformations (i.e. pwconv, pwunconv), so it will
be transformed to several tests.

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
This is a partial transformation to Python of the test located in
`tests/convtools/01/run`, which checks that `grpconv` is able to
convert group format to shadow format. The test is more complex
and checks different transformations (i.e. pwconv, pwunconv), so it will
be transformed to several tests.

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
…onv`

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
This is a partial transformation to Python of the test located in
`tests/convtools/01/run`, which checks that `grpunconv` is able to
convert shadow format back to group format. The test is more complex
and checks different transformations (i.e. pwconv, pwunconv), so it will
be transformed to several tests.

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
@ikerexxe
ikerexxe force-pushed the test-conversion-bindings branch from 3e51e2e to 98c54a9 Compare July 15, 2026 12:16
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