adding control id

This commit is contained in:
lalafi@cyberarmor.io
2021-09-12 19:28:11 +03:00
parent aad32ec965
commit 2ceb5150e2
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -33,7 +33,8 @@ func MockFrameworkReportA() *FrameworkReport {
Name: AMockFrameworkName,
ControlReports: []ControlReport{
{
Name: AMockControlName,
ControlID: "testctrl",
Name: AMockControlName,
RuleReports: []RuleReport{
{
Name: AMockRuleName,
+1
View File
@@ -121,6 +121,7 @@ func (opap *OPAProcessor) processControl(control *opapolicy.Control) (*opapolicy
controlReport := opapolicy.ControlReport{}
controlReport.PortalBase = control.PortalBase
controlReport.ControlID = control.ControlID
controlReport.Name = control.Name
controlReport.Description = control.Description