Sync ManageAgent test document: add set-env action#727
Open
sky333999 wants to merge 3 commits into
Open
Conversation
Contributor
Author
|
Ran the full
|
Adds integration test cases for the new set-env action in the ManageAgent document (synced in this branch, delegating to the ctl set-env action from aws/amazon-cloudwatch-agent#2211): - Happy path: custom key with a space-containing value; asserts command success, the ctl's "Set <KEY>" stdout, unchanged agent status/configstatus, and the pair persisted to env-config.json on disk (read back via AWS-RunShellScript/AWS-RunPowerShellScript with platform-specific paths). - Merge: a second key persists alongside the first. - Error path: empty optionalEnvironmentVariable fails with the document-level error message (new failure-path helper that requires terminal status Failed). Cases are appended after the existing configure flow so prior status assertions are unaffected, mirrored across the unix and windows implementations.
sky333999
force-pushed
the
sync-ssm-document-20260720
branch
from
July 21, 2026 13:25
e8bea7b to
51928f0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a 'set-env' action and 'optionalEnvironmentVariable' parameter to the test ManageAgent document, delegating to the ctl set-env action added in aws/amazon-cloudwatch-agent#2211.
Do not merge before #2211 is released — integration tests exercising set-env require an agent build whose ctl supports the action.