Skip to content

Commit

Permalink
PMM-13078 follow up on PR review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Jul 18, 2024
1 parent 97efda3 commit cbe0f44
Show file tree
Hide file tree
Showing 10 changed files with 134 additions and 117 deletions.
6 changes: 3 additions & 3 deletions api-tests/management/services/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ func TestListAgentVersions(t *testing.T) {
Context: ctx,
})
require.NoError(t, err)
require.Len(t, listAgentVersionsOK.Payload.Versions, 1)
require.Len(t, listAgentVersionsOK.Payload.AgentVersions, 1)

expected := pointer.ToString(mgmtSvc.ListAgentVersionsOKBodyVersionsItems0SeverityUPDATESEVERITYUPTODATE)
require.Equal(t, expected, listAgentVersionsOK.Payload.Versions[0].Severity)
expected := pointer.ToString(mgmtSvc.ListAgentVersionsOKBodyAgentVersionsItems0SeverityUPDATESEVERITYUPTODATE)
require.Equal(t, expected, listAgentVersionsOK.Payload.AgentVersions[0].Severity)
})
}
88 changes: 47 additions & 41 deletions api/management/v1/agent.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions api/management/v1/agent.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions api/management/v1/agent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,14 @@ message ListAgentsResponse {

enum UpdateSeverity {
UPDATE_SEVERITY_UNSPECIFIED = 0;
// The client version is newer than the server version.
UPDATE_SEVERITY_UNSUPPORTED = 1;
// The client version matches the server version.
UPDATE_SEVERITY_UP_TO_DATE = 1;
// The client's minor or patch version is outdated.
UPDATE_SEVERITY_REQUIRED = 2;
// The client's major version is outdated.
UPDATE_SEVERITY_CRITICAL = 3;
UPDATE_SEVERITY_UP_TO_DATE = 2;
// The client's minor or patch version is older.
UPDATE_SEVERITY_REQUIRED = 3;
// The client's major version is older.
UPDATE_SEVERITY_CRITICAL = 4;
}

message AgentVersions {
Expand All @@ -172,5 +174,5 @@ message ListAgentVersionsRequest {}

message ListAgentVersionsResponse {
// List of Agent versions.
repeated AgentVersions versions = 1;
repeated AgentVersions agent_versions = 1;
}
Loading

0 comments on commit cbe0f44

Please sign in to comment.