Skip to content

Commit

Permalink
Merge pull request #178 from joselsegura/gathered_at_in_metadata
Browse files Browse the repository at this point in the history
Update test data to include gathered_at
  • Loading branch information
dpensi authored Mar 11, 2022
2 parents 959d2c4 + 58a55b9 commit c19dd04
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
16 changes: 10 additions & 6 deletions testdata/testdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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) + `,
Expand Down Expand Up @@ -1057,7 +1061,7 @@ var (
}`

ResponseRule1DisabledSystemWide = struct {
Status string `json:"status"`
Status string `json:"status"`
RuleDisable []types.SystemWideRuleDisable `json:"disabledRules"`
}{
Status: "ok",
Expand All @@ -1073,7 +1077,7 @@ var (
}

ResponseRule2DisabledSystemWide = struct {
Status string `json:"status"`
Status string `json:"status"`
RuleDisable []types.SystemWideRuleDisable `json:"disabledRules"`
}{
Status: "ok",
Expand Down

0 comments on commit c19dd04

Please sign in to comment.