-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(report): Add CreatedAt to the JSON report. (#5542) #5549
Conversation
pkg/cloud/aws/commands/run_test.go
Outdated
@@ -1125,6 +1129,7 @@ Summary Report for compliance: my-custom-spec | |||
} | |||
for _, test := range tests { | |||
t.Run(test.name, func(t *testing.T) { | |||
clock.SetFakeTime(t, time.Date(2021, 8, 25, 12, 20, 30, 5, time.UTC)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious why this particular timestamp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simar7
It doesn't specify this date intendly. I consider that it just imitates the conventional test code with clock.SetFakeTime
.
It will be fine to be used any date.
You need to update integration tests as well. Add |
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
I completely forgot about the module/VM tests. I've updated them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to change the type of CreatedAt
from int
to time.Time
, but we can change it later.
Description
Add CreatedAt to the JSON report.
Related issues
Checklist