Skip to content

Adds A new test to the guestagent test suite to verify guest agent network setup completes before service ready.#516

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_921700551
Open

Adds A new test to the guestagent test suite to verify guest agent network setup completes before service ready.#516
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_921700551

Conversation

@copybara-service
Copy link
Copy Markdown

@copybara-service copybara-service Bot commented May 26, 2026

Adds A new test to the guestagent test suite to verify guest agent network setup completes before service ready.

Introduces TestNetworkSetupCompletesBeforeAgentReady to ensure the guest agent's network management module finishes setup before systemd reports the service as active. This is done by checking for a specific log message in journalctl.

This test is skipped on the legacy agent since it does not log messages around network setup with respect to its readiness.

Refactors the logic for finding the active guest agent service and its ready time into a new helper function getActiveGuestAgent.
Updates TestSSHHostKeyTimingVsAgent to use the new helper function.

…twork setup completes before service ready.

Introduces TestNetworkSetupCompletesBeforeAgentReady to ensure the guest agent's network management module finishes setup before systemd reports the service as active. This is done by checking for a specific log message in journalctl.

This test is skipped on the legacy agent since it does not log messages around network setup with respect to its readiness.

Refactors the logic for finding the active guest agent service and its ready time into a new helper function getActiveGuestAgent.
Updates TestSSHHostKeyTimingVsAgent to use the new helper function.

PiperOrigin-RevId: 921700551
@copybara-service copybara-service Bot changed the title Adds A new test to the guestagent test suite to verify guest agent (core_plugin) network setup completes before service ready. Adds A new test to the guestagent test suite to verify guest agent network setup completes before service ready. May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant