Skip to content

Commit

Permalink
Remove some gatewayTags invalid values in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
titpetric committed Jun 14, 2022
1 parent d0a32c9 commit b6d2d8e
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions gateway/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2038,10 +2038,6 @@ func TestOAS(t *testing.T) {
Value: "/oas-api/",
Strip: false,
},
GatewayTags: &oas.GatewayTags{
Enabled: false,
Tags: []string{},
},
},
}

Expand Down Expand Up @@ -2237,10 +2233,6 @@ func TestOAS(t *testing.T) {
ListenPath: oas.ListenPath{
Value: "/oas-updated",
},
GatewayTags: &oas.GatewayTags{
Enabled: false,
Tags: []string{"rainbow"},
},
},
}

Expand Down Expand Up @@ -2461,10 +2453,6 @@ func TestOAS(t *testing.T) {
fillPaths(&apiInOAS)
tykExt := apiInOAS.GetTykExtension()
tykExt.Info.Name = "patched-oas-api"
tykExt.Server.GatewayTags = &oas.GatewayTags{
Enabled: true,
Tags: []string{},
}

apiInOAS.T.Info.Title = "patched-oas-doc"
testPatchOAS(t, ts, apiInOAS, nil, apiID)
Expand All @@ -2482,10 +2470,6 @@ func TestOAS(t *testing.T) {

tykExt := apiInOAS.GetTykExtension()
delete(apiInOAS.ExtensionProps.Extensions, oas.ExtensionTykAPIGateway)
tykExt.Server.GatewayTags = &oas.GatewayTags{
Enabled: true,
Tags: []string{},
}

apiInOAS.T.Info.Title = "patched-oas-doc"
testPatchOAS(t, ts, apiInOAS, nil, apiID)
Expand Down Expand Up @@ -2522,10 +2506,6 @@ func TestOAS(t *testing.T) {
Enabled: true,
Name: customDomain,
}
expectedTykExt.Server.GatewayTags = &oas.GatewayTags{
Enabled: true,
Tags: []string{},
}

expectedTykExt.Middleware = &oas.Middleware{
Operations: oas.Operations{
Expand Down Expand Up @@ -2577,10 +2557,6 @@ func TestOAS(t *testing.T) {
Enabled: true,
Name: customDomain,
}
expectedTykExt.Server.GatewayTags = &oas.GatewayTags{
Enabled: true,
Tags: []string{},
}
expectedTykExt.Middleware = &oas.Middleware{
Operations: oas.Operations{
"petsGET": {
Expand Down

0 comments on commit b6d2d8e

Please sign in to comment.