Advisor: Update app-sdk and regenerate code (#107786)
This commit is contained in:
@@ -86,7 +86,7 @@ func (s *Service) ReportSummary(ctx context.Context) (*ReportInfo, error) {
|
||||
latestDatasourceCheck := findLatestCheck(checkList.GetItems(), datasourcecheck.CheckID)
|
||||
reportInfo := &ReportInfo{}
|
||||
if latestPluginCheck != nil {
|
||||
for _, failure := range latestPluginCheck.CheckStatus.Report.Failures {
|
||||
for _, failure := range latestPluginCheck.Status.Report.Failures {
|
||||
switch failure.StepID {
|
||||
case plugincheck.UpdateStepID:
|
||||
reportInfo.PluginsOutdated++
|
||||
@@ -96,7 +96,7 @@ func (s *Service) ReportSummary(ctx context.Context) (*ReportInfo, error) {
|
||||
}
|
||||
}
|
||||
if latestDatasourceCheck != nil {
|
||||
for _, failure := range latestDatasourceCheck.CheckStatus.Report.Failures {
|
||||
for _, failure := range latestDatasourceCheck.Status.Report.Failures {
|
||||
if failure.StepID == datasourcecheck.HealthCheckStepID {
|
||||
reportInfo.DatasourcesUnhealthy++
|
||||
}
|
||||
|
||||
@@ -41,8 +41,8 @@ func TestService_ReportSummary(t *testing.T) {
|
||||
checks.TypeLabel: plugincheck.CheckID,
|
||||
},
|
||||
},
|
||||
CheckStatus: advisorv0alpha1.CheckStatus{
|
||||
Report: advisorv0alpha1.CheckV0alpha1StatusReport{
|
||||
Status: advisorv0alpha1.CheckStatus{
|
||||
Report: advisorv0alpha1.CheckReport{
|
||||
Failures: []advisorv0alpha1.CheckReportFailure{
|
||||
{StepID: plugincheck.UpdateStepID},
|
||||
},
|
||||
@@ -56,8 +56,8 @@ func TestService_ReportSummary(t *testing.T) {
|
||||
checks.TypeLabel: plugincheck.CheckID,
|
||||
},
|
||||
},
|
||||
CheckStatus: advisorv0alpha1.CheckStatus{
|
||||
Report: advisorv0alpha1.CheckV0alpha1StatusReport{
|
||||
Status: advisorv0alpha1.CheckStatus{
|
||||
Report: advisorv0alpha1.CheckReport{
|
||||
Failures: []advisorv0alpha1.CheckReportFailure{
|
||||
{StepID: plugincheck.UpdateStepID},
|
||||
{StepID: plugincheck.DeprecationStepID},
|
||||
@@ -72,8 +72,8 @@ func TestService_ReportSummary(t *testing.T) {
|
||||
checks.TypeLabel: datasourcecheck.CheckID,
|
||||
},
|
||||
},
|
||||
CheckStatus: advisorv0alpha1.CheckStatus{
|
||||
Report: advisorv0alpha1.CheckV0alpha1StatusReport{
|
||||
Status: advisorv0alpha1.CheckStatus{
|
||||
Report: advisorv0alpha1.CheckReport{
|
||||
Failures: []advisorv0alpha1.CheckReportFailure{
|
||||
{StepID: datasourcecheck.HealthCheckStepID},
|
||||
{StepID: datasourcecheck.HealthCheckStepID},
|
||||
|
||||
Reference in New Issue
Block a user