Skip to content

ci: run the client_server test suite (enable __test-data in the matrix)#691

Open
Ki Hyun Park (kihyun1998) wants to merge 2 commits into
Devolutions:masterfrom
kihyun1998:ci/enable-test-data-client-server
Open

ci: run the client_server test suite (enable __test-data in the matrix)#691
Ki Hyun Park (kihyun1998) wants to merge 2 commits into
Devolutions:masterfrom
kihyun1998:ci/enable-test-data-client-server

Conversation

@kihyun1998

Copy link
Copy Markdown
Contributor

The tests/sspi/client_server module is gated on all(network_client, __test-data), but no test-matrix row enables __test-data — so the client↔server pairing tests (credssp_ntlm, credssp_kerberos, and the credssp_negotiate_ntlm test merged in #689) never run in CI. That gap is how #687 shipped unnoticed.

Commit 1 — CI: add __test-data to the three root-manifest matrix rows (win/osx/linux).

Commit 2 — test fix the flip surfaced: with the suite finally compiling in CI, five ServerProperties initializers under __test-data were missing the additional_service_keys field (added to the struct at some point, but the never-compiled test code wasn't updated). Set to Vec::new() — the same default the library uses in ServerProperties::new / fake_server_properties; these tests use a single service, so behavior is unchanged. Kept as a separate commit; it's a prerequisite the CI change reveals, not unrelated work.

The suite is hermetic (KdcMock / NetworkClientMock, no real network). Verified across the full win/osx/linux matrix — all green.

Follow-up to #688 / #689.

The tests/sspi/client_server module is gated on
all(network_client, __test-data), but no test-matrix row enabled
__test-data, so the client<->server pairing tests (credssp_ntlm,
credssp_kerberos, and the credssp_negotiate_ntlm regression test merged
in Devolutions#689) never ran in CI. That gap is how Devolutions#687 shipped unnoticed.

This adds __test-data to the three root-manifest matrix rows. The suite
is hermetic (KdcMock / NetworkClientMock, no real network).
ServerProperties grew an additional_service_keys field; the __test-data
client_server initializers were never updated because the suite does not
compile in CI. Set it to Vec::new() (the library's own default in
ServerProperties::new / fake_server_properties) - these tests use a single
service, so no additional keys; behavior is unchanged.
@TheBestTvarynka

Copy link
Copy Markdown
Collaborator

Ki Hyun Park (@kihyun1998), thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants