Skip to content

Commit

Permalink
Log ssm command details when an e2e test finishes (#8313)
Browse files Browse the repository at this point in the history
  • Loading branch information
d8660091 committed Jun 18, 2024
1 parent 35b761b commit 9453574
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/pkg/ssm/run_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ func buildRunOutput(commandOut *ssm.GetCommandInvocationOutput) *RunOutput {
func (r *RunOutput) Successful() bool {
return *r.commandOut.Status == ssm.CommandInvocationStatusSuccess
}

// StatusDetails returns the status details of the ssm command.
func (r *RunOutput) StatusDetails() string {
return *r.commandOut.StatusDetails
}
1 change: 1 addition & 0 deletions internal/test/e2e/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ func RunTestsInParallel(conf ParallelRunConf) error {
"completedInstances", completedInstances,
"totalInstances", totalInstances,
"succeeded", succeeded,
"ssmStatusDetails", r.testCommandResult.StatusDetails(),
)
putInstanceTestResultMetrics(r)
}
Expand Down

0 comments on commit 9453574

Please sign in to comment.