Skip to content

Commit

Permalink
fix(bgp_policies_test.go): Add missing import statement to all test c…
Browse files Browse the repository at this point in the history
…ases
  • Loading branch information
lucasmundim authored and aauren committed Nov 3, 2021
1 parent be96dea commit a60c5a8
Showing 1 changed file with 85 additions and 0 deletions.
85 changes: 85 additions & 0 deletions pkg/controllers/routing/bgp_policies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,23 @@ func Test_AddPolicies(t *testing.T) {
RouteAction: gobgpapi.RouteAction_REJECT,
},
},
{
Name: "kube_router_import_stmt1",
Conditions: &gobgpapi.Conditions{
PrefixSet: &gobgpapi.MatchSet{
MatchType: gobgpapi.MatchType_ANY,
Name: "defaultroutedefinedset",
},
NeighborSet: &gobgpapi.MatchSet{
MatchType: gobgpapi.MatchType_ANY,
Name: "allpeerset",
},
RpkiResult: -1,
},
Actions: &gobgpapi.Actions{
RouteAction: gobgpapi.RouteAction_REJECT,
},
},
},
nil,
nil,
Expand Down Expand Up @@ -458,6 +475,23 @@ func Test_AddPolicies(t *testing.T) {
RouteAction: gobgpapi.RouteAction_REJECT,
},
},
{
Name: "kube_router_import_stmt1",
Conditions: &gobgpapi.Conditions{
PrefixSet: &gobgpapi.MatchSet{
MatchType: gobgpapi.MatchType_ANY,
Name: "defaultroutedefinedset",
},
NeighborSet: &gobgpapi.MatchSet{
MatchType: gobgpapi.MatchType_ANY,
Name: "allpeerset",
},
RpkiResult: -1,
},
Actions: &gobgpapi.Actions{
RouteAction: gobgpapi.RouteAction_REJECT,
},
},
},
nil,
nil,
Expand Down Expand Up @@ -618,6 +652,23 @@ func Test_AddPolicies(t *testing.T) {
RouteAction: gobgpapi.RouteAction_REJECT,
},
},
{
Name: "kube_router_import_stmt1",
Conditions: &gobgpapi.Conditions{
PrefixSet: &gobgpapi.MatchSet{
MatchType: gobgpapi.MatchType_ANY,
Name: "defaultroutedefinedset",
},
NeighborSet: &gobgpapi.MatchSet{
MatchType: gobgpapi.MatchType_ANY,
Name: "allpeerset",
},
RpkiResult: -1,
},
Actions: &gobgpapi.Actions{
RouteAction: gobgpapi.RouteAction_REJECT,
},
},
},
nil,
nil,
Expand Down Expand Up @@ -777,6 +828,23 @@ func Test_AddPolicies(t *testing.T) {
RouteAction: gobgpapi.RouteAction_REJECT,
},
},
{
Name: "kube_router_import_stmt1",
Conditions: &gobgpapi.Conditions{
PrefixSet: &gobgpapi.MatchSet{
MatchType: gobgpapi.MatchType_ANY,
Name: "defaultroutedefinedset",
},
NeighborSet: &gobgpapi.MatchSet{
MatchType: gobgpapi.MatchType_ANY,
Name: "allpeerset",
},
RpkiResult: -1,
},
Actions: &gobgpapi.Actions{
RouteAction: gobgpapi.RouteAction_REJECT,
},
},
},
nil,
fmt.Errorf("both %s and %s must be set", pathPrependASNAnnotation, pathPrependRepeatNAnnotation),
Expand Down Expand Up @@ -941,6 +1009,23 @@ func Test_AddPolicies(t *testing.T) {
RouteAction: gobgpapi.RouteAction_REJECT,
},
},
{
Name: "kube_router_import_stmt1",
Conditions: &gobgpapi.Conditions{
PrefixSet: &gobgpapi.MatchSet{
MatchType: gobgpapi.MatchType_ANY,
Name: "defaultroutedefinedset",
},
NeighborSet: &gobgpapi.MatchSet{
MatchType: gobgpapi.MatchType_ANY,
Name: "allpeerset",
},
RpkiResult: -1,
},
Actions: &gobgpapi.Actions{
RouteAction: gobgpapi.RouteAction_REJECT,
},
},
},
nil,
nil,
Expand Down

0 comments on commit a60c5a8

Please sign in to comment.