11package exceptions
22
33import (
4+ "github.com/armosec/armoapi-go/identifiers"
45 "testing"
56
67 "github.com/kubescape/k8s-interface/workloadinterface"
@@ -23,12 +24,12 @@ func postureExceptionPolicyAlertOnlyMock() *armotypes.PostureExceptionPolicy {
2324 },
2425 PolicyType : "postureExceptionPolicy" ,
2526 Actions : []armotypes.PostureExceptionPolicyActions {armotypes .AlertOnly },
26- Resources : []armotypes .PortalDesignator {
27+ Resources : []identifiers .PortalDesignator {
2728 {
28- DesignatorType : armotypes .DesignatorAttributes ,
29+ DesignatorType : identifiers .DesignatorAttributes ,
2930 Attributes : map [string ]string {
30- armotypes .AttributeNamespace : "default" ,
31- armotypes .AttributeCluster : "unittest" ,
31+ identifiers .AttributeNamespace : "default" ,
32+ identifiers .AttributeCluster : "unittest" ,
3233 },
3334 },
3435 },
@@ -47,9 +48,9 @@ func postureLabelsRegexExceptionPolicyAlertOnlyMock() *armotypes.PostureExceptio
4748 },
4849 PolicyType : "postureExceptionPolicy" ,
4950 Actions : []armotypes.PostureExceptionPolicyActions {armotypes .AlertOnly },
50- Resources : []armotypes .PortalDesignator {
51+ Resources : []identifiers .PortalDesignator {
5152 {
52- DesignatorType : armotypes .DesignatorAttributes ,
53+ DesignatorType : identifiers .DesignatorAttributes ,
5354 Attributes : map [string ]string {
5455 "myLabelOrAnnotation" : "static_test" ,
5556 },
@@ -70,12 +71,12 @@ func postureResourceIDExceptionPolicyMock(resourceID string) *armotypes.PostureE
7071 },
7172 PolicyType : "postureExceptionPolicy" ,
7273 Actions : []armotypes.PostureExceptionPolicyActions {armotypes .AlertOnly },
73- Resources : []armotypes .PortalDesignator {
74+ Resources : []identifiers .PortalDesignator {
7475 {
75- DesignatorType : armotypes .DesignatorAttributes ,
76+ DesignatorType : identifiers .DesignatorAttributes ,
7677 Attributes : map [string ]string {
77- armotypes .AttributeCluster : "test" ,
78- armotypes .AttributeResourceID : resourceID ,
78+ identifiers .AttributeCluster : "test" ,
79+ identifiers .AttributeResourceID : resourceID ,
7980 },
8081 },
8182 },
@@ -94,9 +95,9 @@ func emptyPostureExceptionPolicyAlertOnlyMock() *armotypes.PostureExceptionPolic
9495 },
9596 PolicyType : "postureExceptionPolicy" ,
9697 Actions : []armotypes.PostureExceptionPolicyActions {armotypes .AlertOnly },
97- Resources : []armotypes .PortalDesignator {
98+ Resources : []identifiers .PortalDesignator {
9899 {
99- DesignatorType : armotypes .DesignatorAttributes ,
100+ DesignatorType : identifiers .DesignatorAttributes ,
100101 Attributes : map [string ]string {},
101102 },
102103 },
0 commit comments