diff --git a/policy/resolved_policy_builder.go b/policy/resolved_policy_builder.go index e60f66e1..d7e355f6 100644 --- a/policy/resolved_policy_builder.go +++ b/policy/resolved_policy_builder.go @@ -1024,7 +1024,7 @@ func (b *resolvedPolicyBuilder) addControl(control *ControlMap) bool { } qNode, ok := n.(*rpBuilderGenericQueryNode) if ok { - b.addEdge(qNode.selectedCodeId, control.Mrn, nil) + b.addEdge(qNode.selectedCodeId, control.Mrn, &explorer.Impact{Scoring: explorer.ScoringSystem_IGNORE_SCORE}) hasChild = true } } diff --git a/policy/resolver_v2_test.go b/policy/resolver_v2_test.go index fb7b59d2..dadaed59 100644 --- a/policy/resolver_v2_test.go +++ b/policy/resolver_v2_test.go @@ -903,11 +903,11 @@ framework_maps: rpTester.ReportingJobByMrn(queryMrn("check-pass-2")).Notifies(policyMrn("policy1")) rpTester.CodeIdReportingJobForMrn(queryMrn("active-query")).Notifies(queryMrn("active-query")) - rpTester.CodeIdReportingJobForMrn(queryMrn("active-query")).Notifies(controlMrn("control1")) + rpTester.CodeIdReportingJobForMrn(queryMrn("active-query")).Notifies(controlMrn("control1")).WithImpact(&explorer.Impact{Scoring: explorer.ScoringSystem_IGNORE_SCORE}) rpTester.ReportingJobByMrn(queryMrn("active-query")).Notifies(policyMrn("policy1")) rpTester.CodeIdReportingJobForMrn(queryMrn("active-query-2")).Notifies(queryMrn("active-query-2")) - rpTester.CodeIdReportingJobForMrn(queryMrn("active-query-2")).Notifies(controlMrn("control1")) + rpTester.CodeIdReportingJobForMrn(queryMrn("active-query-2")).Notifies(controlMrn("control1")).WithImpact(&explorer.Impact{Scoring: explorer.ScoringSystem_IGNORE_SCORE}) rpTester.ReportingJobByMrn(queryMrn("active-query-2")).Notifies(policyMrn("policy1")) rpTester.ReportingJobByMrn(queryMrn("check-overlap")).Notifies(policyMrn("policy1"))