Skip to content

Commit

Permalink
absorb breaking enum name change in test files excluded by build tag
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Oct 22, 2024
1 parent af63c75 commit 198cb79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apstra/two_stage_l3_clos_remote_gateways_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func TestCreateDeleteRemoteGateway(t *testing.T) {
}

var remoteGwCfgs []RemoteGatewayData
for _, routeType := range enum.RemoteGatewayRouteTypesEnum.Members() {
for _, routeType := range enum.RemoteGatewayRouteTypes.Members() {
remoteGwCfgs = append(remoteGwCfgs, RemoteGatewayData{
RouteTypes: routeType,
LocalGwNodes: nil, // blueprint-specific details set in client loop below
Expand All @@ -116,7 +116,7 @@ func TestCreateDeleteRemoteGateway(t *testing.T) {
}

randomGwCfgWithNil := RemoteGatewayData{
RouteTypes: enum.RemoteGatewayRouteTypesEnum.Members()[rand.Intn(len(enum.RemoteGatewayRouteTypesEnum.Members()))],
RouteTypes: enum.RemoteGatewayRouteTypes.Members()[rand.Intn(len(enum.RemoteGatewayRouteTypes.Members()))],
LocalGwNodes: nil,
GwAsn: rand.Uint32(),
}
Expand All @@ -126,7 +126,7 @@ func TestCreateDeleteRemoteGateway(t *testing.T) {
randHoldtimeTimer := uint16(rand.Int())
randomPassword := randString(5, "hex")
randomGwCfg := RemoteGatewayData{
RouteTypes: enum.RemoteGatewayRouteTypesEnum.Members()[rand.Intn(len(enum.RemoteGatewayRouteTypesEnum.Members()))],
RouteTypes: enum.RemoteGatewayRouteTypes.Members()[rand.Intn(len(enum.RemoteGatewayRouteTypes.Members()))],
LocalGwNodes: nil,
GwAsn: rand.Uint32(),
Ttl: &randTtl,
Expand Down

0 comments on commit 198cb79

Please sign in to comment.