Skip to content

Commit

Permalink
Update test data to include gathered_at
Browse files Browse the repository at this point in the history
  • Loading branch information
joselsegura committed Mar 11, 2022
1 parent 959d2c4 commit 58a55b9
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
@@ -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
@@ -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",

0 comments on commit 58a55b9

Please sign in to comment.