Skip to content

Commit 27bfbee

Browse files
authored
Merge pull request #422 from armosec/updateriskfacotrs
Add new risk factor mapping for C-0266 and update test expectations
2 parents 691444c + 7fea3e9 commit 27bfbee

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

armotypes/common.go

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const (
2727

2828
var RiskFactorMapping = map[string]RiskFactor{
2929
"C-0256": RiskFactorExternalFacing,
30+
"C-0266": RiskFactorExternalFacing,
3031
"C-0046": RiskFactorPrivileged,
3132
"C-0057": RiskFactorPrivileged,
3233
"C-0255": RiskFactorSecretAccess,

armotypes/common_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package armotypes
22

33
import (
4-
"github.com/stretchr/testify/assert"
54
"sort"
65
"testing"
6+
7+
"github.com/stretchr/testify/assert"
78
)
89

910
func TestGetControlIDsByRiskFactors(t *testing.T) {
@@ -15,7 +16,7 @@ func TestGetControlIDsByRiskFactors(t *testing.T) {
1516
{
1617
name: "Single Risk Factor",
1718
input: "External facing",
18-
expected: []string{"C-0256"},
19+
expected: []string{"C-0256", "C-0266"},
1920
},
2021
{
2122
name: "Multiple Risk Factors",

0 commit comments

Comments
 (0)