Skip to content

Commit

Permalink
Merge pull request #167 from dpensi/fix-api-v1
Browse files Browse the repository at this point in the history
fixed impact type
  • Loading branch information
dpensi authored Oct 19, 2021
2 parents a6a764d + f87a33c commit f102b56
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions testdata/testdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ var (
Reason: RuleErrorKey1.Reason,
Resolution: RuleErrorKey1.Resolution,
MoreInfo: RuleErrorKey1.MoreInfo,
TotalRisk: (RuleErrorKey1.Impact + RuleErrorKey1.Likelihood) / 2,
TotalRisk: (RuleErrorKey1.Impact.Impact + RuleErrorKey1.Likelihood) / 2,
Metadata: types.ErrorKeyMetadata{
Description: RuleErrorKey1.Description,
Impact: RuleErrorKey1.Impact,
Impact: RuleErrorKey1.Impact.Impact,
Likelihood: RuleErrorKey1.Likelihood,
PublishDate: timeToStr(RuleErrorKey1.PublishDate),
Status: statusToStr(RuleErrorKey1.Active),
Expand Down Expand Up @@ -247,10 +247,10 @@ var (
Reason: RuleErrorKey2.Reason,
Resolution: RuleErrorKey2.Resolution,
MoreInfo: RuleErrorKey2.MoreInfo,
TotalRisk: (RuleErrorKey2.Impact + RuleErrorKey2.Likelihood) / 2,
TotalRisk: (RuleErrorKey2.Impact.Impact + RuleErrorKey2.Likelihood) / 2,
Metadata: types.ErrorKeyMetadata{
Description: RuleErrorKey2.Description,
Impact: RuleErrorKey2.Impact,
Impact: RuleErrorKey2.Impact.Impact,
Likelihood: RuleErrorKey2.Likelihood,
PublishDate: timeToStr(RuleErrorKey2.PublishDate),
Status: statusToStr(RuleErrorKey2.Active),
Expand Down Expand Up @@ -278,10 +278,10 @@ var (
Reason: RuleErrorKey3.Reason,
Resolution: RuleErrorKey3.Resolution,
MoreInfo: RuleErrorKey3.MoreInfo,
TotalRisk: (RuleErrorKey3.Impact + RuleErrorKey3.Likelihood) / 2,
TotalRisk: (RuleErrorKey3.Impact.Impact + RuleErrorKey3.Likelihood) / 2,
Metadata: types.ErrorKeyMetadata{
Description: RuleErrorKey3.Description,
Impact: RuleErrorKey3.Impact,
Impact: RuleErrorKey3.Impact.Impact,
Likelihood: RuleErrorKey3.Likelihood,
PublishDate: timeToStr(RuleErrorKey3.PublishDate),
Status: statusToStr(RuleErrorKey3.Active),
Expand Down Expand Up @@ -309,10 +309,10 @@ var (
Reason: RuleErrorKey4.Reason,
Resolution: RuleErrorKey4.Resolution,
MoreInfo: RuleErrorKey4.MoreInfo,
TotalRisk: (RuleErrorKey4.Impact + RuleErrorKey4.Likelihood) / 2,
TotalRisk: (RuleErrorKey4.Impact.Impact + RuleErrorKey4.Likelihood) / 2,
Metadata: types.ErrorKeyMetadata{
Description: RuleErrorKey4.Description,
Impact: RuleErrorKey4.Impact,
Impact: RuleErrorKey4.Impact.Impact,
Likelihood: RuleErrorKey4.Likelihood,
PublishDate: "2019-10-29 15:00:00",
Status: statusToStr(RuleErrorKey4.Active),
Expand Down Expand Up @@ -340,10 +340,10 @@ var (
Reason: RuleErrorKey5.Reason,
Resolution: RuleErrorKey5.Resolution,
MoreInfo: RuleErrorKey5.MoreInfo,
TotalRisk: (RuleErrorKey5.Impact + RuleErrorKey5.Likelihood) / 2,
TotalRisk: (RuleErrorKey5.Impact.Impact + RuleErrorKey5.Likelihood) / 2,
Metadata: types.ErrorKeyMetadata{
Description: RuleErrorKey5.Description,
Impact: RuleErrorKey5.Impact,
Impact: RuleErrorKey5.Impact.Impact,
Likelihood: RuleErrorKey5.Likelihood,
PublishDate: timeToStr(RuleErrorKey5.PublishDate),
Status: statusToStr(RuleErrorKey5.Active),
Expand Down Expand Up @@ -441,7 +441,7 @@ var (
ErrorKey: RuleErrorKey1.ErrorKey,
Condition: RuleErrorKey1.Condition,
Description: RuleErrorKey1.Description,
TotalRisk: (RuleErrorKey1.Impact + RuleErrorKey1.Likelihood) / 2,
TotalRisk: (RuleErrorKey1.Impact.Impact + RuleErrorKey1.Likelihood) / 2,
PublishDate: RuleErrorKey1.PublishDate,
Active: RuleErrorKey1.Active,
Generic: RuleErrorKey1.Generic,
Expand All @@ -457,7 +457,7 @@ var (
ErrorKey: RuleErrorKey2.ErrorKey,
Condition: RuleErrorKey2.Condition,
Description: RuleErrorKey2.Description,
TotalRisk: (RuleErrorKey2.Impact + RuleErrorKey2.Likelihood) / 2,
TotalRisk: (RuleErrorKey2.Impact.Impact + RuleErrorKey2.Likelihood) / 2,
PublishDate: RuleErrorKey2.PublishDate,
Active: RuleErrorKey2.Active,
Generic: RuleErrorKey2.Generic,
Expand All @@ -473,7 +473,7 @@ var (
ErrorKey: RuleErrorKey3.ErrorKey,
Condition: RuleErrorKey3.Condition,
Description: RuleErrorKey3.Description,
TotalRisk: (RuleErrorKey3.Impact + RuleErrorKey3.Likelihood) / 2,
TotalRisk: (RuleErrorKey3.Impact.Impact + RuleErrorKey3.Likelihood) / 2,
PublishDate: RuleErrorKey3.PublishDate,
Active: RuleErrorKey3.Active,
Generic: RuleErrorKey3.Generic,
Expand Down

0 comments on commit f102b56

Please sign in to comment.