diff --git a/go.mod b/go.mod index cdbe6d925..adb27719c 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,6 @@ go 1.16 require ( github.com/RedHatInsights/insights-operator-utils v1.21.8 - github.com/RedHatInsights/insights-results-types v1.3.0 + github.com/RedHatInsights/insights-results-types v1.3.7 github.com/google/uuid v1.1.2 ) diff --git a/testdata/testdata.go b/testdata/testdata.go index 1a2b011d7..014122392 100644 --- a/testdata/testdata.go +++ b/testdata/testdata.go @@ -762,7 +762,8 @@ var ( "report": { "meta": { "count": 2, - "last_checked_at": "` + LastCheckedAt.UTC().Format(time.RFC3339) + `" + "last_checked_at": "` + LastCheckedAt.UTC().Format(time.RFC3339) + `", + "gathered_at": "` + LastCheckedAt.UTC().Format(time.RFC3339) + `" }, "reports": [ { @@ -792,7 +793,8 @@ var ( "report": { "meta": { "count": 2, - "last_checked_at": "` + LastCheckedAt.UTC().Format(time.RFC3339) + `" + "last_checked_at": "` + LastCheckedAt.UTC().Format(time.RFC3339) + `", + "gathered_at": "` + LastCheckedAt.UTC().Format(time.RFC3339) + `" }, "reports": [ { @@ -852,7 +854,8 @@ var ( "report": { "meta": { "count": 2, - "last_checked_at": "` + LastCheckedAt.UTC().Format(time.RFC3339) + `" + "last_checked_at": "` + LastCheckedAt.UTC().Format(time.RFC3339) + `", + "gathered_at": "` + LastCheckedAt.UTC().Format(time.RFC3339) + `" }, "reports": [ { @@ -967,7 +970,8 @@ var ( "report": { "meta": { "count": 3, - "last_checked_at": "` + LastCheckedAt.UTC().Format(time.RFC3339) + `" + "last_checked_at": "` + LastCheckedAt.UTC().Format(time.RFC3339) + `", + "gathered_at": "` + LastCheckedAt.UTC().Format(time.RFC3339) + `" }, "reports": [ ` + toJSON(RuleOnReport1) + `, @@ -1057,7 +1061,7 @@ var ( }` ResponseRule1DisabledSystemWide = struct { - Status string `json:"status"` + Status string `json:"status"` RuleDisable []types.SystemWideRuleDisable `json:"disabledRules"` }{ Status: "ok", @@ -1073,7 +1077,7 @@ var ( } ResponseRule2DisabledSystemWide = struct { - Status string `json:"status"` + Status string `json:"status"` RuleDisable []types.SystemWideRuleDisable `json:"disabledRules"` }{ Status: "ok",