tyk
tyk copied to clipboard
Validate that is not required a cert in control api (WIP)
Description
Related Issue
Motivation and Context
How This Has Been Tested
Screenshots (if appropriate)
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Refactoring or add test (improvements in base code or adds test coverage to functionality)
Checklist
- [ ] Make sure you are requesting to pull a topic/feature/bugfix branch (right side). If pulling from your own
fork, don't request your
master
! - [ ] Make sure you are making a pull request against the
master
branch (left side). Also, you should start your branch off our latestmaster
. - [ ] My change requires a change to the documentation.
- [ ] If you've changed APIs, describe what needs to be updated in the documentation.
- [ ] If new config option added, ensure that it can be set via ENV variable
- [ ] I have updated the documentation accordingly.
- [ ] Modules and vendor dependencies have been updated; run
go mod tidy && go mod vendor
- [ ] When updating library version must provide reason/explanation for this update.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
- [ ] Check your code additions will not fail linting checks:
- [ ]
go fmt -s
- [ ]
go vet
- [ ]
:boom: CI tests failed :see_no_evil:
CI test log
Building go plugin
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=tyk.cov github.com/TykTechnologies/tyk
? github.com/TykTechnologies/tyk [no test files]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=apidef.cov github.com/TykTechnologies/tyk/apidef
=== RUN TestSchema
--- PASS: TestSchema (0.02s)
=== RUN TestEncodeForDB
=== RUN TestEncodeForDB/update_ScopeClaim_when_Scopes.JWT_is_not_empty_and_OIDC_is_not_enabled
=== RUN TestEncodeForDB/update_ScopeClaim_when_Scopes.OIDC_is_not_empty_and_OpenID_is_enabled
=== RUN TestEncodeForDB/EncodeForDB_persist_schema_objects_from_extended_path
--- PASS: TestEncodeForDB (0.00s)
--- PASS: TestEncodeForDB/update_ScopeClaim_when_Scopes.JWT_is_not_empty_and_OIDC_is_not_enabled (0.00s)
--- PASS: TestEncodeForDB/update_ScopeClaim_when_Scopes.OIDC_is_not_empty_and_OpenID_is_enabled (0.00s)
--- PASS: TestEncodeForDB/EncodeForDB_persist_schema_objects_from_extended_path (0.00s)
=== RUN TestDecodeFromDB
=== RUN TestDecodeFromDB/update_Scopes.JWT_when_JWTScopeClaimName_is_not_empty
time="Jun 14 15:40:29" level=error msg="Couldn't Decode, leaving as it may be legacy..."
=== RUN TestDecodeFromDB/update_Scopes.OIDC_when_JWTScopeClaimName_is_not_empty_and_OpenID_is_enabled
time="Jun 14 15:40:29" level=error msg="Couldn't Decode, leaving as it may be legacy..."
--- PASS: TestDecodeFromDB (0.00s)
--- PASS: TestDecodeFromDB/update_Scopes.JWT_when_JWTScopeClaimName_is_not_empty (0.00s)
--- PASS: TestDecodeFromDB/update_Scopes.OIDC_when_JWTScopeClaimName_is_not_empty_and_OpenID_is_enabled (0.00s)
=== RUN TestSchemaGraphqlConfig
--- PASS: TestSchemaGraphqlConfig (0.01s)
=== RUN TestAPIDefinition_DecodeFromDB_AuthDeprecation
time="Jun 14 15:40:29" level=error msg="Couldn't Decode, leaving as it may be legacy..."
time="Jun 14 15:40:29" level=error msg="Couldn't Decode, leaving as it may be legacy..."
--- PASS: TestAPIDefinition_DecodeFromDB_AuthDeprecation (0.00s)
=== RUN TestAPIDefinition_GenerateAPIID
--- PASS: TestAPIDefinition_GenerateAPIID (0.00s)
=== RUN TestAPIDefinition_MigrateVersioning
--- PASS: TestAPIDefinition_MigrateVersioning (0.00s)
=== RUN TestAPIDefinition_MigrateVersioning_Disabled
=== RUN TestAPIDefinition_MigrateVersioning_Disabled/multiple_versions
=== RUN TestAPIDefinition_MigrateVersioning_Disabled/one_version
--- PASS: TestAPIDefinition_MigrateVersioning_Disabled (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_Disabled/multiple_versions (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_Disabled/one_version (0.00s)
=== RUN TestAPIDefinition_MigrateVersioning_DefaultEmpty
=== RUN TestAPIDefinition_MigrateVersioning_DefaultEmpty/Default
--- PASS: TestAPIDefinition_MigrateVersioning_DefaultEmpty (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_DefaultEmpty/Default (0.00s)
=== RUN TestAPIDefinition_MigrateVersioning_Expires
=== RUN TestAPIDefinition_MigrateVersioning_Expires/version_enabled
=== RUN TestAPIDefinition_MigrateVersioning_Expires/version_disabled
--- PASS: TestAPIDefinition_MigrateVersioning_Expires (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_Expires/version_enabled (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_Expires/version_disabled (0.00s)
=== RUN TestAPIDefinition_MigrateVersioning_OverrideTarget
=== RUN TestAPIDefinition_MigrateVersioning_OverrideTarget/base
=== RUN TestAPIDefinition_MigrateVersioning_OverrideTarget/version
--- PASS: TestAPIDefinition_MigrateVersioning_OverrideTarget (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_OverrideTarget/base (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_OverrideTarget/version (0.00s)
=== RUN TestAPIDefinition_MigrateVersioning_StripPath
=== RUN TestAPIDefinition_MigrateVersioning_StripPath/url
=== RUN TestAPIDefinition_MigrateVersioning_StripPath/param
=== RUN TestAPIDefinition_MigrateVersioning_StripPath/header
--- PASS: TestAPIDefinition_MigrateVersioning_StripPath (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_StripPath/url (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_StripPath/param (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_StripPath/header (0.00s)
=== RUN TestAPIDefinition_MigrateEndpointMeta
--- PASS: TestAPIDefinition_MigrateEndpointMeta (0.00s)
=== RUN TestAPIDefinition_MigrateCachePlugin
--- PASS: TestAPIDefinition_MigrateCachePlugin (0.00s)
=== RUN TestAPIDefinition_MigrateAuthConfigNames
--- PASS: TestAPIDefinition_MigrateAuthConfigNames (0.00s)
=== RUN TestValidationResult_HasErrors
--- PASS: TestValidationResult_HasErrors (0.00s)
=== RUN TestValidationResult_FirstError
--- PASS: TestValidationResult_FirstError (0.00s)
=== RUN TestValidationResult_ErrorStrings
--- PASS: TestValidationResult_ErrorStrings (0.00s)
=== RUN TestRuleUniqueDataSourceNames_Validate
=== RUN TestRuleUniqueDataSourceNames_Validate/should_return_invalid_when_data_source_name_is_duplicated
=== RUN TestRuleUniqueDataSourceNames_Validate/return_valid_when_data_source_names_are_not_duplicated
=== RUN TestRuleUniqueDataSourceNames_Validate/return_valid_when_there_are_no_data_sources
--- PASS: TestRuleUniqueDataSourceNames_Validate (0.00s)
--- PASS: TestRuleUniqueDataSourceNames_Validate/should_return_invalid_when_data_source_name_is_duplicated (0.00s)
--- PASS: TestRuleUniqueDataSourceNames_Validate/return_valid_when_data_source_names_are_not_duplicated (0.00s)
--- PASS: TestRuleUniqueDataSourceNames_Validate/return_valid_when_there_are_no_data_sources (0.00s)
=== RUN TestRuleAtLeastEnableOneAuthConfig_Validate
=== RUN TestRuleAtLeastEnableOneAuthConfig_Validate/should_return_invalid_when_all_sources_are_disabled_for_enabled_auth_mechanisms
=== RUN TestRuleAtLeastEnableOneAuthConfig_Validate/should_return_valid_when_at_least_one_source_is_enabled_for_enabled_auth_mechanisms
--- PASS: TestRuleAtLeastEnableOneAuthConfig_Validate (0.00s)
--- PASS: TestRuleAtLeastEnableOneAuthConfig_Validate/should_return_invalid_when_all_sources_are_disabled_for_enabled_auth_mechanisms (0.00s)
--- PASS: TestRuleAtLeastEnableOneAuthConfig_Validate/should_return_valid_when_at_least_one_source_is_enabled_for_enabled_auth_mechanisms (0.00s)
PASS
coverage: 61.7% of statements
ok github.com/TykTechnologies/tyk/apidef 0.082s coverage: 61.7% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=adapter.cov github.com/TykTechnologies/tyk/apidef/adapter
=== RUN TestGraphQLConfigAdapter_EngineConfigV2
=== RUN TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_proxy-only_mode
=== RUN TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_internal_proxy-only_api
=== RUN TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_engine_execution_mode_without_error
=== RUN TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_supergraph_execution_mode_without_error
=== RUN TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_supergraph_with_batching_disabled
=== RUN TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_subgraph_without_error
=== RUN TestGraphQLConfigAdapter_EngineConfigV2/should_return_an_error_for_unsupported_config
--- PASS: TestGraphQLConfigAdapter_EngineConfigV2 (0.04s)
--- PASS: TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_proxy-only_mode (0.01s)
--- PASS: TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_internal_proxy-only_api (0.00s)
--- PASS: TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_engine_execution_mode_without_error (0.01s)
--- PASS: TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_supergraph_execution_mode_without_error (0.01s)
--- PASS: TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_supergraph_with_batching_disabled (0.01s)
--- PASS: TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_subgraph_without_error (0.01s)
--- PASS: TestGraphQLConfigAdapter_EngineConfigV2/should_return_an_error_for_unsupported_config (0.00s)
=== RUN TestGraphQLConfigAdapter_supergraphDataSourceConfigs
--- PASS: TestGraphQLConfigAdapter_supergraphDataSourceConfigs (0.00s)
=== RUN TestGraphQLConfigAdapter_engineConfigV2FieldConfigs
--- PASS: TestGraphQLConfigAdapter_engineConfigV2FieldConfigs (0.01s)
=== RUN TestGraphQLConfigAdapter_engineConfigV2DataSources
--- PASS: TestGraphQLConfigAdapter_engineConfigV2DataSources (0.01s)
PASS
coverage: 88.9% of statements
ok github.com/TykTechnologies/tyk/apidef/adapter 0.113s coverage: 88.9% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=importer.cov github.com/TykTechnologies/tyk/apidef/importer
=== RUN TestToAPIDefinition_Swagger
--- PASS: TestToAPIDefinition_Swagger (0.00s)
=== RUN TestToAPIDefinition_WSDL
time="Jun 14 15:40:32" level=error msg="Port for service HolidayService2 not found. Skiping processing of the service"
time="Jun 14 15:40:32" level=error msg="Unsupported transport protocol. Skipping process of the service StockQuoteService"
time="Jun 14 15:40:32" level=error msg="Port for service StockQuoteService not found. Skiping processing of the service"
--- PASS: TestToAPIDefinition_WSDL (0.02s)
PASS
coverage: 65.7% of statements
ok github.com/TykTechnologies/tyk/apidef/importer 0.061s coverage: 65.7% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=oas.cov github.com/TykTechnologies/tyk/apidef/oas
=== RUN TestAuthentication
=== RUN TestAuthentication/Fill_just_GoPlugin
--- PASS: TestAuthentication (0.00s)
--- PASS: TestAuthentication/Fill_just_GoPlugin (0.00s)
=== RUN TestScopes
--- PASS: TestScopes (0.00s)
=== RUN TestAuthSources
--- PASS: TestAuthSources (0.00s)
=== RUN TestAuthSource
=== RUN TestAuthSource/param
=== RUN TestAuthSource/cookie
--- PASS: TestAuthSource (0.00s)
--- PASS: TestAuthSource/param (0.00s)
--- PASS: TestAuthSource/cookie (0.00s)
=== RUN TestSignature
--- PASS: TestSignature (0.00s)
=== RUN TestHMAC
--- PASS: TestHMAC (0.00s)
=== RUN TestOIDC
--- PASS: TestOIDC (0.00s)
=== RUN TestGoPlugin
--- PASS: TestGoPlugin (0.00s)
=== RUN TestCustomPlugin
--- PASS: TestCustomPlugin (0.00s)
=== RUN TestOAS_BuildDefaultTykExtension
=== PAUSE TestOAS_BuildDefaultTykExtension
=== RUN TestGetTykExtensionConfigParams
=== RUN TestGetTykExtensionConfigParams/extract_all_params_when_provided
=== RUN TestGetTykExtensionConfigParams/nil_when_no_params_provided
=== RUN TestGetTykExtensionConfigParams/nil_for_middleware_when_params_not_provided
=== RUN TestGetTykExtensionConfigParams/not_nil_when_at_least_one_parameter_is_provided
--- PASS: TestGetTykExtensionConfigParams (0.00s)
--- PASS: TestGetTykExtensionConfigParams/extract_all_params_when_provided (0.00s)
--- PASS: TestGetTykExtensionConfigParams/nil_when_no_params_provided (0.00s)
--- PASS: TestGetTykExtensionConfigParams/nil_for_middleware_when_params_not_provided (0.00s)
--- PASS: TestGetTykExtensionConfigParams/not_nil_when_at_least_one_parameter_is_provided (0.00s)
=== RUN TestOAS_importAuthentication
=== RUN TestOAS_importAuthentication/security_is_empty
=== RUN TestOAS_importAuthentication/add_first_authentication_in_case_of_OR_condition
=== RUN TestOAS_importAuthentication/add_first_authentication_in_case_of_OR_condition/enable=true
=== RUN TestOAS_importAuthentication/add_first_authentication_in_case_of_OR_condition/enable=false
=== RUN TestOAS_importAuthentication/update_existing_one
=== RUN TestOAS_importAuthentication/add_multiple_authentication_with_AND_condition
=== RUN TestOAS_importAuthentication/add_multiple_authentication_with_AND_condition/enable=true
=== RUN TestOAS_importAuthentication/add_multiple_authentication_with_AND_condition/enable=false
--- PASS: TestOAS_importAuthentication (0.00s)
--- PASS: TestOAS_importAuthentication/security_is_empty (0.00s)
--- PASS: TestOAS_importAuthentication/add_first_authentication_in_case_of_OR_condition (0.00s)
--- PASS: TestOAS_importAuthentication/add_first_authentication_in_case_of_OR_condition/enable=true (0.00s)
--- PASS: TestOAS_importAuthentication/add_first_authentication_in_case_of_OR_condition/enable=false (0.00s)
--- PASS: TestOAS_importAuthentication/update_existing_one (0.00s)
--- PASS: TestOAS_importAuthentication/add_multiple_authentication_with_AND_condition (0.00s)
--- PASS: TestOAS_importAuthentication/add_multiple_authentication_with_AND_condition/enable=true (0.00s)
--- PASS: TestOAS_importAuthentication/add_multiple_authentication_with_AND_condition/enable=false (0.00s)
=== RUN TestSecuritySchemes_Import
=== RUN TestSecuritySchemes_Import/token
=== RUN TestSecuritySchemes_Import/token/enable=true
=== RUN TestSecuritySchemes_Import/token/enable=false
=== RUN TestSecuritySchemes_Import/jwt
=== RUN TestSecuritySchemes_Import/basic
=== RUN TestSecuritySchemes_Import/oauth
=== RUN TestSecuritySchemes_Import/unsupported_scheme
=== RUN TestSecuritySchemes_Import/update_existing_one
--- PASS: TestSecuritySchemes_Import (0.00s)
--- PASS: TestSecuritySchemes_Import/token (0.00s)
--- PASS: TestSecuritySchemes_Import/token/enable=true (0.00s)
--- PASS: TestSecuritySchemes_Import/token/enable=false (0.00s)
--- PASS: TestSecuritySchemes_Import/jwt (0.00s)
--- PASS: TestSecuritySchemes_Import/basic (0.00s)
--- PASS: TestSecuritySchemes_Import/oauth (0.00s)
--- PASS: TestSecuritySchemes_Import/unsupported_scheme (0.00s)
--- PASS: TestSecuritySchemes_Import/update_existing_one (0.00s)
=== RUN TestSecuritySchemes_GetBaseIdentityProvider
=== RUN TestSecuritySchemes_GetBaseIdentityProvider/empty
=== RUN TestSecuritySchemes_GetBaseIdentityProvider/empty/zero
=== RUN TestSecuritySchemes_GetBaseIdentityProvider/empty/one
=== RUN TestSecuritySchemes_GetBaseIdentityProvider/token
=== RUN TestSecuritySchemes_GetBaseIdentityProvider/jwt
=== RUN TestSecuritySchemes_GetBaseIdentityProvider/oauth
--- PASS: TestSecuritySchemes_GetBaseIdentityProvider (0.00s)
--- PASS: TestSecuritySchemes_GetBaseIdentityProvider/empty (0.00s)
--- PASS: TestSecuritySchemes_GetBaseIdentityProvider/empty/zero (0.00s)
--- PASS: TestSecuritySchemes_GetBaseIdentityProvider/empty/one (0.00s)
--- PASS: TestSecuritySchemes_GetBaseIdentityProvider/token (0.00s)
--- PASS: TestSecuritySchemes_GetBaseIdentityProvider/jwt (0.00s)
--- PASS: TestSecuritySchemes_GetBaseIdentityProvider/oauth (0.00s)
=== RUN TestToken_Import
--- PASS: TestToken_Import (0.00s)
=== RUN TestAuthSources_Import
=== RUN TestAuthSources_Import/header
=== RUN TestAuthSources_Import/query
=== RUN TestAuthSources_Import/cookie
--- PASS: TestAuthSources_Import (0.00s)
--- PASS: TestAuthSources_Import/header (0.00s)
--- PASS: TestAuthSources_Import/query (0.00s)
--- PASS: TestAuthSources_Import/cookie (0.00s)
=== RUN TestJWT_Import
--- PASS: TestJWT_Import (0.00s)
=== RUN TestBasic_Import
--- PASS: TestBasic_Import (0.00s)
=== RUN TestOAuth_Import
--- PASS: TestOAuth_Import (0.00s)
=== RUN TestRetainOldServerURL
=== RUN TestRetainOldServerURL/empty_old_servers
=== RUN TestRetainOldServerURL/existing_old_servers
=== RUN TestRetainOldServerURL/duplicate_in_servers
=== RUN TestRetainOldServerURL/empty_new_servers
=== RUN TestRetainOldServerURL/empty_old_servers#01
--- PASS: TestRetainOldServerURL (0.00s)
--- PASS: TestRetainOldServerURL/empty_old_servers (0.00s)
--- PASS: TestRetainOldServerURL/existing_old_servers (0.00s)
--- PASS: TestRetainOldServerURL/duplicate_in_servers (0.00s)
--- PASS: TestRetainOldServerURL/empty_new_servers (0.00s)
--- PASS: TestRetainOldServerURL/empty_old_servers#01 (0.00s)
=== RUN TestMiddleware
--- PASS: TestMiddleware (0.00s)
=== RUN TestGlobal
--- PASS: TestGlobal (0.00s)
=== RUN TestCORS
--- PASS: TestCORS (0.00s)
=== RUN TestCache
--- PASS: TestCache (0.00s)
=== RUN TestExtendedPaths
=== RUN TestExtendedPaths/empty
=== RUN TestExtendedPaths/filled
--- PASS: TestExtendedPaths (0.01s)
--- PASS: TestExtendedPaths/empty (0.00s)
--- PASS: TestExtendedPaths/filled (0.00s)
=== RUN TestMockResponse
--- PASS: TestMockResponse (0.00s)
=== RUN TestOAS
=== PAUSE TestOAS
=== RUN TestOAS_AddServers
=== PAUSE TestOAS_AddServers
=== RUN TestOAS_UpdateServers
=== PAUSE TestOAS_UpdateServers
=== RUN TestOAS_GetSecuritySchemes
--- PASS: TestOAS_GetSecuritySchemes (0.01s)
=== RUN Test_toStructIfMap
--- PASS: Test_toStructIfMap (0.00s)
=== RUN TestShouldOmit
--- PASS: TestShouldOmit (0.00s)
=== RUN TestOAS_PathsAndOperations
=== PAUSE TestOAS_PathsAndOperations
=== RUN TestOAS_PathsAndOperationsRegex
=== PAUSE TestOAS_PathsAndOperationsRegex
=== RUN TestOAS_RegexOperationIDs
=== PAUSE TestOAS_RegexOperationIDs
=== RUN TestOAS_RegexPaths
=== PAUSE TestOAS_RegexPaths
=== RUN TestValidateRequest
=== RUN TestValidateRequest/ref
=== RUN TestValidateRequest/value
--- PASS: TestValidateRequest (0.00s)
--- PASS: TestValidateRequest/ref (0.00s)
--- PASS: TestValidateRequest/value (0.00s)
=== RUN TestXTykAPIGateway
=== RUN TestXTykAPIGateway/empty
=== RUN TestXTykAPIGateway/filled_OAS
=== RUN TestXTykAPIGateway/filled_old
--- PASS: TestXTykAPIGateway (0.00s)
--- PASS: TestXTykAPIGateway/empty (0.00s)
--- SKIP: TestXTykAPIGateway/filled_OAS (0.00s)
--- SKIP: TestXTykAPIGateway/filled_old (0.00s)
=== RUN TestInfo
--- PASS: TestInfo (0.00s)
=== RUN TestState
--- PASS: TestState (0.00s)
=== RUN TestVersioning
--- PASS: TestVersioning (0.00s)
=== RUN TestOAS_Security
--- PASS: TestOAS_Security (0.00s)
=== RUN TestOAS_ApiKeyScheme
=== RUN TestOAS_ApiKeyScheme/should_not_set_header_name_in_tyk_extension
=== RUN TestOAS_ApiKeyScheme/should_not_set_query_name_in_tyk_extension
=== RUN TestOAS_ApiKeyScheme/should_not_set_cookie_name_in_tyk_extension
=== RUN TestOAS_ApiKeyScheme/already_filled_scheme_in=header_value_should_be_respected
=== RUN TestOAS_ApiKeyScheme/already_filled_scheme_in=query_value_should_be_respected
=== RUN TestOAS_ApiKeyScheme/already_filled_scheme_in=cookie_value_should_be_respected
--- PASS: TestOAS_ApiKeyScheme (0.00s)
--- PASS: TestOAS_ApiKeyScheme/should_not_set_header_name_in_tyk_extension (0.00s)
--- PASS: TestOAS_ApiKeyScheme/should_not_set_query_name_in_tyk_extension (0.00s)
--- PASS: TestOAS_ApiKeyScheme/should_not_set_cookie_name_in_tyk_extension (0.00s)
--- PASS: TestOAS_ApiKeyScheme/already_filled_scheme_in=header_value_should_be_respected (0.00s)
--- PASS: TestOAS_ApiKeyScheme/already_filled_scheme_in=query_value_should_be_respected (0.00s)
--- PASS: TestOAS_ApiKeyScheme/already_filled_scheme_in=cookie_value_should_be_respected (0.00s)
=== RUN TestOAS_Token
--- PASS: TestOAS_Token (0.00s)
=== RUN TestOAS_Token_MultipleSecuritySchemes
--- PASS: TestOAS_Token_MultipleSecuritySchemes (0.00s)
=== RUN TestOAS_AppendSecurity
=== RUN TestOAS_AppendSecurity/append_new
=== RUN TestOAS_AppendSecurity/append_same
--- PASS: TestOAS_AppendSecurity (0.00s)
--- PASS: TestOAS_AppendSecurity/append_new (0.00s)
--- PASS: TestOAS_AppendSecurity/append_same (0.00s)
=== RUN TestOAS_JWT
--- PASS: TestOAS_JWT (0.00s)
=== RUN TestOAS_Basic
--- PASS: TestOAS_Basic (0.00s)
=== RUN TestOAS_OAuth
--- PASS: TestOAS_OAuth (0.00s)
=== RUN TestOAS_OIDC
--- PASS: TestOAS_OIDC (0.00s)
=== RUN TestOAS_CustomPlugin
--- PASS: TestOAS_CustomPlugin (0.00s)
=== RUN TestOAS_GoPlugin
--- PASS: TestOAS_GoPlugin (0.00s)
=== RUN TestOAS_TykAuthentication_NoOASSecurity
--- PASS: TestOAS_TykAuthentication_NoOASSecurity (0.00s)
=== RUN TestServer
=== PAUSE TestServer
=== RUN TestListenPath
=== PAUSE TestListenPath
=== RUN TestClientCertificates
=== PAUSE TestClientCertificates
=== RUN TestPinnedPublicKeys
=== PAUSE TestPinnedPublicKeys
=== RUN TestTagsImport
=== PAUSE TestTagsImport
=== RUN TestCustomDomain
=== RUN TestCustomDomain/extractTo_api_definition
=== RUN TestCustomDomain/extractTo_api_definition/enabled=false,_name=nil
=== RUN TestCustomDomain/extractTo_api_definition/enabled=false,_name=(valid-domain)
=== RUN TestCustomDomain/extractTo_api_definition/enabled=true,_name=nil
=== RUN TestCustomDomain/extractTo_api_definition/enabled=true,_name=(valid-domain)
=== RUN TestCustomDomain/fillFrom_api_definition
=== RUN TestCustomDomain/fillFrom_api_definition/disabled=false,_name=nil
=== RUN TestCustomDomain/fillFrom_api_definition/disabled=false,_name=(valid-domain)
=== RUN TestCustomDomain/fillFrom_api_definition/disabled=true,_name=nil
=== RUN TestCustomDomain/fillFrom_api_definition/disabled=true,_name=(valid-domain)
--- PASS: TestCustomDomain (0.00s)
--- PASS: TestCustomDomain/extractTo_api_definition (0.00s)
--- PASS: TestCustomDomain/extractTo_api_definition/enabled=false,_name=nil (0.00s)
--- PASS: TestCustomDomain/extractTo_api_definition/enabled=false,_name=(valid-domain) (0.00s)
--- PASS: TestCustomDomain/extractTo_api_definition/enabled=true,_name=nil (0.00s)
--- PASS: TestCustomDomain/extractTo_api_definition/enabled=true,_name=(valid-domain) (0.00s)
--- PASS: TestCustomDomain/fillFrom_api_definition (0.00s)
--- PASS: TestCustomDomain/fillFrom_api_definition/disabled=false,_name=nil (0.00s)
--- PASS: TestCustomDomain/fillFrom_api_definition/disabled=false,_name=(valid-domain) (0.00s)
--- PASS: TestCustomDomain/fillFrom_api_definition/disabled=true,_name=nil (0.00s)
--- PASS: TestCustomDomain/fillFrom_api_definition/disabled=true,_name=(valid-domain) (0.00s)
=== RUN TestTagsExportServer
=== PAUSE TestTagsExportServer
=== RUN TestUpstream
--- PASS: TestUpstream (0.00s)
=== RUN TestServiceDiscovery
--- PASS: TestServiceDiscovery (0.00s)
=== RUN TestTest
--- PASS: TestTest (0.00s)
=== RUN TestValidateOASObject
=== PAUSE TestValidateOASObject
=== RUN Test_loadOASSchema
=== PAUSE Test_loadOASSchema
=== RUN Test_findDefaultVersion
=== PAUSE Test_findDefaultVersion
=== RUN Test_setDefaultVersion
--- PASS: Test_setDefaultVersion (0.14s)
=== RUN TestGetOASSchema
=== RUN TestGetOASSchema/return_default_version_when_req_version_is_empty
=== RUN TestGetOASSchema/return_minor_version_schema_when_req_version_is_including_patch_version
=== RUN TestGetOASSchema/return_minor_version_0_when_only_major_version_is_requested
=== RUN TestGetOASSchema/return_error_when_non_existing_oas_schema_is_requested
=== RUN TestGetOASSchema/return_error_when_requested_version_is_not_of_semver
--- PASS: TestGetOASSchema (0.14s)
--- PASS: TestGetOASSchema/return_default_version_when_req_version_is_empty (0.00s)
--- PASS: TestGetOASSchema/return_minor_version_schema_when_req_version_is_including_patch_version (0.00s)
--- PASS: TestGetOASSchema/return_minor_version_0_when_only_major_version_is_requested (0.00s)
--- PASS: TestGetOASSchema/return_error_when_non_existing_oas_schema_is_requested (0.00s)
--- PASS: TestGetOASSchema/return_error_when_requested_version_is_not_of_semver (0.00s)
=== CONT TestOAS_BuildDefaultTykExtension
=== RUN TestOAS_BuildDefaultTykExtension/build_tyk_extension_with_no_supplied_params
=== CONT Test_findDefaultVersion
=== RUN Test_findDefaultVersion/single_version
=== RUN TestOAS_BuildDefaultTykExtension/build_tyk_extension_with_supplied_params
=== RUN Test_findDefaultVersion/multiple_versions
=== RUN TestOAS_BuildDefaultTykExtension/do_not_override_existing_tyk_extension_by_default
=== RUN TestOAS_BuildDefaultTykExtension/override_existing_tyk_extension_with_supplied_params
--- PASS: Test_findDefaultVersion (0.00s)
--- PASS: Test_findDefaultVersion/single_version (0.00s)
--- PASS: Test_findDefaultVersion/multiple_versions (0.00s)
=== CONT TestOAS_RegexPaths
=== RUN TestOAS_BuildDefaultTykExtension/error_when_supplied_invalid_upstreamURL_param
=== RUN TestOAS_BuildDefaultTykExtension/error_when_no_supplied_params_and_invalid_URL_in_servers
--- PASS: TestOAS_RegexPaths (0.00s)
=== CONT Test_loadOASSchema
=== RUN Test_loadOASSchema/load_OAS
=== RUN TestOAS_BuildDefaultTykExtension/error_when_no_supplied_params_and_no_servers
=== PAUSE Test_loadOASSchema/load_OAS
=== CONT TestValidateOASObject
=== RUN TestOAS_BuildDefaultTykExtension/middlewares
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/allowList
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/allowList/enable_allowList_for_all_paths_when_no_configured_operationID_in_OAS
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/allowList/enable_allowList_for_all_paths_when_operationID_is_configured_in_OAS
=== RUN TestValidateOASObject/valid_OAS_object
=== PAUSE TestValidateOASObject/valid_OAS_object
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/allowList/disable_allowList_for_all_paths_when_no_configured_operationID_in_OAS
=== RUN TestValidateOASObject/invalid_OAS_object
=== PAUSE TestValidateOASObject/invalid_OAS_object
=== RUN TestValidateOASObject/wrong_typed_OAS_object
=== PAUSE TestValidateOASObject/wrong_typed_OAS_object
=== RUN TestValidateOASObject/should_error_when_requested_oas_schema_not_found
=== PAUSE TestValidateOASObject/should_error_when_requested_oas_schema_not_found
=== CONT TestTagsImport
=== RUN TestTagsImport/keep_segment_tags_values_if_disabled
=== PAUSE TestTagsImport/keep_segment_tags_values_if_disabled
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/allowList/disable_allowList_for_all_paths_when_operationID_is_configured_in_OAS
=== RUN TestTagsImport/keep_segment_tags_values_if_enabled
=== PAUSE TestTagsImport/keep_segment_tags_values_if_enabled
=== CONT TestTagsExportServer
=== RUN TestTagsExportServer/export_segment_tags_if_enabled
=== PAUSE TestTagsExportServer/export_segment_tags_if_enabled
=== RUN TestTagsExportServer/export_segment_tags_if_disabled
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/allowList/override_allowList_(disable)_configured_in_tyk_extension_-_do_not_toggle_block_list_if_any
=== PAUSE TestTagsExportServer/export_segment_tags_if_disabled
=== RUN TestTagsExportServer/empty_segment_tags
=== PAUSE TestTagsExportServer/empty_segment_tags
=== CONT TestPinnedPublicKeys
--- PASS: TestPinnedPublicKeys (0.00s)
=== CONT TestListenPath
--- PASS: TestListenPath (0.00s)
=== CONT TestServer
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/allowList/override_allowList_(enable)_configured_in_tyk_extension_-_toggle_enabled_block_list_if_any
--- PASS: TestServer (0.00s)
=== CONT TestOAS_UpdateServers
=== RUN TestOAS_UpdateServers/empty_servers
=== RUN TestOAS_UpdateServers/non-empty_servers_replace_with_new
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/allowList/do_not_configure_allowList_when_parameter_is_not_provided_(nil)
=== RUN TestOAS_UpdateServers/non-empty_servers_not_replace
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest
--- PASS: TestOAS_UpdateServers (0.00s)
--- PASS: TestOAS_UpdateServers/empty_servers (0.00s)
--- PASS: TestOAS_UpdateServers/non-empty_servers_replace_with_new (0.00s)
--- PASS: TestOAS_UpdateServers/non-empty_servers_not_replace (0.00s)
=== CONT TestOAS_RegexOperationIDs
--- PASS: TestOAS_RegexOperationIDs (0.00s)
=== CONT TestOAS_PathsAndOperationsRegex
--- PASS: TestOAS_PathsAndOperationsRegex (0.00s)
=== CONT TestOAS_PathsAndOperations
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/do_not_configure_validateRequest_for_paths_where_request_body_is_not_specified_for_application/json
--- PASS: TestOAS_PathsAndOperations (0.00s)
=== CONT TestOAS
=== RUN TestOAS/empty_paths
=== PAUSE TestOAS/empty_paths
=== RUN TestOAS/nil_paths
=== PAUSE TestOAS/nil_paths
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/enable_validateRequest_for_all_paths_with_application/json_req_body_when_no_configured_operationID_in_OAS
=== RUN TestOAS/auth_configs
=== PAUSE TestOAS/auth_configs
=== CONT TestOAS_AddServers
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/enable_validateRequest_for_all_paths_with_application/json_req_body_when_operationID_is_configured_in_OAS
=== RUN TestOAS_AddServers/empty_servers
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/disable_validateRequest_for_all_paths_with_application/json_req_body_when_no_configured_operationID_in_OAS
=== RUN TestOAS_AddServers/non-empty_servers
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/disable_validateRequest_for_all_paths_with_application/json_req_body_when_operationID_is_configured_in_OAS
=== RUN TestOAS_AddServers/non-empty_servers_having_same_URL_that_of_apiURL
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/override_validateRequest_configured_in_tyk_extension
=== RUN TestOAS_AddServers/non-empty_servers_having_same_URL_that_of_apiURL#01
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/do_not_configure_validateRequest_when_parameter_is_not_provided_(nil)
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/do_not_configure_validateRequest_when_no_paths_have_application/json_req_body
--- PASS: TestOAS_AddServers (0.00s)
--- PASS: TestOAS_AddServers/empty_servers (0.00s)
--- PASS: TestOAS_AddServers/non-empty_servers (0.00s)
--- PASS: TestOAS_AddServers/non-empty_servers_having_same_URL_that_of_apiURL (0.00s)
--- PASS: TestOAS_AddServers/non-empty_servers_having_same_URL_that_of_apiURL#01 (0.00s)
=== CONT TestClientCertificates
--- PASS: TestClientCertificates (0.00s)
=== CONT Test_loadOASSchema/load_OAS
=== RUN TestOAS_BuildDefaultTykExtension/do_not_configure_upstream_URL_with_servers_when_upstream_URL_params_is_not_provided_and_upstream_URL_in_x-tyk_in_not_empty
=== RUN TestOAS_BuildDefaultTykExtension/do_not_configure_state_active,_internal_or_strip_listen_path_when_not_importing
--- PASS: TestOAS_BuildDefaultTykExtension (0.02s)
--- PASS: TestOAS_BuildDefaultTykExtension/build_tyk_extension_with_no_supplied_params (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/build_tyk_extension_with_supplied_params (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/do_not_override_existing_tyk_extension_by_default (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/override_existing_tyk_extension_with_supplied_params (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/error_when_supplied_invalid_upstreamURL_param (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/error_when_no_supplied_params_and_invalid_URL_in_servers (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/error_when_no_supplied_params_and_no_servers (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares (0.01s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/allowList (0.01s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/allowList/enable_allowList_for_all_paths_when_no_configured_operationID_in_OAS (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/allowList/enable_allowList_for_all_paths_when_operationID_is_configured_in_OAS (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/allowList/disable_allowList_for_all_paths_when_no_configured_operationID_in_OAS (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/allowList/disable_allowList_for_all_paths_when_operationID_is_configured_in_OAS (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/allowList/override_allowList_(disable)_configured_in_tyk_extension_-_do_not_toggle_block_list_if_any (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/allowList/override_allowList_(enable)_configured_in_tyk_extension_-_toggle_enabled_block_list_if_any (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/allowList/do_not_configure_allowList_when_parameter_is_not_provided_(nil) (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest (0.01s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/do_not_configure_validateRequest_for_paths_where_request_body_is_not_specified_for_application/json (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/enable_validateRequest_for_all_paths_with_application/json_req_body_when_no_configured_operationID_in_OAS (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/enable_validateRequest_for_all_paths_with_application/json_req_body_when_operationID_is_configured_in_OAS (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/disable_validateRequest_for_all_paths_with_application/json_req_body_when_no_configured_operationID_in_OAS (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/disable_validateRequest_for_all_paths_with_application/json_req_body_when_operationID_is_configured_in_OAS (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/override_validateRequest_configured_in_tyk_extension (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/do_not_configure_validateRequest_when_parameter_is_not_provided_(nil) (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/do_not_configure_validateRequest_when_no_paths_have_application/json_req_body (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/do_not_configure_upstream_URL_with_servers_when_upstream_URL_params_is_not_provided_and_upstream_URL_in_x-tyk_in_not_empty (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/do_not_configure_state_active,_internal_or_strip_listen_path_when_not_importing (0.00s)
=== CONT TestValidateOASObject/valid_OAS_object
--- PASS: Test_loadOASSchema (0.00s)
--- PASS: Test_loadOASSchema/load_OAS (0.14s)
=== CONT TestValidateOASObject/should_error_when_requested_oas_schema_not_found
=== CONT TestValidateOASObject/wrong_typed_OAS_object
=== CONT TestValidateOASObject/invalid_OAS_object
=== CONT TestTagsImport/keep_segment_tags_values_if_enabled
=== CONT TestTagsImport/keep_segment_tags_values_if_disabled
=== CONT TestTagsExportServer/export_segment_tags_if_disabled
--- PASS: TestTagsImport (0.00s)
--- PASS: TestTagsImport/keep_segment_tags_values_if_enabled (0.00s)
--- PASS: TestTagsImport/keep_segment_tags_values_if_disabled (0.00s)
=== CONT TestTagsExportServer/empty_segment_tags
=== CONT TestTagsExportServer/export_segment_tags_if_enabled
--- PASS: TestTagsExportServer (0.00s)
--- PASS: TestTagsExportServer/export_segment_tags_if_disabled (0.00s)
--- PASS: TestTagsExportServer/empty_segment_tags (0.00s)
--- PASS: TestTagsExportServer/export_segment_tags_if_enabled (0.00s)
=== CONT TestOAS/auth_configs
=== CONT TestOAS/nil_paths
=== CONT TestOAS/empty_paths
--- PASS: TestOAS (0.00s)
--- PASS: TestOAS/auth_configs (0.00s)
--- PASS: TestOAS/nil_paths (0.00s)
--- PASS: TestOAS/empty_paths (0.00s)
--- PASS: TestValidateOASObject (0.00s)
--- PASS: TestValidateOASObject/should_error_when_requested_oas_schema_not_found (0.00s)
--- PASS: TestValidateOASObject/valid_OAS_object (0.17s)
--- PASS: TestValidateOASObject/wrong_typed_OAS_object (0.04s)
--- PASS: TestValidateOASObject/invalid_OAS_object (0.03s)
PASS
coverage: 90.3% of statements
ok github.com/TykTechnologies/tyk/apidef/oas 0.761s coverage: 90.3% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=schema.cov github.com/TykTechnologies/tyk/apidef/oas/schema
? github.com/TykTechnologies/tyk/apidef/oas/schema [no test files]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=certs.cov github.com/TykTechnologies/tyk/certs
=== RUN TestAddCertificate
util.go:32: Skipping flaky test
--- SKIP: TestAddCertificate (0.00s)
=== RUN TestCertificateStorage
=== RUN TestCertificateStorage/File_certificates
time="2022-06-14T15:40:37Z" level=warning msg="Can't retrieve certificate:wrongopen wrong: no such file or directory" prefix=cert_storage
=== RUN TestCertificateStorage/Remote_storage_certificates
=== RUN TestCertificateStorage/Private_certificates
=== RUN TestCertificateStorage/Public_keys
--- PASS: TestCertificateStorage (1.85s)
--- PASS: TestCertificateStorage/File_certificates (0.00s)
--- PASS: TestCertificateStorage/Remote_storage_certificates (0.00s)
--- PASS: TestCertificateStorage/Private_certificates (0.00s)
--- PASS: TestCertificateStorage/Public_keys (0.00s)
=== RUN TestStorageIndex
--- PASS: TestStorageIndex (1.08s)
PASS
coverage: 46.5% of statements
ok github.com/TykTechnologies/tyk/certs 2.964s coverage: 46.5% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=checkup.cov github.com/TykTechnologies/tyk/checkup
? github.com/TykTechnologies/tyk/checkup [no test files]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=cli.cov github.com/TykTechnologies/tyk/cli
? github.com/TykTechnologies/tyk/cli [no test files]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=bundler.cov github.com/TykTechnologies/tyk/cli/bundler
=== RUN TestCommands
time="Jun 14 15:40:40" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Jun 14 15:40:40" level=warning msg="Using default bundle path 'bundle.zip'" prefix=tyk
time="Jun 14 15:40:40" level=warning msg="The bundle will be unsigned" prefix=tyk
time="Jun 14 15:40:40" level=info msg="Wrote 'bundle.zip' (377 bytes)" prefix=tyk
--- PASS: TestCommands (0.01s)
=== RUN TestBuild
=== RUN TestBuild/Bundle_errors
time="Jun 14 15:40:40" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Jun 14 15:40:40" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Jun 14 15:40:40" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Jun 14 15:40:40" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Jun 14 15:40:40" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
=== RUN TestBuild/Simple_bundle_build
time="Jun 14 15:40:40" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Jun 14 15:40:40" level=warning msg="Using default bundle path 'bundle.zip'" prefix=tyk
time="Jun 14 15:40:40" level=warning msg="The bundle will be unsigned" prefix=tyk
time="Jun 14 15:40:40" level=info msg="Wrote 'bundle.zip' (506 bytes)" prefix=tyk
--- PASS: TestBuild (0.01s)
--- PASS: TestBuild/Bundle_errors (0.00s)
--- PASS: TestBuild/Simple_bundle_build (0.01s)
PASS
coverage: 70.7% of statements
ok github.com/TykTechnologies/tyk/cli/bundler 0.061s coverage: 70.7% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=importer.cov github.com/TykTechnologies/tyk/cli/importer
? github.com/TykTechnologies/tyk/cli/importer [no test files]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=linter.cov github.com/TykTechnologies/tyk/cli/linter
=== RUN TestLint
=== RUN TestLint/InvalidJSON
=== RUN TestLint/WrongType
=== RUN TestLint/FieldTypo
=== RUN TestLint/Empty
=== RUN TestLint/Default
=== RUN TestLint/OldMonitor
=== RUN TestLint/NullObject
=== RUN TestLint/MissingPath
=== RUN TestLint/ExtraPort
=== RUN TestLint/BadHost
=== RUN TestLint/BadLogLevel
=== RUN TestLint/BadStorageType
=== RUN TestLint/BadPolicySource
=== RUN TestLint/MalformedDnsCacheEntry
=== RUN TestLint/BadDnsCacheTTL
=== RUN TestLint/ExtraDnsCacheCheckInterval
=== RUN TestLint/InvalidDnsCacheMultipleIPsHandleStrategy
--- PASS: TestLint (0.22s)
--- PASS: TestLint/InvalidJSON (0.00s)
--- PASS: TestLint/WrongType (0.00s)
--- PASS: TestLint/FieldTypo (0.02s)
--- PASS: TestLint/Empty (0.02s)
--- PASS: TestLint/Default (0.02s)
--- PASS: TestLint/OldMonitor (0.01s)
--- PASS: TestLint/NullObject (0.01s)
--- PASS: TestLint/MissingPath (0.01s)
--- PASS: TestLint/ExtraPort (0.01s)
--- PASS: TestLint/BadHost (0.01s)
--- PASS: TestLint/BadLogLevel (0.01s)
--- PASS: TestLint/BadStorageType (0.01s)
--- PASS: TestLint/BadPolicySource (0.01s)
--- PASS: TestLint/MalformedDnsCacheEntry (0.01s)
--- PASS: TestLint/BadDnsCacheTTL (0.01s)
--- PASS: TestLint/ExtraDnsCacheCheckInterval (0.01s)
--- PASS: TestLint/InvalidDnsCacheMultipleIPsHandleStrategy (0.01s)
PASS
coverage: 89.8% of statements
ok github.com/TykTechnologies/tyk/cli/linter 0.274s coverage: 89.8% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=config.cov github.com/TykTechnologies/tyk/config
=== RUN TestDefaultValueAndWriteDefaultConf
=== RUN TestDefaultValueAndWriteDefaultConf/ListenPort
=== RUN TestDefaultValueAndWriteDefaultConf/DnsCacheEnabled
=== RUN TestDefaultValueAndWriteDefaultConf/DnsCacheTTL
=== RUN TestDefaultValueAndWriteDefaultConf/CheckInterval
=== RUN TestDefaultValueAndWriteDefaultConf/CheckMultipleIPsHandleStrategy
--- PASS: TestDefaultValueAndWriteDefaultConf (0.03s)
--- PASS: TestDefaultValueAndWriteDefaultConf/ListenPort (0.01s)
--- PASS: TestDefaultValueAndWriteDefaultConf/DnsCacheEnabled (0.01s)
--- PASS: TestDefaultValueAndWriteDefaultConf/DnsCacheTTL (0.01s)
--- PASS: TestDefaultValueAndWriteDefaultConf/CheckInterval (0.01s)
--- PASS: TestDefaultValueAndWriteDefaultConf/CheckMultipleIPsHandleStrategy (0.01s)
=== RUN TestConfigFiles
time="Jun 14 15:40:43" level=warning msg="No config file found, writing default to /tmp/tyk171404134/tyk1.conf"
time="Jun 14 15:40:43" level=info msg="Loading default configuration..."
--- PASS: TestConfigFiles (0.03s)
=== RUN TestConfig_GetEventTriggers
=== RUN TestConfig_GetEventTriggers/Deprecated_configuration
=== RUN TestConfig_GetEventTriggers/Current_configuration
=== RUN TestConfig_GetEventTriggers/Both_configured
time="Jun 14 15:40:43" level=info msg="Both event_trigers_defunct and event_triggers_defunct are configured in the config, event_triggers_defunct will be used."
--- PASS: TestConfig_GetEventTriggers (0.01s)
--- PASS: TestConfig_GetEventTriggers/Deprecated_configuration (0.00s)
--- PASS: TestConfig_GetEventTriggers/Current_configuration (0.00s)
--- PASS: TestConfig_GetEventTriggers/Both_configured (0.00s)
=== RUN TestLoad_tracing
=== RUN TestLoad_tracing/Read_and_write_config_with_tracing
=== RUN TestLoad_tracing/Read_and_write_config_with_tracing/testdata/jaeger.json
=== RUN TestLoad_tracing/Read_and_write_config_with_tracing/testdata/zipkin.json
=== RUN TestLoad_tracing/Env_only
=== RUN TestLoad_tracing/Env_only/testdata/env.jaeger.json
=== RUN TestLoad_tracing/Env_only/testdata/env.zipkin.json
--- PASS: TestLoad_tracing (0.03s)
--- PASS: TestLoad_tracing/Read_and_write_config_with_tracing (0.01s)
--- PASS: TestLoad_tracing/Read_and_write_config_with_tracing/testdata/jaeger.json (0.01s)
--- PASS: TestLoad_tracing/Read_and_write_config_with_tracing/testdata/zipkin.json (0.00s)
--- PASS: TestLoad_tracing/Env_only (0.01s)
--- PASS: TestLoad_tracing/Env_only/testdata/env.jaeger.json (0.01s)
--- PASS: TestLoad_tracing/Env_only/testdata/env.zipkin.json (0.00s)
=== RUN TestCustomEnvDecoders
--- PASS: TestCustomEnvDecoders (0.00s)
=== RUN TestLoadZipkin
=== RUN TestLoadZipkin/loads_env_vars
--- PASS: TestLoadZipkin (0.00s)
--- PASS: TestLoadZipkin/loads_env_vars (0.00s)
=== RUN TestLoadJaeger
=== RUN TestLoadJaeger/Loads_env_vars
--- PASS: TestLoadJaeger (0.01s)
--- PASS: TestLoadJaeger/Loads_env_vars (0.01s)
PASS
coverage: 69.8% of statements
ok github.com/TykTechnologies/tyk/config 0.160s coverage: 69.8% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=coprocess.cov github.com/TykTechnologies/tyk/coprocess
? github.com/TykTechnologies/tyk/coprocess [no test files]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=grpc.cov github.com/TykTechnologies/tyk/coprocess/grpc
=== RUN TestGRPCDispatch
time="Jun 14 15:40:47" level=info msg="starting test"
time="Jun 14 15:40:47" level=info msg="gRPC dispatcher was initialized" prefix=coprocess
=== RUN TestGRPCDispatch/Pre_Hook_with_SetHeaders
=== RUN TestGRPCDispatch/Pre_Hook_with_UTF-8/non-UTF-8_request_data
=== RUN TestGRPCDispatch/Post_Hook_with_metadata
=== RUN TestGRPCDispatch/Response_hook
=== RUN TestGRPCDispatch/Post_Hook_with_allowed_message_length
util.go:32: Skipping flaky test
=== RUN TestGRPCDispatch/Post_Hook_with_with_unallowed_message_length
util.go:32: Skipping flaky test
redis: 2022/06/14 15:40:47 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:32872->[::1]:6379: use of closed network connection
--- PASS: TestGRPCDispatch (0.32s)
--- PASS: TestGRPCDispatch/Pre_Hook_with_SetHeaders (0.01s)
--- PASS: TestGRPCDispatch/Pre_Hook_with_UTF-8/non-UTF-8_request_data (0.01s)
--- PASS: TestGRPCDispatch/Post_Hook_with_metadata (0.01s)
--- PASS: TestGRPCDispatch/Response_hook (0.01s)
--- SKIP: TestGRPCDispatch/Post_Hook_with_allowed_message_length (0.00s)
--- SKIP: TestGRPCDispatch/Post_Hook_with_with_unallowed_message_length (0.00s)
=== RUN TestGRPCIgnore
redis: 2022/06/14 15:40:48 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:32880->[::1]:6379: use of closed network connection
--- PASS: TestGRPCIgnore (0.28s)
PASS
coverage: [no statements]
ok github.com/TykTechnologies/tyk/coprocess/grpc 0.874s coverage: [no statements]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=python.cov github.com/TykTechnologies/tyk/coprocess/python
=== RUN TestValueExtractorHeaderSource
util.go:32: Skipping flaky test
--- SKIP: TestValueExtractorHeaderSource (0.00s)
=== RUN TestPythonBundles
time="Jun 14 15:40:51" level=info msg="starting test"
=== RUN TestPythonBundles/Single-file_bundle_with_authentication_hook
=== RUN TestPythonBundles/Auth_with_policy
=== RUN TestPythonBundles/Single-file_bundle_with_post_hook
=== RUN TestPythonBundles/Single-file_bundle_with_response_hook
=== RUN TestPythonBundles/Single-file_bundle_with_pre_hook_and_UTF-8/non-UTF-8_request_data
=== RUN TestPythonBundles/python_post_hook_with_url_rewrite_and_method_transform
redis: 2022/06/14 15:40:59 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:32888->[::1]:6379: use of closed network connection
--- PASS: TestPythonBundles (7.59s)
--- PASS: TestPythonBundles/Single-file_bundle_with_authentication_hook (2.03s)
--- PASS: TestPythonBundles/Auth_with_policy (1.08s)
--- PASS: TestPythonBundles/Single-file_bundle_with_post_hook (1.10s)
--- PASS: TestPythonBundles/Single-file_bundle_with_response_hook (1.09s)
--- PASS: TestPythonBundles/Single-file_bundle_with_pre_hook_and_UTF-8/non-UTF-8_request_data (1.09s)
--- PASS: TestPythonBundles/python_post_hook_with_url_rewrite_and_method_transform (1.10s)
PASS
coverage: [no statements]
ok github.com/TykTechnologies/tyk/coprocess/python 7.876s coverage: [no statements]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=ctx.cov github.com/TykTechnologies/tyk/ctx
? github.com/TykTechnologies/tyk/ctx [no test files]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=dlpython.cov github.com/TykTechnologies/tyk/dlpython
Using Python 3.5 for tests
=== RUN TestFindPythonConfig
main_test.go:20: Library path is
main_test.go:25: Library path is /opt/hostedtoolcache/Python/3.5.10/x64/lib/libpython3.5m.so
--- PASS: TestFindPythonConfig (0.18s)
=== RUN TestInit
main_test.go:33: Library path is /opt/hostedtoolcache/Python/3.5.10/x64/lib/libpython3.5m.so
--- PASS: TestInit (0.12s)
PASS
coverage: 54.7% of statements
ok github.com/TykTechnologies/tyk/dlpython 0.327s coverage: 54.7% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=dnscache.cov github.com/TykTechnologies/tyk/dnscache
=== RUN TestWrapDialerDialContextFunc
=== RUN TestWrapDialerDialContextFunc/PickFirstStrategy(1_ip):_Should_parse_address,_call_storage.FetchItem,_cache_ip,_call_storage.Delete_on_DialContext_error
=== RUN TestWrapDialerDialContextFunc/PickFirstStrategy(>1_ip):_Should_parse_address,_call_storage.FetchItem,_cache_all_ips,_call_storage.Delete_on_DialContext_error
=== RUN TestWrapDialerDialContextFunc/NoCacheStrategy(1_ip):_Should_parse_address,_call_storage.FetchItem,_cache_ip,_call_storage.Delete_on_DialContext_error
=== RUN TestWrapDialerDialContextFunc/NoCacheStrategy(>1_ip):_Should_parse_address,_call_storage.FetchItem,_remove_ips_caching
=== RUN TestWrapDialerDialContextFunc/RandomStrategy(>1_ip):_Should_parse_address,_call_storage.FetchItem,_cache_all_ips,_connect_to_random_ip,_call_storage.Delete_on_DialContext_error
=== RUN TestWrapDialerDialContextFunc/Shouldn't_call_FetchItem_when_caching_is_disabled(storage_==_nil)
=== RUN TestWrapDialerDialContextFunc/Shouldn't_cache_ipv4_address
=== RUN TestWrapDialerDialContextFunc/Should_faifast_on_address_without_port(accept_only_address_with_port)
--- PASS: TestWrapDialerDialContextFunc (0.00s)
--- PASS: TestWrapDialerDialContextFunc/PickFirstStrategy(1_ip):_Should_parse_address,_call_storage.FetchItem,_cache_ip,_call_storage.Delete_on_DialContext_error (0.00s)
--- PASS: TestWrapDialerDialContextFunc/PickFirstStrategy(>1_ip):_Should_parse_address,_call_storage.FetchItem,_cache_all_ips,_call_storage.Delete_on_DialContext_error (0.00s)
--- PASS: TestWrapDialerDialContextFunc/NoCacheStrategy(1_ip):_Should_parse_address,_call_storage.FetchItem,_cache_ip,_call_storage.Delete_on_DialContext_error (0.00s)
--- PASS: TestWrapDialerDialContextFunc/NoCacheStrategy(>1_ip):_Should_parse_address,_call_storage.FetchItem,_remove_ips_caching (0.00s)
--- PASS: TestWrapDialerDialContextFunc/RandomStrategy(>1_ip):_Should_parse_address,_call_storage.FetchItem,_cache_all_ips,_connect_to_random_ip,_call_storage.Delete_on_DialContext_error (0.00s)
--- PASS: TestWrapDialerDialContextFunc/Shouldn't_call_FetchItem_when_caching_is_disabled(storage_==_nil) (0.00s)
--- PASS: TestWrapDialerDialContextFunc/Shouldn't_cache_ipv4_address (0.00s)
--- PASS: TestWrapDialerDialContextFunc/Should_faifast_on_address_without_port(accept_only_address_with_port) (0.00s)
=== RUN TestStorageFetchItem
=== RUN TestStorageFetchItem/Should_cache_first_dns_record_first_fetch
=== RUN TestStorageFetchItem/Should_cache_second_dns_record_first_fetch
=== RUN TestStorageFetchItem/Should_populate_from_cache_first_dns_record_second_fetch
=== RUN TestStorageFetchItem/Should_populate_from_cache_first_dns_record_third_fetch
=== RUN TestStorageFetchItem/Should_populate_from_cache_second_dns_record_second_fetch
=== RUN TestStorageFetchItem/Shouldn't_cache_dns_record_fetch_in_case_error
--- PASS: TestStorageFetchItem (0.00s)
--- PASS: TestStorageFetchItem/Should_cache_first_dns_record_first_fetch (0.00s)
--- PASS: TestStorageFetchItem/Should_cache_second_dns_record_first_fetch (0.00s)
--- PASS: TestStorageFetchItem/Should_populate_from_cache_first_dns_record_second_fetch (0.00s)
--- PASS: TestStorageFetchItem/Should_populate_from_cache_first_dns_record_third_fetch (0.00s)
--- PASS: TestStorageFetchItem/Should_populate_from_cache_second_dns_record_second_fetch (0.00s)
--- PASS: TestStorageFetchItem/Shouldn't_cache_dns_record_fetch_in_case_error (0.00s)
=== RUN TestStorageRecordExpiration
=== RUN TestStorageRecordExpiration/Shouldn't_remove_dns_record_when_ttl/expiration_<_1
=== RUN TestStorageRecordExpiration/Should_remove_single_dns_record_after_expiration
=== RUN TestStorageRecordExpiration/Should_leave_as_expired_dns_records_if_check_interval=-1
=== RUN TestStorageRecordExpiration/Should_remove_all(>1)_dns_records_after_expiration
=== RUN TestStorageRecordExpiration/Should_remove_only_expired_record_after_expiration
=== RUN TestStorageRecordExpiration/Should_remove_only_expired_records_after_expiration
--- PASS: TestStorageRecordExpiration (11.65s)
--- PASS: TestStorageRecordExpiration/Shouldn't_remove_dns_record_when_ttl/expiration_<_1 (1.51s)
--- PASS: TestStorageRecordExpiration/Should_remove_single_dns_record_after_expiration (2.01s)
--- PASS: TestStorageRecordExpiration/Should_leave_as_expired_dns_records_if_check_interval=-1 (1.51s)
--- PASS: TestStorageRecordExpiration/Should_remove_all(>1)_dns_records_after_expiration (2.01s)
--- PASS: TestStorageRecordExpiration/Should_remove_only_expired_record_after_expiration (2.10s)
--- PASS: TestStorageRecordExpiration/Should_remove_only_expired_records_after_expiration (2.50s)
PASS
coverage: 82.5% of statements
ok github.com/TykTechnologies/tyk/dnscache 11.707s coverage: 82.5% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=gateway.cov github.com/TykTechnologies/tyk/gateway
=== RUN TestGoAnalyticsPlugin
time="Jun 14 15:41:31" level=info msg="starting test"
time="Jun 14 15:41:31" level=info msg="Rich plugins are disabled" prefix=coprocess
=== RUN TestGoAnalyticsPlugin/just_enabled_without_other_parameters_set
redis: 2022/06/14 15:41:31 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:32896->[::1]:6379: use of closed network connection
--- PASS: TestGoAnalyticsPlugin (0.16s)
--- PASS: TestGoAnalyticsPlugin/just_enabled_without_other_parameters_set (0.06s)
=== RUN TestAnalytics_Write
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_msgpack
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Log_errors
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Log_success
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_api_spec_config_enabled
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_only_key_flag_set
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_latency
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_cache
redis: 2022/06/14 15:41:32 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:32904->[::1]:6379: use of closed network connection
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_protobuf
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Log_errors
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Log_success
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics_with_api_spec_config_enabled
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics_with_only_key_flag_set
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics_with_latency
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics_with_cache
redis: 2022/06/14 15:41:32 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:32914->[::1]:6379: use of closed network connection
--- PASS: TestAnalytics_Write (1.18s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack (0.60s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Log_errors (0.05s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Log_success (0.03s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_api_spec_config_enabled (0.07s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_only_key_flag_set (0.07s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics (0.07s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_latency (0.07s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_cache (0.09s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf (0.58s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Log_errors (0.05s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Log_success (0.03s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics_with_api_spec_config_enabled (0.07s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics_with_only_key_flag_set (0.07s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics (0.07s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics_with_latency (0.07s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics_with_cache (0.09s)
=== RUN TestGeoIPLookup
redis: 2022/06/14 15:41:32 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:32924->[::1]:6379: use of closed network connection
--- PASS: TestGeoIPLookup (0.10s)
=== RUN TestURLReplacer
redis: 2022/06/14 15:41:32 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:32932->[::1]:6379: use of closed network connection
--- PASS: TestURLReplacer (0.09s)
=== RUN TestTagHeaders
--- PASS: TestTagHeaders (0.00s)
=== RUN TestURLRewrites
=== RUN TestURLRewrites/Extended_Paths_with_url_rewrites
redis: 2022/06/14 15:41:33 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:32940->[::1]:6379: use of closed network connection
--- PASS: TestURLRewrites (0.19s)
--- PASS: TestURLRewrites/Extended_Paths_with_url_rewrites (0.05s)
=== RUN TestWhitelist
=== RUN TestWhitelist/Extended_Paths
=== RUN TestWhitelist/Simple_Paths
=== RUN TestWhitelist/Test_#1944
=== RUN TestWhitelist/Case_Sensitivity
=== RUN TestWhitelist/Listen_path_matches
=== RUN TestWhitelist/Disabled
redis: 2022/06/14 15:41:33 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:32948->[::1]:6379: use of closed network connection
--- PASS: TestWhitelist (0.41s)
--- PASS: TestWhitelist/Extended_Paths (0.05s)
--- PASS: TestWhitelist/Simple_Paths (0.05s)
--- PASS: TestWhitelist/Test_#1944 (0.06s)
--- PASS: TestWhitelist/Case_Sensitivity (0.05s)
--- PASS: TestWhitelist/Listen_path_matches (0.05s)
--- PASS: TestWhitelist/Disabled (0.05s)
=== RUN TestGatewayTagsFilter
=== PAUSE TestGatewayTagsFilter
=== RUN TestBlacklist
=== RUN TestBlacklist/Extended_Paths
=== RUN TestBlacklist/Simple_Paths
=== RUN TestBlacklist/Case_Sensitivity
=== RUN TestBlacklist/Listen_path_matches
=== RUN TestBlacklist/Disabled
redis: 2022/06/14 15:41:33 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:32956->[::1]:6379: use of closed network connection
--- PASS: TestBlacklist (0.37s)
--- PASS: TestBlacklist/Extended_Paths (0.05s)
--- PASS: TestBlacklist/Simple_Paths (0.05s)
--- PASS: TestBlacklist/Case_Sensitivity (0.05s)
--- PASS: TestBlacklist/Listen_path_matches (0.05s)
--- PASS: TestBlacklist/Disabled (0.04s)
=== RUN TestConflictingPaths
redis: 2022/06/14 15:41:34 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:32964->[::1]:6379: use of closed network connection
--- PASS: TestConflictingPaths (0.16s)
=== RUN TestIgnored
=== RUN TestIgnored/Extended_Paths
=== RUN TestIgnored/Simple_Paths
=== RUN TestIgnored/With_URL_rewrite
=== RUN TestIgnored/Case_Sensitivity
=== RUN TestIgnored/Case_Sensitivity/ignore-case_globally
=== RUN TestIgnored/Case_Sensitivity/ignore-case_in_api_level
=== RUN TestIgnored/Disabled
redis: 2022/06/14 15:41:34 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:32972->[::1]:6379: use of closed network connection
--- PASS: TestIgnored (0.49s)
--- PASS: TestIgnored/Extended_Paths (0.05s)
--- PASS: TestIgnored/Simple_Paths (0.05s)
--- PASS: TestIgnored/With_URL_rewrite (0.05s)
--- PASS: TestIgnored/Case_Sensitivity (0.20s)
--- PASS: TestIgnored/Case_Sensitivity/ignore-case_globally (0.05s)
--- PASS: TestIgnored/Case_Sensitivity/ignore-case_in_api_level (0.05s)
--- PASS: TestIgnored/Disabled (0.05s)
=== RUN TestOldMockResponse
util.go:32: Skipping Racy test
--- SKIP: TestOldMockResponse (0.00s)
=== RUN TestNewMockResponse
=== RUN TestNewMockResponse/protected
=== RUN TestNewMockResponse/keyless
redis: 2022/06/14 15:41:34 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:32982->[::1]:6379: use of closed network connection
--- PASS: TestNewMockResponse (0.19s)
--- PASS: TestNewMockResponse/protected (0.00s)
--- PASS: TestNewMockResponse/keyless (0.05s)
=== RUN TestWhitelistMethodWithAdditionalMiddleware
=== RUN TestWhitelistMethodWithAdditionalMiddleware/Extended_Paths
redis: 2022/06/14 15:41:34 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:32990->[::1]:6379: use of closed network connection
--- PASS: TestWhitelistMethodWithAdditionalMiddleware (0.14s)
--- PASS: TestWhitelistMethodWithAdditionalMiddleware/Extended_Paths (0.05s)
=== RUN TestSyncAPISpecsDashboardSuccess
redis: 2022/06/14 15:41:35 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:32998->[::1]:6379: use of closed network connection
--- PASS: TestSyncAPISpecsDashboardSuccess (0.15s)
=== RUN TestRoundRobin
--- PASS: TestRoundRobin (0.00s)
=== RUN TestDefaultVersion
redis: 2022/06/14 15:41:35 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33006->[::1]:6379: use of closed network connection
--- PASS: TestDefaultVersion (0.15s)
=== RUN TestGetVersionFromRequest
=== RUN TestGetVersionFromRequest/Header_location
=== RUN TestGetVersionFromRequest/Header_location/strip_versioning_data
redis: 2022/06/14 15:41:35 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33014->[::1]:6379: use of closed network connection
=== RUN TestGetVersionFromRequest/URL_param_location
=== RUN TestGetVersionFromRequest/URL_param_location/strip_versioning_data
redis: 2022/06/14 15:41:35 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33022->[::1]:6379: use of closed network connection
=== RUN TestGetVersionFromRequest/URL_location
=== RUN TestGetVersionFromRequest/URL_location/strip_versioning_data
redis: 2022/06/14 15:41:35 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33030->[::1]:6379: use of closed network connection
--- PASS: TestGetVersionFromRequest (0.58s)
--- PASS: TestGetVersionFromRequest/Header_location (0.20s)
--- PASS: TestGetVersionFromRequest/Header_location/strip_versioning_data (0.04s)
--- PASS: TestGetVersionFromRequest/URL_param_location (0.19s)
--- PASS: TestGetVersionFromRequest/URL_param_location/strip_versioning_data (0.05s)
--- PASS: TestGetVersionFromRequest/URL_location (0.18s)
--- PASS: TestGetVersionFromRequest/URL_location/strip_versioning_data (0.04s)
=== RUN TestSyncAPISpecsDashboardJSONFailure
redis: 2022/06/14 15:41:35 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33038->[::1]:6379: use of closed network connection
--- PASS: TestSyncAPISpecsDashboardJSONFailure (0.16s)
=== RUN TestAPIDefinitionLoader_Template
=== RUN TestAPIDefinitionLoader_Template/loadFileTemplate
=== RUN TestAPIDefinitionLoader_Template/loadBlobTemplate
redis: 2022/06/14 15:41:36 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33046->[::1]:6379: use of closed network connection
--- PASS: TestAPIDefinitionLoader_Template (0.10s)
--- PASS: TestAPIDefinitionLoader_Template/loadFileTemplate (0.00s)
--- PASS: TestAPIDefinitionLoader_Template/loadBlobTemplate (0.00s)
=== RUN TestAPIExpiration
=== RUN TestAPIExpiration/versioning=false
=== RUN TestAPIExpiration/versioning=false/not_expired
=== RUN TestAPIExpiration/versioning=false/expired
=== RUN TestAPIExpiration/versioning=true
=== RUN TestAPIExpiration/versioning=true/not_expired
=== RUN TestAPIExpiration/versioning=true/expired
redis: 2022/06/14 15:41:36 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33054->[::1]:6379: use of closed network connection
--- PASS: TestAPIExpiration (0.29s)
--- PASS: TestAPIExpiration/versioning=false (0.09s)
--- PASS: TestAPIExpiration/versioning=false/not_expired (0.04s)
--- PASS: TestAPIExpiration/versioning=false/expired (0.04s)
--- PASS: TestAPIExpiration/versioning=true (0.09s)
--- PASS: TestAPIExpiration/versioning=true/not_expired (0.05s)
--- PASS: TestAPIExpiration/versioning=true/expired (0.04s)
=== RUN TestStripListenPath
--- PASS: TestStripListenPath (0.00s)
=== RUN TestAPISpec_SanitizeProxyPaths
=== RUN TestAPISpec_SanitizeProxyPaths/strip=false
=== RUN TestAPISpec_SanitizeProxyPaths/strip=true
--- PASS: TestAPISpec_SanitizeProxyPaths (0.00s)
--- PASS: TestAPISpec_SanitizeProxyPaths/strip=false (0.00s)
--- PASS: TestAPISpec_SanitizeProxyPaths/strip=true (0.00s)
=== RUN TestEnforcedTimeout
util.go:32: Skipping flaky test
--- SKIP: TestEnforcedTimeout (0.00s)
=== RUN TestOpenTracing
=== RUN TestOpenTracing/ensure_the_manager_is_enabled
=== RUN TestOpenTracing/ensure_services_are_initialized
redis: 2022/06/14 15:41:36 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33064->[::1]:6379: use of closed network connection
--- PASS: TestOpenTracing (0.14s)
--- PASS: TestOpenTracing/ensure_the_manager_is_enabled (0.00s)
--- PASS: TestOpenTracing/ensure_services_are_initialized (0.04s)
=== RUN TestInternalAPIUsage
=== RUN TestInternalAPIUsage/with_name
=== RUN TestInternalAPIUsage/with_api_id
redis: 2022/06/14 15:41:36 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33072->[::1]:6379: use of closed network connection
--- PASS: TestInternalAPIUsage (0.21s)
--- PASS: TestInternalAPIUsage/with_name (0.00s)
--- PASS: TestInternalAPIUsage/with_api_id (0.05s)
=== RUN TestFuzzyFindAPI
=== RUN TestFuzzyFindAPI/ignore_case
=== RUN TestFuzzyFindAPI/ignore_categories
=== RUN TestFuzzyFindAPI/replace_underscores
=== RUN TestFuzzyFindAPI/replace_@
=== RUN TestFuzzyFindAPI/supply_hex
=== RUN TestFuzzyFindAPI/supply_APIID
=== RUN TestFuzzyFindAPI/empty_search_string
redis: 2022/06/14 15:41:36 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33082->[::1]:6379: use of closed network connection
--- PASS: TestFuzzyFindAPI (0.19s)
--- PASS: TestFuzzyFindAPI/ignore_case (0.00s)
--- PASS: TestFuzzyFindAPI/ignore_categories (0.00s)
--- PASS: TestFuzzyFindAPI/replace_underscores (0.00s)
--- PASS: TestFuzzyFindAPI/replace_@ (0.00s)
--- PASS: TestFuzzyFindAPI/supply_hex (0.00s)
--- PASS: TestFuzzyFindAPI/supply_APIID (0.00s)
--- PASS: TestFuzzyFindAPI/empty_search_string (0.00s)
=== RUN TestAPILoopingName
=== RUN TestAPILoopingName/api_#a_#b_#c
=== RUN TestAPILoopingName/__api_#a_#b_#c
=== RUN TestAPILoopingName/@api_#a_#b_#c
=== RUN TestAPILoopingName/api
=== RUN TestAPILoopingName/__api__
=== RUN TestAPILoopingName/@___api_-__name_@__
=== RUN TestAPILoopingName/@___api_-__name_@___#a_#b
--- PASS: TestAPILoopingName (0.00s)
--- PASS: TestAPILoopingName/api_#a_#b_#c (0.00s)
--- PASS: TestAPILoopingName/__api_#a_#b_#c (0.00s)
--- PASS: TestAPILoopingName/@api_#a_#b_#c (0.00s)
--- PASS: TestAPILoopingName/api (0.00s)
--- PASS: TestAPILoopingName/__api__ (0.00s)
--- PASS: TestAPILoopingName/@___api_-__name_@__ (0.00s)
--- PASS: TestAPILoopingName/@___api_-__name_@___#a_#b (0.00s)
=== RUN TestGraphQLPlayground
=== RUN TestGraphQLPlayground/on-premise
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_empty
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_empty/playground_html_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_empty/playground.js_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_empty/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/'
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/playground'
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/playground'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/playground'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/playground'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/ppp'
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/ppp'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/ppp'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/ppp'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/zzz/'
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/zzz/'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/zzz/'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/zzz/'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'aaa'
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'aaa'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'aaa'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'aaa'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/cloud
=== RUN TestGraphQLPlayground/cloud/playground_path_is_empty
=== RUN TestGraphQLPlayground/cloud/playground_path_is_empty/playground_html_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_empty/playground.js_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_empty/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/'
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/playground'
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/playground'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/playground'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/playground'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/ppp'
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/ppp'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/ppp'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/ppp'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/zzz/'
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/zzz/'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/zzz/'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/zzz/'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'aaa'
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'aaa'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'aaa'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'aaa'/should_get_error_on_post_request_to_playground_path
redis: 2022/06/14 15:41:39 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33090->[::1]:6379: use of closed network connection
--- PASS: TestGraphQLPlayground (2.30s)
--- PASS: TestGraphQLPlayground/on-premise (1.09s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_empty (0.18s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_empty/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_empty/playground.js_is_loaded (0.12s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_empty/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/' (0.19s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/'/playground.js_is_loaded (0.13s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/playground' (0.18s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/playground'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/playground'/playground.js_is_loaded (0.12s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/playground'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/ppp' (0.17s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/ppp'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/ppp'/playground.js_is_loaded (0.11s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/ppp'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/zzz/' (0.18s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/zzz/'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/zzz/'/playground.js_is_loaded (0.12s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/zzz/'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'aaa' (0.19s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'aaa'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'aaa'/playground.js_is_loaded (0.13s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'aaa'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/cloud (1.12s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_empty (0.18s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_empty/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_empty/playground.js_is_loaded (0.13s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_empty/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/' (0.18s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/'/playground.js_is_loaded (0.12s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/playground' (0.19s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/playground'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/playground'/playground.js_is_loaded (0.13s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/playground'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/ppp' (0.18s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/ppp'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/ppp'/playground.js_is_loaded (0.12s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/ppp'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/zzz/' (0.19s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/zzz/'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/zzz/'/playground.js_is_loaded (0.13s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/zzz/'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'aaa' (0.19s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'aaa'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'aaa'/playground.js_is_loaded (0.13s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'aaa'/should_get_error_on_post_request_to_playground_path (0.00s)
=== RUN TestCORS
=== RUN TestCORS/CORS_disabled
=== RUN TestCORS/CORS_enabled
=== RUN TestCORS/oauth_endpoints
=== RUN TestCORS/oauth_endpoints/CORS_disabled
=== RUN TestCORS/oauth_endpoints/CORS_enabled
redis: 2022/06/14 15:41:39 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33098->[::1]:6379: use of closed network connection
--- PASS: TestCORS (0.34s)
--- PASS: TestCORS/CORS_disabled (0.00s)
--- PASS: TestCORS/CORS_enabled (0.05s)
--- PASS: TestCORS/oauth_endpoints (0.10s)
--- PASS: TestCORS/oauth_endpoints/CORS_disabled (0.00s)
--- PASS: TestCORS/oauth_endpoints/CORS_enabled (0.05s)
=== RUN TestTykRateLimitsStatusOfAPI
redis: 2022/06/14 15:41:39 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33108->[::1]:6379: use of closed network connection
--- PASS: TestTykRateLimitsStatusOfAPI (0.18s)
=== RUN TestPolicyAPI
redis: 2022/06/14 15:41:39 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33118->[::1]:6379: use of closed network connection
--- PASS: TestPolicyAPI (0.24s)
=== RUN TestHealthCheckEndpoint
redis: 2022/06/14 15:41:40 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33126->[::1]:6379: use of closed network connection
--- PASS: TestHealthCheckEndpoint (0.16s)
=== RUN TestApiHandlerPostDupPath
=== RUN TestApiHandlerPostDupPath/Sequentieal_order
=== RUN TestApiHandlerPostDupPath/Should_re-order
=== RUN TestApiHandlerPostDupPath/Restore_original_order
redis: 2022/06/14 15:41:40 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33134->[::1]:6379: use of closed network connection
--- PASS: TestApiHandlerPostDupPath (0.29s)
--- PASS: TestApiHandlerPostDupPath/Sequentieal_order (0.09s)
--- PASS: TestApiHandlerPostDupPath/Should_re-order (0.05s)
--- PASS: TestApiHandlerPostDupPath/Restore_original_order (0.05s)
=== RUN TestKeyHandler
=== RUN TestKeyHandler/Create_key
=== RUN TestKeyHandler/Create_key_with_policy
=== RUN TestKeyHandler/Get_key
=== RUN TestKeyHandler/List_keys
=== RUN TestKeyHandler/List_keys/filter=""
=== RUN TestKeyHandler/List_keys/filter=orgID
=== RUN TestKeyHandler/Update_key
=== RUN TestKeyHandler/Delete_key
redis: 2022/06/14 15:41:40 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33142->[::1]:6379: use of closed network connection
--- PASS: TestKeyHandler (0.21s)
--- PASS: TestKeyHandler/Create_key (0.01s)
--- PASS: TestKeyHandler/Create_key_with_policy (0.02s)
--- PASS: TestKeyHandler/Get_key (0.01s)
--- PASS: TestKeyHandler/List_keys (0.01s)
--- PASS: TestKeyHandler/List_keys/filter="" (0.00s)
--- PASS: TestKeyHandler/List_keys/filter=orgID (0.00s)
--- PASS: TestKeyHandler/Update_key (0.01s)
--- PASS: TestKeyHandler/Delete_key (0.00s)
=== RUN TestKeyHandler_UpdateKey
=== RUN TestKeyHandler_UpdateKey/Add_policy_not_enforcing_acl
=== RUN TestKeyHandler_UpdateKey/Remove_policy_not_enforcing_acl
=== RUN TestKeyHandler_UpdateKey/Tags_on_key_level
=== RUN TestKeyHandler_UpdateKey/Tags_on_key_level/Add
=== RUN TestKeyHandler_UpdateKey/Tags_on_key_level/Make_unique
=== RUN TestKeyHandler_UpdateKey/Tags_on_key_level/Remove
=== RUN TestKeyHandler_UpdateKey/MetaData_on_key_level
=== RUN TestKeyHandler_UpdateKey/MetaData_on_key_level/Add
=== RUN TestKeyHandler_UpdateKey/MetaData_on_key_level/Make_unique
=== RUN TestKeyHandler_UpdateKey/MetaData_on_key_level/Remove
redis: 2022/06/14 15:41:40 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33150->[::1]:6379: use of closed network connection
--- PASS: TestKeyHandler_UpdateKey (0.19s)
--- PASS: TestKeyHandler_UpdateKey/Add_policy_not_enforcing_acl (0.01s)
--- PASS: TestKeyHandler_UpdateKey/Remove_policy_not_enforcing_acl (0.00s)
--- PASS: TestKeyHandler_UpdateKey/Tags_on_key_level (0.02s)
--- PASS: TestKeyHandler_UpdateKey/Tags_on_key_level/Add (0.01s)
--- PASS: TestKeyHandler_UpdateKey/Tags_on_key_level/Make_unique (0.01s)
--- PASS: TestKeyHandler_UpdateKey/Tags_on_key_level/Remove (0.01s)
--- PASS: TestKeyHandler_UpdateKey/MetaData_on_key_level (0.02s)
--- PASS: TestKeyHandler_UpdateKey/MetaData_on_key_level/Add (0.01s)
--- PASS: TestKeyHandler_UpdateKey/MetaData_on_key_level/Make_unique (0.01s)
--- PASS: TestKeyHandler_UpdateKey/MetaData_on_key_level/Remove (0.01s)
=== RUN TestUpdateKeyWithCert
=== RUN TestUpdateKeyWithCert/Update_key_with_valid_cert
=== RUN TestUpdateKeyWithCert/Update_key_with_empty_cert
=== RUN TestUpdateKeyWithCert/Update_key_with_invalid_cert
redis: 2022/06/14 15:41:41 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33158->[::1]:6379: use of closed network connection
--- PASS: TestUpdateKeyWithCert (0.55s)
--- PASS: TestUpdateKeyWithCert/Update_key_with_valid_cert (0.18s)
--- PASS: TestUpdateKeyWithCert/Update_key_with_empty_cert (0.17s)
--- PASS: TestUpdateKeyWithCert/Update_key_with_invalid_cert (0.05s)
=== RUN TestKeyHandler_CheckKeysNotDuplicateOnUpdate
=== RUN TestKeyHandler_CheckKeysNotDuplicateOnUpdate/short,custom,notHashed
=== RUN TestKeyHandler_CheckKeysNotDuplicateOnUpdate/short,custom,hashed
=== RUN TestKeyHandler_CheckKeysNotDuplicateOnUpdate/long,custom,notHashed
=== RUN TestKeyHandler_CheckKeysNotDuplicateOnUpdate/long,custom,hashed
=== RUN TestKeyHandler_CheckKeysNotDuplicateOnUpdate/regular,notHashed
=== RUN TestKeyHandler_CheckKeysNotDuplicateOnUpdate/regular,hashed
redis: 2022/06/14 15:41:41 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33166->[::1]:6379: use of closed network connection
--- PASS: TestKeyHandler_CheckKeysNotDuplicateOnUpdate (0.17s)
--- PASS: TestKeyHandler_CheckKeysNotDuplicateOnUpdate/short,custom,notHashed (0.01s)
--- PASS: TestKeyHandler_CheckKeysNotDuplicateOnUpdate/short,custom,hashed (0.00s)
--- PASS: TestKeyHandler_CheckKeysNotDuplicateOnUpdate/long,custom,notHashed (0.01s)
--- PASS: TestKeyHandler_CheckKeysNotDuplicateOnUpdate/long,custom,hashed (0.00s)
--- PASS: TestKeyHandler_CheckKeysNotDuplicateOnUpdate/regular,notHashed (0.00s)
--- PASS: TestKeyHandler_CheckKeysNotDuplicateOnUpdate/regular,hashed (0.00s)
=== RUN TestHashKeyHandler
util.go:32: Skipping Racy test
--- SKIP: TestHashKeyHandler (0.00s)
=== RUN TestHashKeyHandlerLegacyWithHashFunc
util.go:32: Skipping Racy test
--- SKIP: TestHashKeyHandlerLegacyWithHashFunc (0.00s)
=== RUN TestHashKeyListingDisabled
=== RUN TestHashKeyListingDisabled/Create,_get_and_delete_key_with_key_hashing
redis: 2022/06/14 15:41:41 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33174->[::1]:6379: use of closed network connection
--- PASS: TestHashKeyListingDisabled (0.19s)
--- PASS: TestHashKeyListingDisabled/Create,_get_and_delete_key_with_key_hashing (0.02s)
=== RUN TestKeyHandler_HashingDisabled
util.go:32: Skipping Racy test
--- SKIP: TestKeyHandler_HashingDisabled (0.00s)
=== RUN TestInvalidateCache
redis: 2022/06/14 15:41:41 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33184->[::1]:6379: use of closed network connection
--- PASS: TestInvalidateCache (0.14s)
=== RUN TestGetOAuthClients
redis: 2022/06/14 15:41:42 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33192->[::1]:6379: use of closed network connection
--- PASS: TestGetOAuthClients (0.15s)
=== RUN TestCreateOAuthClient
=== RUN TestCreateOAuthClient/no_policy_id_but_api_id_provided
=== RUN TestCreateOAuthClient/policy_does_not_exist
=== RUN TestCreateOAuthClient/API_does_not_exist
=== RUN TestCreateOAuthClient/API_is_not_OAuth
=== RUN TestCreateOAuthClient/no_api_id_but_policy_id_provided
redis: 2022/06/14 15:41:42 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33200->[::1]:6379: use of closed network connection
--- PASS: TestCreateOAuthClient (0.16s)
--- PASS: TestCreateOAuthClient/no_policy_id_but_api_id_provided (0.01s)
--- PASS: TestCreateOAuthClient/policy_does_not_exist (0.00s)
--- PASS: TestCreateOAuthClient/API_does_not_exist (0.00s)
--- PASS: TestCreateOAuthClient/API_is_not_OAuth (0.00s)
--- PASS: TestCreateOAuthClient/no_api_id_but_policy_id_provided (0.00s)
=== RUN TestUpdateOauthClientHandler
=== RUN TestUpdateOauthClientHandler/Secret_remains_the_same
=== RUN TestUpdateOauthClientHandler/Secret_cannot_be_updated
=== RUN TestUpdateOauthClientHandler/Update_description
redis: 2022/06/14 15:41:42 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33208->[::1]:6379: use of closed network connection
--- PASS: TestUpdateOauthClientHandler (0.16s)
--- PASS: TestUpdateOauthClientHandler/Secret_remains_the_same (0.01s)
--- PASS: TestUpdateOauthClientHandler/Secret_cannot_be_updated (0.00s)
--- PASS: TestUpdateOauthClientHandler/Update_description (0.00s)
=== RUN TestGroupResetHandler
redis: 2022/06/14 15:41:42 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33218->[::1]:6379: use of closed network connection
--- PASS: TestGroupResetHandler (0.16s)
=== RUN TestHotReloadSingle
redis: 2022/06/14 15:41:42 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33226->[::1]:6379: use of closed network connection
--- PASS: TestHotReloadSingle (0.13s)
=== RUN TestContextData
--- PASS: TestContextData (0.00s)
=== RUN TestContextSession
redis: 2022/06/14 15:41:42 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33236->[::1]:6379: use of closed network connection
--- PASS: TestContextSession (0.11s)
=== RUN TestApiLoaderLongestPathFirst
redis: 2022/06/14 15:41:43 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33244->[::1]:6379: use of closed network connection
--- PASS: TestApiLoaderLongestPathFirst (0.27s)
=== RUN TestRotateClientSecretHandler
=== RUN TestRotateClientSecretHandler/Secret_can_be_rotated
redis: 2022/06/14 15:41:43 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33252->[::1]:6379: use of closed network connection
--- PASS: TestRotateClientSecretHandler (0.17s)
--- PASS: TestRotateClientSecretHandler/Secret_can_be_rotated (0.00s)
=== RUN TestHandleAddApi
=== RUN TestHandleAddApi/should_return_error_when_api_definition_json_is_invalid
=== RUN TestHandleAddApi/should_return_error_when_semantic_validation_fails
=== RUN TestHandleAddApi/should_return_success_when_no_error_occurs
=== RUN TestHandleAddApi/generate_api_id_if_not_provided
redis: 2022/06/14 15:41:43 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33260->[::1]:6379: use of closed network connection
--- PASS: TestHandleAddApi (0.11s)
--- PASS: TestHandleAddApi/should_return_error_when_api_definition_json_is_invalid (0.00s)
--- PASS: TestHandleAddApi/should_return_error_when_semantic_validation_fails (0.00s)
--- PASS: TestHandleAddApi/should_return_success_when_no_error_occurs (0.01s)
--- PASS: TestHandleAddApi/generate_api_id_if_not_provided (0.01s)
=== RUN TestHandleUpdateApi
=== RUN TestHandleUpdateApi/should_return_error_when_api_definition_json_is_invalid
=== RUN TestHandleUpdateApi/should_return_error_when_api_ids_are_different
=== RUN TestHandleUpdateApi/should_return_error_when_semantic_validation_fails
=== RUN TestHandleUpdateApi/should_return_success_when_no_error_occurs
=== RUN TestHandleUpdateApi/API_not_found_for_non_existing_API
redis: 2022/06/14 15:41:43 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33268->[::1]:6379: use of closed network connection
--- PASS: TestHandleUpdateApi (0.17s)
--- PASS: TestHandleUpdateApi/should_return_error_when_api_definition_json_is_invalid (0.00s)
--- PASS: TestHandleUpdateApi/should_return_error_when_api_ids_are_different (0.00s)
--- PASS: TestHandleUpdateApi/should_return_error_when_semantic_validation_fails (0.00s)
--- PASS: TestHandleUpdateApi/should_return_success_when_no_error_occurs (0.01s)
--- PASS: TestHandleUpdateApi/API_not_found_for_non_existing_API (0.00s)
=== RUN TestDeleteAPI
=== RUN TestDeleteAPI/API_not_found_for_non_existing_API
redis: 2022/06/14 15:41:43 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33280->[::1]:6379: use of closed network connection
--- PASS: TestDeleteAPI (0.10s)
--- PASS: TestDeleteAPI/API_not_found_for_non_existing_API (0.00s)
=== RUN TestOAS
=== RUN TestOAS/OAS_validation_-_should_fail_without_x-tyk-api-gateway
=== RUN TestOAS/OAS_validation_-_should_fail_without_paths
=== RUN TestOAS/get_old_api_in_OAS_format_-_should_fail
=== RUN TestOAS/toggle_isOAS_-_should_override
=== RUN TestOAS/update
=== RUN TestOAS/update/old_api
=== RUN TestOAS/update/old_api/with_old
=== RUN TestOAS/update/old_api/with_old/get
=== RUN TestOAS/update/old_api/with_old/get/in_old
=== RUN TestOAS/update/old_api/with_old/get/in_oas_-_should_fail
=== RUN TestOAS/update/old_api/with_oas_-_should_fail
=== RUN TestOAS/update/oas_api
=== RUN TestOAS/update/oas_api/with_old
=== RUN TestOAS/update/oas_api/with_old/update_oas_API_with_old_format_-_should_fail
=== RUN TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled
=== RUN TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled/get
=== RUN TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled/get/in_oas
=== RUN TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled/get/in_old
=== RUN TestOAS/update/oas_api/with_oas_and_gateway_tags_disabled
=== RUN TestOAS/update/oas_api/with_oas_and_gateway_tags_disabled/get
=== RUN TestOAS/update/oas_api/with_oas_and_gateway_tags_disabled/get/in_oas
=== RUN TestOAS/update/oas_api/with_oas_and_gateway_tags_disabled/get/in_old
=== RUN TestOAS/update/oas_api/with_oas
=== RUN TestOAS/update/oas_api/with_oas/get
=== RUN TestOAS/update/oas_api/with_oas/get/in_oas
=== RUN TestOAS/update/oas_api/with_oas/get/in_old
=== RUN TestOAS/update/oas_api/OAS_validation
=== RUN TestOAS/update/oas_api/export
=== RUN TestOAS/update/oas_api/export/with_old
=== RUN TestOAS/update/oas_api/export/with_old/get
=== RUN TestOAS/update/oas_api/export/with_old/get_scope_public
=== RUN TestOAS/update/oas_api/export/with_oas
=== RUN TestOAS/update/oas_api/export/with_oas/get
=== RUN TestOAS/update/oas_api/export/with_oas/get_scope_public
=== RUN TestOAS/update/oas_api/export/not_found
=== RUN TestOAS/update/oas_api/export/not_found/get
=== RUN TestOAS/patch
=== RUN TestOAS/patch/when_tyk_extension_is_provided_and_no_params_are_provided_-_act_like_PUT
=== RUN TestOAS/patch/when_tyk_extension_and_parameters_are_not_provided_-_update_OAS_part_only
=== RUN TestOAS/patch/when_params_are_provided_and_no_tyk_extension_in_request_-_override_values_in_existing_API
=== RUN TestOAS/patch/when_param_are_provided_and_tyk_extension_in_request_-_override_values_(if_any)_in_request
=== RUN TestOAS/patch/retain_old_OAS_servers
=== RUN TestOAS/patch/retain_old_OAS_servers/should_retain_first_entry_in_existing_API
=== RUN TestOAS/patch/retain_old_OAS_servers/do_not_modify_if_first_server_is_same_as_that_of_gw
=== RUN TestOAS/patch/error_on_invalid_upstreamURL
=== RUN TestOAS/patch/request_validation
=== RUN TestOAS/patch/request_validation/empty_apiID
=== RUN TestOAS/patch/request_validation/malformed_body
=== RUN TestOAS/patch/request_validation/error_when_APIID_doesn't_exist_in_gw
=== RUN TestOAS/patch/request_validation/when_dashboard_app_config_set_to_true
=== RUN TestOAS/patch/request_validation/fail_when_non_OAS_API_tried_to_patch
=== RUN TestOAS/patch/OAS_validation
=== RUN TestOAS/delete
=== RUN TestOAS/delete/oas
=== RUN TestOAS/delete/old_api
=== RUN TestOAS/import/OAS
=== RUN TestOAS/import/OAS/error_with_tyk_extension
=== RUN TestOAS/import/OAS/success_without_tyk_extension
=== RUN TestOAS/import/OAS/missing_paths_from_OAS
=== RUN TestOAS/import/OAS/malformed_upstream_URL
=== RUN TestOAS/import/OAS/missing_upstream_URL
=== RUN TestOAS/import/OAS/success_without_config_query_params,_no_tyk_ext
redis: 2022/06/14 15:41:46 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33288->[::1]:6379: use of closed network connection
--- PASS: TestOAS (2.86s)
--- PASS: TestOAS/OAS_validation_-_should_fail_without_x-tyk-api-gateway (0.00s)
--- PASS: TestOAS/OAS_validation_-_should_fail_without_paths (0.03s)
--- PASS: TestOAS/get_old_api_in_OAS_format_-_should_fail (0.00s)
--- PASS: TestOAS/toggle_isOAS_-_should_override (0.06s)
--- PASS: TestOAS/update (0.89s)
--- PASS: TestOAS/update/old_api (0.20s)
--- PASS: TestOAS/update/old_api/with_old (0.12s)
--- PASS: TestOAS/update/old_api/with_old/get (0.01s)
--- PASS: TestOAS/update/old_api/with_old/get/in_old (0.01s)
--- PASS: TestOAS/update/old_api/with_old/get/in_oas_-_should_fail (0.00s)
--- PASS: TestOAS/update/old_api/with_oas_-_should_fail (0.03s)
--- PASS: TestOAS/update/oas_api (0.53s)
--- PASS: TestOAS/update/oas_api/with_old (0.01s)
--- PASS: TestOAS/update/oas_api/with_old/update_oas_API_with_old_format_-_should_fail (0.00s)
--- PASS: TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled (0.16s)
--- PASS: TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled/get (0.01s)
--- PASS: TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled/get/in_oas (0.00s)
--- PASS: TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled/get/in_old (0.01s)
--- PASS: TestOAS/update/oas_api/with_oas_and_gateway_tags_disabled (0.16s)
--- PASS: TestOAS/update/oas_api/with_oas_and_gateway_tags_disabled/get (0.01s)
--- PASS: TestOAS/update/oas_api/with_oas_and_gateway_tags_disabled/get/in_oas (0.00s)
--- PASS: TestOAS/update/oas_api/with_oas_and_gateway_tags_disabled/get/in_old (0.01s)
--- PASS: TestOAS/update/oas_api/with_oas (0.16s)
--- PASS: TestOAS/update/oas_api/with_oas/get (0.01s)
--- PASS: TestOAS/update/oas_api/with_oas/get/in_oas (0.00s)
--- PASS: TestOAS/update/oas_api/with_oas/get/in_old (0.01s)
--- PASS: TestOAS/update/oas_api/OAS_validation (0.03s)
--- PASS: TestOAS/update/oas_api/export (0.16s)
--- PASS: TestOAS/update/oas_api/export/with_old (0.08s)
--- PASS: TestOAS/update/oas_api/export/with_old/get (0.00s)
--- PASS: TestOAS/update/oas_api/export/with_old/get_scope_public (0.00s)
--- PASS: TestOAS/update/oas_api/export/with_oas (0.00s)
--- PASS: TestOAS/update/oas_api/export/with_oas/get (0.00s)
--- PASS: TestOAS/update/oas_api/export/with_oas/get_scope_public (0.00s)
--- PASS: TestOAS/update/oas_api/export/not_found (0.08s)
--- PASS: TestOAS/update/oas_api/export/not_found/get (0.00s)
--- PASS: TestOAS/patch (1.16s)
--- PASS: TestOAS/patch/when_tyk_extension_is_provided_and_no_params_are_provided_-_act_like_PUT (0.16s)
--- PASS: TestOAS/patch/when_tyk_extension_and_parameters_are_not_provided_-_update_OAS_part_only (0.16s)
--- PASS: TestOAS/patch/when_params_are_provided_and_no_tyk_extension_in_request_-_override_values_in_existing_API (0.17s)
--- PASS: TestOAS/patch/when_param_are_provided_and_tyk_extension_in_request_-_override_values_(if_any)_in_request (0.17s)
--- PASS: TestOAS/patch/retain_old_OAS_servers (0.33s)
--- PASS: TestOAS/patch/retain_old_OAS_servers/should_retain_first_entry_in_existing_API (0.16s)
--- PASS: TestOAS/patch/retain_old_OAS_servers/do_not_modify_if_first_server_is_same_as_that_of_gw (0.16s)
--- PASS: TestOAS/patch/error_on_invalid_upstreamURL (0.03s)
--- PASS: TestOAS/patch/request_validation (0.10s)
--- PASS: TestOAS/patch/request_validation/empty_apiID (0.03s)
--- PASS: TestOAS/patch/request_validation/malformed_body (0.00s)
--- PASS: TestOAS/patch/request_validation/error_when_APIID_doesn't_exist_in_gw (0.03s)
--- PASS: TestOAS/patch/request_validation/when_dashboard_app_config_set_to_true (0.00s)
--- PASS: TestOAS/patch/request_validation/fail_when_non_OAS_API_tried_to_patch (0.03s)
--- PASS: TestOAS/patch/OAS_validation (0.03s)
--- PASS: TestOAS/delete (0.10s)
--- PASS: TestOAS/delete/oas (0.05s)
--- PASS: TestOAS/delete/old_api (0.05s)
--- PASS: TestOAS/import/OAS (0.40s)
--- PASS: TestOAS/import/OAS/error_with_tyk_extension (0.04s)
--- PASS: TestOAS/import/OAS/success_without_tyk_extension (0.08s)
--- PASS: TestOAS/import/OAS/missing_paths_from_OAS (0.07s)
--- PASS: TestOAS/import/OAS/malformed_upstream_URL (0.07s)
--- PASS: TestOAS/import/OAS/missing_upstream_URL (0.07s)
--- PASS: TestOAS/import/OAS/success_without_config_query_params,_no_tyk_ext (0.08s)
=== RUN TestAuthenticationAfterDeleteKey
=== RUN TestAuthenticationAfterDeleteKey/HashKeys=false
redis: 2022/06/14 15:41:46 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33304->[::1]:6379: use of closed network connection
=== RUN TestAuthenticationAfterDeleteKey/HashKeys=true
redis: 2022/06/14 15:41:46 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33312->[::1]:6379: use of closed network connection
redis: 2022/06/14 15:41:46 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33296->[::1]:6379: use of closed network connection
--- PASS: TestAuthenticationAfterDeleteKey (0.44s)
--- PASS: TestAuthenticationAfterDeleteKey/HashKeys=false (0.15s)
--- PASS: TestAuthenticationAfterDeleteKey/HashKeys=true (0.15s)
=== RUN TestAuthenticationAfterUpdateKey
=== RUN TestAuthenticationAfterUpdateKey/HashKeys=false
=== RUN TestAuthenticationAfterUpdateKey/HashKeys=true
redis: 2022/06/14 15:41:47 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33320->[::1]:6379: use of closed network connection
--- PASS: TestAuthenticationAfterUpdateKey (0.20s)
--- PASS: TestAuthenticationAfterUpdateKey/HashKeys=false (0.05s)
--- PASS: TestAuthenticationAfterUpdateKey/HashKeys=true (0.05s)
=== RUN TestHashKeyFunctionChanged
=== RUN TestHashKeyFunctionChanged/custom_key
=== RUN TestHashKeyFunctionChanged/basic_auth_key
=== RUN TestHashKeyFunctionChanged/client_certificate
redis: 2022/06/14 15:41:49 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33328->[::1]:6379: use of closed network connection
--- PASS: TestHashKeyFunctionChanged (2.52s)
--- PASS: TestHashKeyFunctionChanged/custom_key (0.02s)
--- PASS: TestHashKeyFunctionChanged/basic_auth_key (2.10s)
--- PASS: TestHashKeyFunctionChanged/client_certificate (0.06s)
=== RUN TestBatch
redis: 2022/06/14 15:41:49 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33336->[::1]:6379: use of closed network connection
--- PASS: TestBatch (0.17s)
=== RUN TestVirtualEndpointBatch
=== RUN TestVirtualEndpointBatch/Skip_verification
=== RUN TestVirtualEndpointBatch/Verification_required
redis: 2022/06/14 15:41:50 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33344->[::1]:6379: use of closed network connection
--- PASS: TestVirtualEndpointBatch (0.52s)
--- PASS: TestVirtualEndpointBatch/Skip_verification (0.02s)
--- PASS: TestVirtualEndpointBatch/Verification_required (0.19s)
=== RUN TestBatchIgnoreCanonicalHeaderKey
redis: 2022/06/14 15:41:50 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33358->[::1]:6379: use of closed network connection
--- PASS: TestBatchIgnoreCanonicalHeaderKey (0.19s)
=== RUN TestPublicKeyPinning
=== RUN TestPublicKeyPinning/Pub_key_match
redis: 2022/06/14 15:41:50 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33366->[::1]:6379: use of closed network connection
=== RUN TestPublicKeyPinning/Pub_key_not_match
util.go:32: Skipping flaky test
=== RUN TestPublicKeyPinning/Global_setting
util.go:32: Skipping flaky test
=== RUN TestPublicKeyPinning/Though_proxy
redis: 2022/06/14 15:41:51 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33374->[::1]:6379: use of closed network connection
=== RUN TestPublicKeyPinning/Enable_Common_Name_check
redis: 2022/06/14 15:41:51 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33382->[::1]:6379: use of closed network connection
--- PASS: TestPublicKeyPinning (1.02s)
--- PASS: TestPublicKeyPinning/Pub_key_match (0.16s)
--- SKIP: TestPublicKeyPinning/Pub_key_not_match (0.00s)
--- SKIP: TestPublicKeyPinning/Global_setting (0.00s)
--- PASS: TestPublicKeyPinning/Though_proxy (0.27s)
--- PASS: TestPublicKeyPinning/Enable_Common_Name_check (0.36s)
=== RUN TestProxyTransport
=== RUN TestProxyTransport/Global:_Cipher_match
=== RUN TestProxyTransport/Global:_Cipher_not_match
=== RUN TestProxyTransport/API:_Cipher_override
=== RUN TestProxyTransport/API:_MinTLS_not_match
=== RUN TestProxyTransport/API:_Invalid_proxy
=== RUN TestProxyTransport/API:_Valid_proxy
redis: 2022/06/14 15:41:51 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33390->[::1]:6379: use of closed network connection
--- PASS: TestProxyTransport (0.48s)
--- PASS: TestProxyTransport/Global:_Cipher_match (0.05s)
--- PASS: TestProxyTransport/Global:_Cipher_not_match (0.04s)
--- PASS: TestProxyTransport/API:_Cipher_override (0.05s)
--- PASS: TestProxyTransport/API:_MinTLS_not_match (0.05s)
--- PASS: TestProxyTransport/API:_Invalid_proxy (0.05s)
--- PASS: TestProxyTransport/API:_Valid_proxy (0.12s)
=== RUN TestGatewayTLS
=== RUN TestGatewayTLS/Without_certificates
redis: 2022/06/14 15:41:52 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33398->[::1]:6379: use of closed network connection
=== RUN TestGatewayTLS/Legacy_TLS_certificate_path
redis: 2022/06/14 15:41:52 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33408->[::1]:6379: use of closed network connection
=== RUN TestGatewayTLS/File_certificate_path
redis: 2022/06/14 15:41:52 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33416->[::1]:6379: use of closed network connection
=== RUN TestGatewayTLS/Redis_certificate
redis: 2022/06/14 15:41:52 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33434->[::1]:6379: use of closed network connection
redis: 2022/06/14 15:41:52 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33424->[::1]:6379: use of closed network connection
--- PASS: TestGatewayTLS (0.82s)
--- PASS: TestGatewayTLS/Without_certificates (0.15s)
--- PASS: TestGatewayTLS/Legacy_TLS_certificate_path (0.15s)
--- PASS: TestGatewayTLS/File_certificate_path (0.15s)
--- PASS: TestGatewayTLS/Redis_certificate (0.31s)
=== RUN TestGatewayControlAPIMutualTLS
=== RUN TestGatewayControlAPIMutualTLS/Separate_domain
redis: 2022/06/14 15:41:53 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33442->[::1]:6379: use of closed network connection
=== RUN TestGatewayControlAPIMutualTLS/Separate_domain/_control_api_with_valid_cert
redis: 2022/06/14 15:41:53 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33450->[::1]:6379: use of closed network connection
--- PASS: TestGatewayControlAPIMutualTLS (0.53s)
--- PASS: TestGatewayControlAPIMutualTLS/Separate_domain (0.16s)
--- PASS: TestGatewayControlAPIMutualTLS/Separate_domain/_control_api_with_valid_cert (0.17s)
=== RUN TestAPIMutualTLS
=== RUN TestAPIMutualTLS/SNI_and_domain_per_API
=== RUN TestAPIMutualTLS/SNI_and_domain_per_API/API_without_mutual_TLS
=== RUN TestAPIMutualTLS/SNI_and_domain_per_API/MutualTLSCertificate_not_set
=== RUN TestAPIMutualTLS/SNI_and_domain_per_API/Client_certificate_match
=== RUN TestAPIMutualTLS/SNI_and_domain_per_API/Client_certificate_differ
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain/Empty_domain
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain/Empty_domain/Without_certificate
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain/Empty_domain/Client_certificate_not_match
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain/Empty_domain/Client_certificate_match
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain/Custom_domain
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain/Custom_domain/Without_certificate
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain/Custom_domain/Client_certificate_not_match
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain/Custom_domain/Client_certificate_match
=== RUN TestAPIMutualTLS/Multiple_APIs_with_Mutual_TLS_on_the_same_domain
=== RUN TestAPIMutualTLS/Multiple_APIs_with_Mutual_TLS_on_the_same_domain/Empty_domain
=== RUN TestAPIMutualTLS/Multiple_APIs_with_Mutual_TLS_on_the_same_domain/Empty_domain/Without_certificate
cert_test.go:438: Expect error.
cert_test.go:438: Expect error.
redis: 2022/06/14 15:41:54 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:33460->[::1]:6379: use of closed network connection
--- FAIL: TestAPIMutualTLS (1.07s)
--- PASS: TestAPIMutualTLS/SNI_and_domain_per_API (0.29s)
--- PASS: TestAPIMutualTLS/SNI_and_domain_per_API/API_without_mutual_TLS (0.05s)
--- PASS: TestAPIMutualTLS/SNI_and_domain_per_API/MutualTLSCertificate_not_set (0.05s)
--- PASS: TestAPIMutualTLS/SNI_and_domain_per_API/Client_certificate_match (0.07s)
--- PASS: TestAPIMutualTLS/SNI_and_domain_per_API/Client_certificate_differ (0.12s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain (0.36s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain/Empty_domain (0.18s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain/Empty_domain/Without_certificate (0.06s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain/Empty_domain/Client_certificate_not_match (0.06s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain/Empty_domain/Client_certificate_match (0.06s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain/Custom_domain (0.18s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain/Custom_domain/Without_certificate (0.06s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain/Custom_domain/Client_certificate_not_match (0.06s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain/Custom_domain/Client_certificate_match (0.06s)
--- FAIL: TestAPIMutualTLS/Multiple_APIs_with_Mutual_TLS_on_the_same_domain (0.06s)
--- FAIL: TestAPIMutualTLS/Multiple_APIs_with_Mutual_TLS_on_the_same_domain/Empty_domain (0.06s)
--- FAIL: TestAPIMutualTLS/Multiple_APIs_with_Mutual_TLS_on_the_same_domain/Empty_domain/Without_certificate (0.06s)
=== CONT TestGatewayTagsFilter
--- PASS: TestGatewayTagsFilter (0.00s)
FAIL
coverage: 36.1% of statements
FAIL github.com/TykTechnologies/tyk/gateway 23.283s
FAIL
gofmt
all ok
goimports
all ok
gogenerate
all ok
If the above are ok, please look at the run or in the Checks tab.
:boom: CI tests failed :see_no_evil:
CI test log
Building go plugin
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=tyk.cov github.com/TykTechnologies/tyk
? github.com/TykTechnologies/tyk [no test files]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=apidef.cov github.com/TykTechnologies/tyk/apidef
=== RUN TestSchema
--- PASS: TestSchema (0.02s)
=== RUN TestEncodeForDB
=== RUN TestEncodeForDB/update_ScopeClaim_when_Scopes.JWT_is_not_empty_and_OIDC_is_not_enabled
=== RUN TestEncodeForDB/update_ScopeClaim_when_Scopes.OIDC_is_not_empty_and_OpenID_is_enabled
=== RUN TestEncodeForDB/EncodeForDB_persist_schema_objects_from_extended_path
--- PASS: TestEncodeForDB (0.00s)
--- PASS: TestEncodeForDB/update_ScopeClaim_when_Scopes.JWT_is_not_empty_and_OIDC_is_not_enabled (0.00s)
--- PASS: TestEncodeForDB/update_ScopeClaim_when_Scopes.OIDC_is_not_empty_and_OpenID_is_enabled (0.00s)
--- PASS: TestEncodeForDB/EncodeForDB_persist_schema_objects_from_extended_path (0.00s)
=== RUN TestDecodeFromDB
=== RUN TestDecodeFromDB/update_Scopes.JWT_when_JWTScopeClaimName_is_not_empty
time="Jun 14 15:41:26" level=error msg="Couldn't Decode, leaving as it may be legacy..."
=== RUN TestDecodeFromDB/update_Scopes.OIDC_when_JWTScopeClaimName_is_not_empty_and_OpenID_is_enabled
time="Jun 14 15:41:26" level=error msg="Couldn't Decode, leaving as it may be legacy..."
--- PASS: TestDecodeFromDB (0.00s)
--- PASS: TestDecodeFromDB/update_Scopes.JWT_when_JWTScopeClaimName_is_not_empty (0.00s)
--- PASS: TestDecodeFromDB/update_Scopes.OIDC_when_JWTScopeClaimName_is_not_empty_and_OpenID_is_enabled (0.00s)
=== RUN TestSchemaGraphqlConfig
--- PASS: TestSchemaGraphqlConfig (0.01s)
=== RUN TestAPIDefinition_DecodeFromDB_AuthDeprecation
time="Jun 14 15:41:26" level=error msg="Couldn't Decode, leaving as it may be legacy..."
time="Jun 14 15:41:26" level=error msg="Couldn't Decode, leaving as it may be legacy..."
--- PASS: TestAPIDefinition_DecodeFromDB_AuthDeprecation (0.00s)
=== RUN TestAPIDefinition_GenerateAPIID
--- PASS: TestAPIDefinition_GenerateAPIID (0.00s)
=== RUN TestAPIDefinition_MigrateVersioning
--- PASS: TestAPIDefinition_MigrateVersioning (0.00s)
=== RUN TestAPIDefinition_MigrateVersioning_Disabled
=== RUN TestAPIDefinition_MigrateVersioning_Disabled/multiple_versions
=== RUN TestAPIDefinition_MigrateVersioning_Disabled/one_version
--- PASS: TestAPIDefinition_MigrateVersioning_Disabled (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_Disabled/multiple_versions (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_Disabled/one_version (0.00s)
=== RUN TestAPIDefinition_MigrateVersioning_DefaultEmpty
=== RUN TestAPIDefinition_MigrateVersioning_DefaultEmpty/Default
--- PASS: TestAPIDefinition_MigrateVersioning_DefaultEmpty (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_DefaultEmpty/Default (0.00s)
=== RUN TestAPIDefinition_MigrateVersioning_Expires
=== RUN TestAPIDefinition_MigrateVersioning_Expires/version_enabled
=== RUN TestAPIDefinition_MigrateVersioning_Expires/version_disabled
--- PASS: TestAPIDefinition_MigrateVersioning_Expires (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_Expires/version_enabled (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_Expires/version_disabled (0.00s)
=== RUN TestAPIDefinition_MigrateVersioning_OverrideTarget
=== RUN TestAPIDefinition_MigrateVersioning_OverrideTarget/base
=== RUN TestAPIDefinition_MigrateVersioning_OverrideTarget/version
--- PASS: TestAPIDefinition_MigrateVersioning_OverrideTarget (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_OverrideTarget/base (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_OverrideTarget/version (0.00s)
=== RUN TestAPIDefinition_MigrateVersioning_StripPath
=== RUN TestAPIDefinition_MigrateVersioning_StripPath/url
=== RUN TestAPIDefinition_MigrateVersioning_StripPath/param
=== RUN TestAPIDefinition_MigrateVersioning_StripPath/header
--- PASS: TestAPIDefinition_MigrateVersioning_StripPath (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_StripPath/url (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_StripPath/param (0.00s)
--- PASS: TestAPIDefinition_MigrateVersioning_StripPath/header (0.00s)
=== RUN TestAPIDefinition_MigrateEndpointMeta
--- PASS: TestAPIDefinition_MigrateEndpointMeta (0.00s)
=== RUN TestAPIDefinition_MigrateCachePlugin
--- PASS: TestAPIDefinition_MigrateCachePlugin (0.00s)
=== RUN TestAPIDefinition_MigrateAuthConfigNames
--- PASS: TestAPIDefinition_MigrateAuthConfigNames (0.00s)
=== RUN TestValidationResult_HasErrors
--- PASS: TestValidationResult_HasErrors (0.00s)
=== RUN TestValidationResult_FirstError
--- PASS: TestValidationResult_FirstError (0.00s)
=== RUN TestValidationResult_ErrorStrings
--- PASS: TestValidationResult_ErrorStrings (0.00s)
=== RUN TestRuleUniqueDataSourceNames_Validate
=== RUN TestRuleUniqueDataSourceNames_Validate/should_return_invalid_when_data_source_name_is_duplicated
=== RUN TestRuleUniqueDataSourceNames_Validate/return_valid_when_data_source_names_are_not_duplicated
=== RUN TestRuleUniqueDataSourceNames_Validate/return_valid_when_there_are_no_data_sources
--- PASS: TestRuleUniqueDataSourceNames_Validate (0.00s)
--- PASS: TestRuleUniqueDataSourceNames_Validate/should_return_invalid_when_data_source_name_is_duplicated (0.00s)
--- PASS: TestRuleUniqueDataSourceNames_Validate/return_valid_when_data_source_names_are_not_duplicated (0.00s)
--- PASS: TestRuleUniqueDataSourceNames_Validate/return_valid_when_there_are_no_data_sources (0.00s)
=== RUN TestRuleAtLeastEnableOneAuthConfig_Validate
=== RUN TestRuleAtLeastEnableOneAuthConfig_Validate/should_return_invalid_when_all_sources_are_disabled_for_enabled_auth_mechanisms
=== RUN TestRuleAtLeastEnableOneAuthConfig_Validate/should_return_valid_when_at_least_one_source_is_enabled_for_enabled_auth_mechanisms
--- PASS: TestRuleAtLeastEnableOneAuthConfig_Validate (0.00s)
--- PASS: TestRuleAtLeastEnableOneAuthConfig_Validate/should_return_invalid_when_all_sources_are_disabled_for_enabled_auth_mechanisms (0.00s)
--- PASS: TestRuleAtLeastEnableOneAuthConfig_Validate/should_return_valid_when_at_least_one_source_is_enabled_for_enabled_auth_mechanisms (0.00s)
PASS
coverage: 61.7% of statements
ok github.com/TykTechnologies/tyk/apidef 0.105s coverage: 61.7% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=adapter.cov github.com/TykTechnologies/tyk/apidef/adapter
=== RUN TestGraphQLConfigAdapter_EngineConfigV2
=== RUN TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_proxy-only_mode
=== RUN TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_internal_proxy-only_api
=== RUN TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_engine_execution_mode_without_error
=== RUN TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_supergraph_execution_mode_without_error
=== RUN TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_supergraph_with_batching_disabled
=== RUN TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_subgraph_without_error
=== RUN TestGraphQLConfigAdapter_EngineConfigV2/should_return_an_error_for_unsupported_config
--- PASS: TestGraphQLConfigAdapter_EngineConfigV2 (0.06s)
--- PASS: TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_proxy-only_mode (0.01s)
--- PASS: TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_internal_proxy-only_api (0.01s)
--- PASS: TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_engine_execution_mode_without_error (0.02s)
--- PASS: TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_supergraph_execution_mode_without_error (0.01s)
--- PASS: TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_supergraph_with_batching_disabled (0.01s)
--- PASS: TestGraphQLConfigAdapter_EngineConfigV2/should_create_v2_config_for_subgraph_without_error (0.01s)
--- PASS: TestGraphQLConfigAdapter_EngineConfigV2/should_return_an_error_for_unsupported_config (0.00s)
=== RUN TestGraphQLConfigAdapter_supergraphDataSourceConfigs
--- PASS: TestGraphQLConfigAdapter_supergraphDataSourceConfigs (0.00s)
=== RUN TestGraphQLConfigAdapter_engineConfigV2FieldConfigs
--- PASS: TestGraphQLConfigAdapter_engineConfigV2FieldConfigs (0.01s)
=== RUN TestGraphQLConfigAdapter_engineConfigV2DataSources
--- PASS: TestGraphQLConfigAdapter_engineConfigV2DataSources (0.02s)
PASS
coverage: 88.9% of statements
ok github.com/TykTechnologies/tyk/apidef/adapter 0.149s coverage: 88.9% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=importer.cov github.com/TykTechnologies/tyk/apidef/importer
=== RUN TestToAPIDefinition_Swagger
--- PASS: TestToAPIDefinition_Swagger (0.00s)
=== RUN TestToAPIDefinition_WSDL
time="Jun 14 15:41:29" level=error msg="Port for service HolidayService2 not found. Skiping processing of the service"
time="Jun 14 15:41:29" level=error msg="Unsupported transport protocol. Skipping process of the service StockQuoteService"
time="Jun 14 15:41:29" level=error msg="Port for service StockQuoteService not found. Skiping processing of the service"
--- PASS: TestToAPIDefinition_WSDL (0.02s)
PASS
coverage: 65.7% of statements
ok github.com/TykTechnologies/tyk/apidef/importer 0.074s coverage: 65.7% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=oas.cov github.com/TykTechnologies/tyk/apidef/oas
=== RUN TestAuthentication
=== RUN TestAuthentication/Fill_just_GoPlugin
--- PASS: TestAuthentication (0.00s)
--- PASS: TestAuthentication/Fill_just_GoPlugin (0.00s)
=== RUN TestScopes
--- PASS: TestScopes (0.00s)
=== RUN TestAuthSources
--- PASS: TestAuthSources (0.00s)
=== RUN TestAuthSource
=== RUN TestAuthSource/param
=== RUN TestAuthSource/cookie
--- PASS: TestAuthSource (0.00s)
--- PASS: TestAuthSource/param (0.00s)
--- PASS: TestAuthSource/cookie (0.00s)
=== RUN TestSignature
--- PASS: TestSignature (0.00s)
=== RUN TestHMAC
--- PASS: TestHMAC (0.00s)
=== RUN TestOIDC
--- PASS: TestOIDC (0.00s)
=== RUN TestGoPlugin
--- PASS: TestGoPlugin (0.00s)
=== RUN TestCustomPlugin
--- PASS: TestCustomPlugin (0.00s)
=== RUN TestOAS_BuildDefaultTykExtension
=== PAUSE TestOAS_BuildDefaultTykExtension
=== RUN TestGetTykExtensionConfigParams
=== RUN TestGetTykExtensionConfigParams/extract_all_params_when_provided
=== RUN TestGetTykExtensionConfigParams/nil_when_no_params_provided
=== RUN TestGetTykExtensionConfigParams/nil_for_middleware_when_params_not_provided
=== RUN TestGetTykExtensionConfigParams/not_nil_when_at_least_one_parameter_is_provided
--- PASS: TestGetTykExtensionConfigParams (0.00s)
--- PASS: TestGetTykExtensionConfigParams/extract_all_params_when_provided (0.00s)
--- PASS: TestGetTykExtensionConfigParams/nil_when_no_params_provided (0.00s)
--- PASS: TestGetTykExtensionConfigParams/nil_for_middleware_when_params_not_provided (0.00s)
--- PASS: TestGetTykExtensionConfigParams/not_nil_when_at_least_one_parameter_is_provided (0.00s)
=== RUN TestOAS_importAuthentication
=== RUN TestOAS_importAuthentication/security_is_empty
=== RUN TestOAS_importAuthentication/add_first_authentication_in_case_of_OR_condition
=== RUN TestOAS_importAuthentication/add_first_authentication_in_case_of_OR_condition/enable=true
=== RUN TestOAS_importAuthentication/add_first_authentication_in_case_of_OR_condition/enable=false
=== RUN TestOAS_importAuthentication/update_existing_one
=== RUN TestOAS_importAuthentication/add_multiple_authentication_with_AND_condition
=== RUN TestOAS_importAuthentication/add_multiple_authentication_with_AND_condition/enable=true
=== RUN TestOAS_importAuthentication/add_multiple_authentication_with_AND_condition/enable=false
--- PASS: TestOAS_importAuthentication (0.00s)
--- PASS: TestOAS_importAuthentication/security_is_empty (0.00s)
--- PASS: TestOAS_importAuthentication/add_first_authentication_in_case_of_OR_condition (0.00s)
--- PASS: TestOAS_importAuthentication/add_first_authentication_in_case_of_OR_condition/enable=true (0.00s)
--- PASS: TestOAS_importAuthentication/add_first_authentication_in_case_of_OR_condition/enable=false (0.00s)
--- PASS: TestOAS_importAuthentication/update_existing_one (0.00s)
--- PASS: TestOAS_importAuthentication/add_multiple_authentication_with_AND_condition (0.00s)
--- PASS: TestOAS_importAuthentication/add_multiple_authentication_with_AND_condition/enable=true (0.00s)
--- PASS: TestOAS_importAuthentication/add_multiple_authentication_with_AND_condition/enable=false (0.00s)
=== RUN TestSecuritySchemes_Import
=== RUN TestSecuritySchemes_Import/token
=== RUN TestSecuritySchemes_Import/token/enable=true
=== RUN TestSecuritySchemes_Import/token/enable=false
=== RUN TestSecuritySchemes_Import/jwt
=== RUN TestSecuritySchemes_Import/basic
=== RUN TestSecuritySchemes_Import/oauth
=== RUN TestSecuritySchemes_Import/unsupported_scheme
=== RUN TestSecuritySchemes_Import/update_existing_one
--- PASS: TestSecuritySchemes_Import (0.00s)
--- PASS: TestSecuritySchemes_Import/token (0.00s)
--- PASS: TestSecuritySchemes_Import/token/enable=true (0.00s)
--- PASS: TestSecuritySchemes_Import/token/enable=false (0.00s)
--- PASS: TestSecuritySchemes_Import/jwt (0.00s)
--- PASS: TestSecuritySchemes_Import/basic (0.00s)
--- PASS: TestSecuritySchemes_Import/oauth (0.00s)
--- PASS: TestSecuritySchemes_Import/unsupported_scheme (0.00s)
--- PASS: TestSecuritySchemes_Import/update_existing_one (0.00s)
=== RUN TestSecuritySchemes_GetBaseIdentityProvider
=== RUN TestSecuritySchemes_GetBaseIdentityProvider/empty
=== RUN TestSecuritySchemes_GetBaseIdentityProvider/empty/zero
=== RUN TestSecuritySchemes_GetBaseIdentityProvider/empty/one
=== RUN TestSecuritySchemes_GetBaseIdentityProvider/token
=== RUN TestSecuritySchemes_GetBaseIdentityProvider/jwt
=== RUN TestSecuritySchemes_GetBaseIdentityProvider/oauth
--- PASS: TestSecuritySchemes_GetBaseIdentityProvider (0.00s)
--- PASS: TestSecuritySchemes_GetBaseIdentityProvider/empty (0.00s)
--- PASS: TestSecuritySchemes_GetBaseIdentityProvider/empty/zero (0.00s)
--- PASS: TestSecuritySchemes_GetBaseIdentityProvider/empty/one (0.00s)
--- PASS: TestSecuritySchemes_GetBaseIdentityProvider/token (0.00s)
--- PASS: TestSecuritySchemes_GetBaseIdentityProvider/jwt (0.00s)
--- PASS: TestSecuritySchemes_GetBaseIdentityProvider/oauth (0.00s)
=== RUN TestToken_Import
--- PASS: TestToken_Import (0.00s)
=== RUN TestAuthSources_Import
=== RUN TestAuthSources_Import/header
=== RUN TestAuthSources_Import/query
=== RUN TestAuthSources_Import/cookie
--- PASS: TestAuthSources_Import (0.00s)
--- PASS: TestAuthSources_Import/header (0.00s)
--- PASS: TestAuthSources_Import/query (0.00s)
--- PASS: TestAuthSources_Import/cookie (0.00s)
=== RUN TestJWT_Import
--- PASS: TestJWT_Import (0.00s)
=== RUN TestBasic_Import
--- PASS: TestBasic_Import (0.00s)
=== RUN TestOAuth_Import
--- PASS: TestOAuth_Import (0.00s)
=== RUN TestRetainOldServerURL
=== RUN TestRetainOldServerURL/empty_old_servers
=== RUN TestRetainOldServerURL/existing_old_servers
=== RUN TestRetainOldServerURL/duplicate_in_servers
=== RUN TestRetainOldServerURL/empty_new_servers
=== RUN TestRetainOldServerURL/empty_old_servers#01
--- PASS: TestRetainOldServerURL (0.00s)
--- PASS: TestRetainOldServerURL/empty_old_servers (0.00s)
--- PASS: TestRetainOldServerURL/existing_old_servers (0.00s)
--- PASS: TestRetainOldServerURL/duplicate_in_servers (0.00s)
--- PASS: TestRetainOldServerURL/empty_new_servers (0.00s)
--- PASS: TestRetainOldServerURL/empty_old_servers#01 (0.00s)
=== RUN TestMiddleware
--- PASS: TestMiddleware (0.00s)
=== RUN TestGlobal
--- PASS: TestGlobal (0.00s)
=== RUN TestCORS
--- PASS: TestCORS (0.00s)
=== RUN TestCache
--- PASS: TestCache (0.00s)
=== RUN TestExtendedPaths
=== RUN TestExtendedPaths/empty
=== RUN TestExtendedPaths/filled
--- PASS: TestExtendedPaths (0.01s)
--- PASS: TestExtendedPaths/empty (0.00s)
--- PASS: TestExtendedPaths/filled (0.01s)
=== RUN TestMockResponse
--- PASS: TestMockResponse (0.00s)
=== RUN TestOAS
=== PAUSE TestOAS
=== RUN TestOAS_AddServers
=== PAUSE TestOAS_AddServers
=== RUN TestOAS_UpdateServers
=== PAUSE TestOAS_UpdateServers
=== RUN TestOAS_GetSecuritySchemes
--- PASS: TestOAS_GetSecuritySchemes (0.01s)
=== RUN Test_toStructIfMap
--- PASS: Test_toStructIfMap (0.00s)
=== RUN TestShouldOmit
--- PASS: TestShouldOmit (0.00s)
=== RUN TestOAS_PathsAndOperations
=== PAUSE TestOAS_PathsAndOperations
=== RUN TestOAS_PathsAndOperationsRegex
=== PAUSE TestOAS_PathsAndOperationsRegex
=== RUN TestOAS_RegexOperationIDs
=== PAUSE TestOAS_RegexOperationIDs
=== RUN TestOAS_RegexPaths
=== PAUSE TestOAS_RegexPaths
=== RUN TestValidateRequest
=== RUN TestValidateRequest/ref
=== RUN TestValidateRequest/value
--- PASS: TestValidateRequest (0.00s)
--- PASS: TestValidateRequest/ref (0.00s)
--- PASS: TestValidateRequest/value (0.00s)
=== RUN TestXTykAPIGateway
=== RUN TestXTykAPIGateway/empty
=== RUN TestXTykAPIGateway/filled_OAS
=== RUN TestXTykAPIGateway/filled_old
--- PASS: TestXTykAPIGateway (0.00s)
--- PASS: TestXTykAPIGateway/empty (0.00s)
--- SKIP: TestXTykAPIGateway/filled_OAS (0.00s)
--- SKIP: TestXTykAPIGateway/filled_old (0.00s)
=== RUN TestInfo
--- PASS: TestInfo (0.00s)
=== RUN TestState
--- PASS: TestState (0.00s)
=== RUN TestVersioning
--- PASS: TestVersioning (0.00s)
=== RUN TestOAS_Security
--- PASS: TestOAS_Security (0.00s)
=== RUN TestOAS_ApiKeyScheme
=== RUN TestOAS_ApiKeyScheme/should_not_set_header_name_in_tyk_extension
=== RUN TestOAS_ApiKeyScheme/should_not_set_query_name_in_tyk_extension
=== RUN TestOAS_ApiKeyScheme/should_not_set_cookie_name_in_tyk_extension
=== RUN TestOAS_ApiKeyScheme/already_filled_scheme_in=header_value_should_be_respected
=== RUN TestOAS_ApiKeyScheme/already_filled_scheme_in=query_value_should_be_respected
=== RUN TestOAS_ApiKeyScheme/already_filled_scheme_in=cookie_value_should_be_respected
--- PASS: TestOAS_ApiKeyScheme (0.00s)
--- PASS: TestOAS_ApiKeyScheme/should_not_set_header_name_in_tyk_extension (0.00s)
--- PASS: TestOAS_ApiKeyScheme/should_not_set_query_name_in_tyk_extension (0.00s)
--- PASS: TestOAS_ApiKeyScheme/should_not_set_cookie_name_in_tyk_extension (0.00s)
--- PASS: TestOAS_ApiKeyScheme/already_filled_scheme_in=header_value_should_be_respected (0.00s)
--- PASS: TestOAS_ApiKeyScheme/already_filled_scheme_in=query_value_should_be_respected (0.00s)
--- PASS: TestOAS_ApiKeyScheme/already_filled_scheme_in=cookie_value_should_be_respected (0.00s)
=== RUN TestOAS_Token
--- PASS: TestOAS_Token (0.00s)
=== RUN TestOAS_Token_MultipleSecuritySchemes
--- PASS: TestOAS_Token_MultipleSecuritySchemes (0.00s)
=== RUN TestOAS_AppendSecurity
=== RUN TestOAS_AppendSecurity/append_new
=== RUN TestOAS_AppendSecurity/append_same
--- PASS: TestOAS_AppendSecurity (0.00s)
--- PASS: TestOAS_AppendSecurity/append_new (0.00s)
--- PASS: TestOAS_AppendSecurity/append_same (0.00s)
=== RUN TestOAS_JWT
--- PASS: TestOAS_JWT (0.00s)
=== RUN TestOAS_Basic
--- PASS: TestOAS_Basic (0.00s)
=== RUN TestOAS_OAuth
--- PASS: TestOAS_OAuth (0.00s)
=== RUN TestOAS_OIDC
--- PASS: TestOAS_OIDC (0.00s)
=== RUN TestOAS_CustomPlugin
--- PASS: TestOAS_CustomPlugin (0.00s)
=== RUN TestOAS_GoPlugin
--- PASS: TestOAS_GoPlugin (0.00s)
=== RUN TestOAS_TykAuthentication_NoOASSecurity
--- PASS: TestOAS_TykAuthentication_NoOASSecurity (0.00s)
=== RUN TestServer
=== PAUSE TestServer
=== RUN TestListenPath
=== PAUSE TestListenPath
=== RUN TestClientCertificates
=== PAUSE TestClientCertificates
=== RUN TestPinnedPublicKeys
=== PAUSE TestPinnedPublicKeys
=== RUN TestTagsImport
=== PAUSE TestTagsImport
=== RUN TestCustomDomain
=== RUN TestCustomDomain/extractTo_api_definition
=== RUN TestCustomDomain/extractTo_api_definition/enabled=false,_name=nil
=== RUN TestCustomDomain/extractTo_api_definition/enabled=false,_name=(valid-domain)
=== RUN TestCustomDomain/extractTo_api_definition/enabled=true,_name=nil
=== RUN TestCustomDomain/extractTo_api_definition/enabled=true,_name=(valid-domain)
=== RUN TestCustomDomain/fillFrom_api_definition
=== RUN TestCustomDomain/fillFrom_api_definition/disabled=false,_name=nil
=== RUN TestCustomDomain/fillFrom_api_definition/disabled=false,_name=(valid-domain)
=== RUN TestCustomDomain/fillFrom_api_definition/disabled=true,_name=nil
=== RUN TestCustomDomain/fillFrom_api_definition/disabled=true,_name=(valid-domain)
--- PASS: TestCustomDomain (0.00s)
--- PASS: TestCustomDomain/extractTo_api_definition (0.00s)
--- PASS: TestCustomDomain/extractTo_api_definition/enabled=false,_name=nil (0.00s)
--- PASS: TestCustomDomain/extractTo_api_definition/enabled=false,_name=(valid-domain) (0.00s)
--- PASS: TestCustomDomain/extractTo_api_definition/enabled=true,_name=nil (0.00s)
--- PASS: TestCustomDomain/extractTo_api_definition/enabled=true,_name=(valid-domain) (0.00s)
--- PASS: TestCustomDomain/fillFrom_api_definition (0.00s)
--- PASS: TestCustomDomain/fillFrom_api_definition/disabled=false,_name=nil (0.00s)
--- PASS: TestCustomDomain/fillFrom_api_definition/disabled=false,_name=(valid-domain) (0.00s)
--- PASS: TestCustomDomain/fillFrom_api_definition/disabled=true,_name=nil (0.00s)
--- PASS: TestCustomDomain/fillFrom_api_definition/disabled=true,_name=(valid-domain) (0.00s)
=== RUN TestTagsExportServer
=== PAUSE TestTagsExportServer
=== RUN TestUpstream
--- PASS: TestUpstream (0.00s)
=== RUN TestServiceDiscovery
--- PASS: TestServiceDiscovery (0.00s)
=== RUN TestTest
--- PASS: TestTest (0.00s)
=== RUN TestValidateOASObject
=== PAUSE TestValidateOASObject
=== RUN Test_loadOASSchema
=== PAUSE Test_loadOASSchema
=== RUN Test_findDefaultVersion
=== PAUSE Test_findDefaultVersion
=== RUN Test_setDefaultVersion
--- PASS: Test_setDefaultVersion (0.19s)
=== RUN TestGetOASSchema
=== RUN TestGetOASSchema/return_default_version_when_req_version_is_empty
=== RUN TestGetOASSchema/return_minor_version_schema_when_req_version_is_including_patch_version
=== RUN TestGetOASSchema/return_minor_version_0_when_only_major_version_is_requested
=== RUN TestGetOASSchema/return_error_when_non_existing_oas_schema_is_requested
=== RUN TestGetOASSchema/return_error_when_requested_version_is_not_of_semver
--- PASS: TestGetOASSchema (0.20s)
--- PASS: TestGetOASSchema/return_default_version_when_req_version_is_empty (0.00s)
--- PASS: TestGetOASSchema/return_minor_version_schema_when_req_version_is_including_patch_version (0.00s)
--- PASS: TestGetOASSchema/return_minor_version_0_when_only_major_version_is_requested (0.00s)
--- PASS: TestGetOASSchema/return_error_when_non_existing_oas_schema_is_requested (0.00s)
--- PASS: TestGetOASSchema/return_error_when_requested_version_is_not_of_semver (0.00s)
=== CONT TestOAS_UpdateServers
=== RUN TestOAS_UpdateServers/empty_servers
=== CONT TestTagsImport
=== RUN TestTagsImport/keep_segment_tags_values_if_disabled
=== PAUSE TestTagsImport/keep_segment_tags_values_if_disabled
=== RUN TestTagsImport/keep_segment_tags_values_if_enabled
=== RUN TestOAS_UpdateServers/non-empty_servers_replace_with_new
=== PAUSE TestTagsImport/keep_segment_tags_values_if_enabled
=== CONT Test_findDefaultVersion
=== RUN Test_findDefaultVersion/single_version
=== RUN Test_findDefaultVersion/multiple_versions
=== RUN TestOAS_UpdateServers/non-empty_servers_not_replace
--- PASS: TestOAS_UpdateServers (0.00s)
--- PASS: TestOAS_UpdateServers/empty_servers (0.00s)
--- PASS: TestOAS_UpdateServers/non-empty_servers_replace_with_new (0.00s)
--- PASS: TestOAS_UpdateServers/non-empty_servers_not_replace (0.00s)
=== CONT TestValidateOASObject
--- PASS: Test_findDefaultVersion (0.00s)
--- PASS: Test_findDefaultVersion/single_version (0.00s)
--- PASS: Test_findDefaultVersion/multiple_versions (0.00s)
=== CONT TestTagsExportServer
=== RUN TestTagsExportServer/export_segment_tags_if_enabled
=== PAUSE TestTagsExportServer/export_segment_tags_if_enabled
=== RUN TestTagsExportServer/export_segment_tags_if_disabled
=== PAUSE TestTagsExportServer/export_segment_tags_if_disabled
=== RUN TestTagsExportServer/empty_segment_tags
=== PAUSE TestTagsExportServer/empty_segment_tags
=== CONT Test_loadOASSchema
=== RUN Test_loadOASSchema/load_OAS
=== PAUSE Test_loadOASSchema/load_OAS
=== CONT TestPinnedPublicKeys
=== RUN TestValidateOASObject/valid_OAS_object
--- PASS: TestPinnedPublicKeys (0.00s)
=== PAUSE TestValidateOASObject/valid_OAS_object
=== CONT TestClientCertificates
--- PASS: TestClientCertificates (0.00s)
=== RUN TestValidateOASObject/invalid_OAS_object
=== PAUSE TestValidateOASObject/invalid_OAS_object
=== CONT TestListenPath
=== RUN TestValidateOASObject/wrong_typed_OAS_object
=== CONT TestOAS_PathsAndOperationsRegex
--- PASS: TestListenPath (0.00s)
=== PAUSE TestValidateOASObject/wrong_typed_OAS_object
=== CONT TestOAS_RegexPaths
=== RUN TestValidateOASObject/should_error_when_requested_oas_schema_not_found
=== CONT TestServer
--- PASS: TestOAS_PathsAndOperationsRegex (0.00s)
=== CONT TestOAS_RegexOperationIDs
--- PASS: TestOAS_RegexOperationIDs (0.00s)
=== CONT TestOAS_AddServers
=== RUN TestOAS_AddServers/empty_servers
=== RUN TestOAS_AddServers/non-empty_servers
--- PASS: TestOAS_RegexPaths (0.00s)
=== RUN TestOAS_AddServers/non-empty_servers_having_same_URL_that_of_apiURL
--- PASS: TestServer (0.00s)
=== RUN TestOAS_AddServers/non-empty_servers_having_same_URL_that_of_apiURL#01
--- PASS: TestOAS_AddServers (0.00s)
--- PASS: TestOAS_AddServers/empty_servers (0.00s)
--- PASS: TestOAS_AddServers/non-empty_servers (0.00s)
--- PASS: TestOAS_AddServers/non-empty_servers_having_same_URL_that_of_apiURL (0.00s)
--- PASS: TestOAS_AddServers/non-empty_servers_having_same_URL_that_of_apiURL#01 (0.00s)
=== CONT TestOAS_PathsAndOperations
--- PASS: TestOAS_PathsAndOperations (0.00s)
=== PAUSE TestValidateOASObject/should_error_when_requested_oas_schema_not_found
=== CONT TestOAS
=== RUN TestOAS/empty_paths
=== CONT TestOAS_BuildDefaultTykExtension
=== RUN TestOAS_BuildDefaultTykExtension/build_tyk_extension_with_no_supplied_params
=== PAUSE TestOAS/empty_paths
=== RUN TestOAS/nil_paths
=== PAUSE TestOAS/nil_paths
=== RUN TestOAS/auth_configs
=== RUN TestOAS_BuildDefaultTykExtension/build_tyk_extension_with_supplied_params
=== PAUSE TestOAS/auth_configs
=== CONT TestTagsImport/keep_segment_tags_values_if_enabled
=== CONT TestTagsImport/keep_segment_tags_values_if_disabled
=== RUN TestOAS_BuildDefaultTykExtension/do_not_override_existing_tyk_extension_by_default
--- PASS: TestTagsImport (0.00s)
--- PASS: TestTagsImport/keep_segment_tags_values_if_enabled (0.00s)
--- PASS: TestTagsImport/keep_segment_tags_values_if_disabled (0.00s)
=== CONT TestTagsExportServer/export_segment_tags_if_disabled
=== RUN TestOAS_BuildDefaultTykExtension/override_existing_tyk_extension_with_supplied_params
=== CONT TestTagsExportServer/empty_segment_tags
=== CONT TestTagsExportServer/export_segment_tags_if_enabled
=== CONT Test_loadOASSchema/load_OAS
=== RUN TestOAS_BuildDefaultTykExtension/error_when_supplied_invalid_upstreamURL_param
=== RUN TestOAS_BuildDefaultTykExtension/error_when_no_supplied_params_and_invalid_URL_in_servers
=== RUN TestOAS_BuildDefaultTykExtension/error_when_no_supplied_params_and_no_servers
=== RUN TestOAS_BuildDefaultTykExtension/middlewares
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/allowList
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/allowList/enable_allowList_for_all_paths_when_no_configured_operationID_in_OAS
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/allowList/enable_allowList_for_all_paths_when_operationID_is_configured_in_OAS
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/allowList/disable_allowList_for_all_paths_when_no_configured_operationID_in_OAS
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/allowList/disable_allowList_for_all_paths_when_operationID_is_configured_in_OAS
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/allowList/override_allowList_(disable)_configured_in_tyk_extension_-_do_not_toggle_block_list_if_any
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/allowList/override_allowList_(enable)_configured_in_tyk_extension_-_toggle_enabled_block_list_if_any
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/allowList/do_not_configure_allowList_when_parameter_is_not_provided_(nil)
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/do_not_configure_validateRequest_for_paths_where_request_body_is_not_specified_for_application/json
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/enable_validateRequest_for_all_paths_with_application/json_req_body_when_no_configured_operationID_in_OAS
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/enable_validateRequest_for_all_paths_with_application/json_req_body_when_operationID_is_configured_in_OAS
--- PASS: TestTagsExportServer (0.00s)
--- PASS: TestTagsExportServer/export_segment_tags_if_disabled (0.00s)
--- PASS: TestTagsExportServer/empty_segment_tags (0.00s)
--- PASS: TestTagsExportServer/export_segment_tags_if_enabled (0.00s)
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/disable_validateRequest_for_all_paths_with_application/json_req_body_when_no_configured_operationID_in_OAS
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/disable_validateRequest_for_all_paths_with_application/json_req_body_when_operationID_is_configured_in_OAS
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/override_validateRequest_configured_in_tyk_extension
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/do_not_configure_validateRequest_when_parameter_is_not_provided_(nil)
=== RUN TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/do_not_configure_validateRequest_when_no_paths_have_application/json_req_body
=== RUN TestOAS_BuildDefaultTykExtension/do_not_configure_upstream_URL_with_servers_when_upstream_URL_params_is_not_provided_and_upstream_URL_in_x-tyk_in_not_empty
=== RUN TestOAS_BuildDefaultTykExtension/do_not_configure_state_active,_internal_or_strip_listen_path_when_not_importing
--- PASS: TestOAS_BuildDefaultTykExtension (0.02s)
--- PASS: TestOAS_BuildDefaultTykExtension/build_tyk_extension_with_no_supplied_params (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/build_tyk_extension_with_supplied_params (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/do_not_override_existing_tyk_extension_by_default (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/override_existing_tyk_extension_with_supplied_params (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/error_when_supplied_invalid_upstreamURL_param (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/error_when_no_supplied_params_and_invalid_URL_in_servers (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/error_when_no_supplied_params_and_no_servers (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares (0.01s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/allowList (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/allowList/enable_allowList_for_all_paths_when_no_configured_operationID_in_OAS (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/allowList/enable_allowList_for_all_paths_when_operationID_is_configured_in_OAS (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/allowList/disable_allowList_for_all_paths_when_no_configured_operationID_in_OAS (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/allowList/disable_allowList_for_all_paths_when_operationID_is_configured_in_OAS (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/allowList/override_allowList_(disable)_configured_in_tyk_extension_-_do_not_toggle_block_list_if_any (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/allowList/override_allowList_(enable)_configured_in_tyk_extension_-_toggle_enabled_block_list_if_any (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/allowList/do_not_configure_allowList_when_parameter_is_not_provided_(nil) (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/do_not_configure_validateRequest_for_paths_where_request_body_is_not_specified_for_application/json (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/enable_validateRequest_for_all_paths_with_application/json_req_body_when_no_configured_operationID_in_OAS (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/enable_validateRequest_for_all_paths_with_application/json_req_body_when_operationID_is_configured_in_OAS (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/disable_validateRequest_for_all_paths_with_application/json_req_body_when_no_configured_operationID_in_OAS (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/disable_validateRequest_for_all_paths_with_application/json_req_body_when_operationID_is_configured_in_OAS (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/override_validateRequest_configured_in_tyk_extension (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/do_not_configure_validateRequest_when_parameter_is_not_provided_(nil) (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/middlewares/validateRequest/do_not_configure_validateRequest_when_no_paths_have_application/json_req_body (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/do_not_configure_upstream_URL_with_servers_when_upstream_URL_params_is_not_provided_and_upstream_URL_in_x-tyk_in_not_empty (0.00s)
--- PASS: TestOAS_BuildDefaultTykExtension/do_not_configure_state_active,_internal_or_strip_listen_path_when_not_importing (0.00s)
=== CONT TestValidateOASObject/wrong_typed_OAS_object
--- PASS: Test_loadOASSchema (0.00s)
--- PASS: Test_loadOASSchema/load_OAS (0.19s)
=== CONT TestValidateOASObject/should_error_when_requested_oas_schema_not_found
=== CONT TestValidateOASObject/invalid_OAS_object
=== CONT TestValidateOASObject/valid_OAS_object
=== CONT TestOAS/empty_paths
=== CONT TestOAS/auth_configs
=== CONT TestOAS/nil_paths
--- PASS: TestOAS (0.00s)
--- PASS: TestOAS/empty_paths (0.00s)
--- PASS: TestOAS/auth_configs (0.00s)
--- PASS: TestOAS/nil_paths (0.00s)
--- PASS: TestValidateOASObject (0.01s)
--- PASS: TestValidateOASObject/should_error_when_requested_oas_schema_not_found (0.00s)
--- PASS: TestValidateOASObject/invalid_OAS_object (0.05s)
--- PASS: TestValidateOASObject/wrong_typed_OAS_object (0.23s)
--- PASS: TestValidateOASObject/valid_OAS_object (0.04s)
PASS
coverage: 90.3% of statements
ok github.com/TykTechnologies/tyk/apidef/oas 0.998s coverage: 90.3% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=schema.cov github.com/TykTechnologies/tyk/apidef/oas/schema
? github.com/TykTechnologies/tyk/apidef/oas/schema [no test files]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=certs.cov github.com/TykTechnologies/tyk/certs
=== RUN TestAddCertificate
util.go:32: Skipping flaky test
--- SKIP: TestAddCertificate (0.00s)
=== RUN TestCertificateStorage
=== RUN TestCertificateStorage/File_certificates
time="2022-06-14T15:41:39Z" level=warning msg="Can't retrieve certificate:wrongopen wrong: no such file or directory" prefix=cert_storage
=== RUN TestCertificateStorage/Remote_storage_certificates
=== RUN TestCertificateStorage/Private_certificates
=== RUN TestCertificateStorage/Public_keys
--- PASS: TestCertificateStorage (4.36s)
--- PASS: TestCertificateStorage/File_certificates (0.00s)
--- PASS: TestCertificateStorage/Remote_storage_certificates (0.00s)
--- PASS: TestCertificateStorage/Private_certificates (0.00s)
--- PASS: TestCertificateStorage/Public_keys (0.00s)
=== RUN TestStorageIndex
--- PASS: TestStorageIndex (1.30s)
PASS
coverage: 46.5% of statements
ok github.com/TykTechnologies/tyk/certs 5.718s coverage: 46.5% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=checkup.cov github.com/TykTechnologies/tyk/checkup
? github.com/TykTechnologies/tyk/checkup [no test files]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=cli.cov github.com/TykTechnologies/tyk/cli
? github.com/TykTechnologies/tyk/cli [no test files]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=bundler.cov github.com/TykTechnologies/tyk/cli/bundler
=== RUN TestCommands
time="Jun 14 15:41:43" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Jun 14 15:41:43" level=warning msg="Using default bundle path 'bundle.zip'" prefix=tyk
time="Jun 14 15:41:43" level=warning msg="The bundle will be unsigned" prefix=tyk
time="Jun 14 15:41:43" level=info msg="Wrote 'bundle.zip' (377 bytes)" prefix=tyk
--- PASS: TestCommands (0.01s)
=== RUN TestBuild
=== RUN TestBuild/Bundle_errors
time="Jun 14 15:41:43" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Jun 14 15:41:43" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Jun 14 15:41:43" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Jun 14 15:41:43" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Jun 14 15:41:43" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
=== RUN TestBuild/Simple_bundle_build
time="Jun 14 15:41:43" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Jun 14 15:41:43" level=warning msg="Using default bundle path 'bundle.zip'" prefix=tyk
time="Jun 14 15:41:43" level=warning msg="The bundle will be unsigned" prefix=tyk
time="Jun 14 15:41:43" level=info msg="Wrote 'bundle.zip' (506 bytes)" prefix=tyk
--- PASS: TestBuild (0.02s)
--- PASS: TestBuild/Bundle_errors (0.00s)
--- PASS: TestBuild/Simple_bundle_build (0.02s)
PASS
coverage: 70.7% of statements
ok github.com/TykTechnologies/tyk/cli/bundler 0.086s coverage: 70.7% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=importer.cov github.com/TykTechnologies/tyk/cli/importer
? github.com/TykTechnologies/tyk/cli/importer [no test files]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=linter.cov github.com/TykTechnologies/tyk/cli/linter
=== RUN TestLint
=== RUN TestLint/InvalidJSON
=== RUN TestLint/WrongType
=== RUN TestLint/FieldTypo
=== RUN TestLint/Empty
=== RUN TestLint/Default
=== RUN TestLint/OldMonitor
=== RUN TestLint/NullObject
=== RUN TestLint/MissingPath
=== RUN TestLint/ExtraPort
=== RUN TestLint/BadHost
=== RUN TestLint/BadLogLevel
=== RUN TestLint/BadStorageType
=== RUN TestLint/BadPolicySource
=== RUN TestLint/MalformedDnsCacheEntry
=== RUN TestLint/BadDnsCacheTTL
=== RUN TestLint/ExtraDnsCacheCheckInterval
=== RUN TestLint/InvalidDnsCacheMultipleIPsHandleStrategy
--- PASS: TestLint (0.29s)
--- PASS: TestLint/InvalidJSON (0.00s)
--- PASS: TestLint/WrongType (0.00s)
--- PASS: TestLint/FieldTypo (0.02s)
--- PASS: TestLint/Empty (0.02s)
--- PASS: TestLint/Default (0.03s)
--- PASS: TestLint/OldMonitor (0.02s)
--- PASS: TestLint/NullObject (0.02s)
--- PASS: TestLint/MissingPath (0.02s)
--- PASS: TestLint/ExtraPort (0.02s)
--- PASS: TestLint/BadHost (0.02s)
--- PASS: TestLint/BadLogLevel (0.02s)
--- PASS: TestLint/BadStorageType (0.02s)
--- PASS: TestLint/BadPolicySource (0.02s)
--- PASS: TestLint/MalformedDnsCacheEntry (0.02s)
--- PASS: TestLint/BadDnsCacheTTL (0.02s)
--- PASS: TestLint/ExtraDnsCacheCheckInterval (0.02s)
--- PASS: TestLint/InvalidDnsCacheMultipleIPsHandleStrategy (0.02s)
PASS
coverage: 89.8% of statements
ok github.com/TykTechnologies/tyk/cli/linter 0.359s coverage: 89.8% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=config.cov github.com/TykTechnologies/tyk/config
=== RUN TestDefaultValueAndWriteDefaultConf
=== RUN TestDefaultValueAndWriteDefaultConf/ListenPort
=== RUN TestDefaultValueAndWriteDefaultConf/DnsCacheEnabled
=== RUN TestDefaultValueAndWriteDefaultConf/DnsCacheTTL
=== RUN TestDefaultValueAndWriteDefaultConf/CheckInterval
=== RUN TestDefaultValueAndWriteDefaultConf/CheckMultipleIPsHandleStrategy
--- PASS: TestDefaultValueAndWriteDefaultConf (0.04s)
--- PASS: TestDefaultValueAndWriteDefaultConf/ListenPort (0.01s)
--- PASS: TestDefaultValueAndWriteDefaultConf/DnsCacheEnabled (0.01s)
--- PASS: TestDefaultValueAndWriteDefaultConf/DnsCacheTTL (0.01s)
--- PASS: TestDefaultValueAndWriteDefaultConf/CheckInterval (0.01s)
--- PASS: TestDefaultValueAndWriteDefaultConf/CheckMultipleIPsHandleStrategy (0.01s)
=== RUN TestConfigFiles
time="Jun 14 15:41:47" level=warning msg="No config file found, writing default to /tmp/tyk905994468/tyk1.conf"
time="Jun 14 15:41:47" level=info msg="Loading default configuration..."
--- PASS: TestConfigFiles (0.04s)
=== RUN TestConfig_GetEventTriggers
=== RUN TestConfig_GetEventTriggers/Deprecated_configuration
=== RUN TestConfig_GetEventTriggers/Current_configuration
=== RUN TestConfig_GetEventTriggers/Both_configured
time="Jun 14 15:41:47" level=info msg="Both event_trigers_defunct and event_triggers_defunct are configured in the config, event_triggers_defunct will be used."
--- PASS: TestConfig_GetEventTriggers (0.01s)
--- PASS: TestConfig_GetEventTriggers/Deprecated_configuration (0.00s)
--- PASS: TestConfig_GetEventTriggers/Current_configuration (0.00s)
--- PASS: TestConfig_GetEventTriggers/Both_configured (0.00s)
=== RUN TestLoad_tracing
=== RUN TestLoad_tracing/Read_and_write_config_with_tracing
=== RUN TestLoad_tracing/Read_and_write_config_with_tracing/testdata/jaeger.json
=== RUN TestLoad_tracing/Read_and_write_config_with_tracing/testdata/zipkin.json
=== RUN TestLoad_tracing/Env_only
=== RUN TestLoad_tracing/Env_only/testdata/env.jaeger.json
=== RUN TestLoad_tracing/Env_only/testdata/env.zipkin.json
--- PASS: TestLoad_tracing (0.03s)
--- PASS: TestLoad_tracing/Read_and_write_config_with_tracing (0.02s)
--- PASS: TestLoad_tracing/Read_and_write_config_with_tracing/testdata/jaeger.json (0.01s)
--- PASS: TestLoad_tracing/Read_and_write_config_with_tracing/testdata/zipkin.json (0.00s)
--- PASS: TestLoad_tracing/Env_only (0.01s)
--- PASS: TestLoad_tracing/Env_only/testdata/env.jaeger.json (0.01s)
--- PASS: TestLoad_tracing/Env_only/testdata/env.zipkin.json (0.00s)
=== RUN TestCustomEnvDecoders
--- PASS: TestCustomEnvDecoders (0.00s)
=== RUN TestLoadZipkin
=== RUN TestLoadZipkin/loads_env_vars
--- PASS: TestLoadZipkin (0.00s)
--- PASS: TestLoadZipkin/loads_env_vars (0.00s)
=== RUN TestLoadJaeger
=== RUN TestLoadJaeger/Loads_env_vars
--- PASS: TestLoadJaeger (0.01s)
--- PASS: TestLoadJaeger/Loads_env_vars (0.01s)
PASS
coverage: 69.8% of statements
ok github.com/TykTechnologies/tyk/config 0.208s coverage: 69.8% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=coprocess.cov github.com/TykTechnologies/tyk/coprocess
? github.com/TykTechnologies/tyk/coprocess [no test files]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=grpc.cov github.com/TykTechnologies/tyk/coprocess/grpc
=== RUN TestGRPCDispatch
time="Jun 14 15:41:53" level=info msg="starting test"
time="Jun 14 15:41:53" level=info msg="gRPC dispatcher was initialized" prefix=coprocess
=== RUN TestGRPCDispatch/Pre_Hook_with_SetHeaders
=== RUN TestGRPCDispatch/Pre_Hook_with_UTF-8/non-UTF-8_request_data
=== RUN TestGRPCDispatch/Post_Hook_with_metadata
=== RUN TestGRPCDispatch/Response_hook
=== RUN TestGRPCDispatch/Post_Hook_with_allowed_message_length
util.go:32: Skipping flaky test
=== RUN TestGRPCDispatch/Post_Hook_with_with_unallowed_message_length
util.go:32: Skipping flaky test
redis: 2022/06/14 15:41:54 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48030->[::1]:6379: use of closed network connection
--- PASS: TestGRPCDispatch (0.46s)
--- PASS: TestGRPCDispatch/Pre_Hook_with_SetHeaders (0.01s)
--- PASS: TestGRPCDispatch/Pre_Hook_with_UTF-8/non-UTF-8_request_data (0.01s)
--- PASS: TestGRPCDispatch/Post_Hook_with_metadata (0.01s)
--- PASS: TestGRPCDispatch/Response_hook (0.01s)
--- SKIP: TestGRPCDispatch/Post_Hook_with_allowed_message_length (0.00s)
--- SKIP: TestGRPCDispatch/Post_Hook_with_with_unallowed_message_length (0.00s)
=== RUN TestGRPCIgnore
redis: 2022/06/14 15:41:54 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48040->[::1]:6379: use of closed network connection
--- PASS: TestGRPCIgnore (0.36s)
PASS
coverage: [no statements]
ok github.com/TykTechnologies/tyk/coprocess/grpc 1.194s coverage: [no statements]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=python.cov github.com/TykTechnologies/tyk/coprocess/python
=== RUN TestValueExtractorHeaderSource
util.go:32: Skipping flaky test
--- SKIP: TestValueExtractorHeaderSource (0.00s)
=== RUN TestPythonBundles
time="Jun 14 15:41:59" level=info msg="starting test"
=== RUN TestPythonBundles/Single-file_bundle_with_authentication_hook
=== RUN TestPythonBundles/Auth_with_policy
=== RUN TestPythonBundles/Single-file_bundle_with_post_hook
=== RUN TestPythonBundles/Single-file_bundle_with_response_hook
=== RUN TestPythonBundles/Single-file_bundle_with_pre_hook_and_UTF-8/non-UTF-8_request_data
=== RUN TestPythonBundles/python_post_hook_with_url_rewrite_and_method_transform
redis: 2022/06/14 15:42:07 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48050->[::1]:6379: use of closed network connection
--- PASS: TestPythonBundles (8.55s)
--- PASS: TestPythonBundles/Single-file_bundle_with_authentication_hook (2.80s)
--- PASS: TestPythonBundles/Auth_with_policy (1.12s)
--- PASS: TestPythonBundles/Single-file_bundle_with_post_hook (1.13s)
--- PASS: TestPythonBundles/Single-file_bundle_with_response_hook (1.12s)
--- PASS: TestPythonBundles/Single-file_bundle_with_pre_hook_and_UTF-8/non-UTF-8_request_data (1.13s)
--- PASS: TestPythonBundles/python_post_hook_with_url_rewrite_and_method_transform (1.13s)
PASS
coverage: [no statements]
ok github.com/TykTechnologies/tyk/coprocess/python 8.916s coverage: [no statements]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=ctx.cov github.com/TykTechnologies/tyk/ctx
? github.com/TykTechnologies/tyk/ctx [no test files]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=dlpython.cov github.com/TykTechnologies/tyk/dlpython
Using Python 3.5 for tests
=== RUN TestFindPythonConfig
main_test.go:20: Library path is
main_test.go:25: Library path is /opt/hostedtoolcache/Python/3.5.10/x64/lib/libpython3.5m.so
--- PASS: TestFindPythonConfig (0.26s)
=== RUN TestInit
main_test.go:33: Library path is /opt/hostedtoolcache/Python/3.5.10/x64/lib/libpython3.5m.so
--- PASS: TestInit (0.18s)
PASS
coverage: 54.7% of statements
ok github.com/TykTechnologies/tyk/dlpython 0.457s coverage: 54.7% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=dnscache.cov github.com/TykTechnologies/tyk/dnscache
=== RUN TestWrapDialerDialContextFunc
=== RUN TestWrapDialerDialContextFunc/PickFirstStrategy(1_ip):_Should_parse_address,_call_storage.FetchItem,_cache_ip,_call_storage.Delete_on_DialContext_error
=== RUN TestWrapDialerDialContextFunc/PickFirstStrategy(>1_ip):_Should_parse_address,_call_storage.FetchItem,_cache_all_ips,_call_storage.Delete_on_DialContext_error
=== RUN TestWrapDialerDialContextFunc/NoCacheStrategy(1_ip):_Should_parse_address,_call_storage.FetchItem,_cache_ip,_call_storage.Delete_on_DialContext_error
=== RUN TestWrapDialerDialContextFunc/NoCacheStrategy(>1_ip):_Should_parse_address,_call_storage.FetchItem,_remove_ips_caching
=== RUN TestWrapDialerDialContextFunc/RandomStrategy(>1_ip):_Should_parse_address,_call_storage.FetchItem,_cache_all_ips,_connect_to_random_ip,_call_storage.Delete_on_DialContext_error
=== RUN TestWrapDialerDialContextFunc/Shouldn't_call_FetchItem_when_caching_is_disabled(storage_==_nil)
=== RUN TestWrapDialerDialContextFunc/Shouldn't_cache_ipv4_address
=== RUN TestWrapDialerDialContextFunc/Should_faifast_on_address_without_port(accept_only_address_with_port)
--- PASS: TestWrapDialerDialContextFunc (0.01s)
--- PASS: TestWrapDialerDialContextFunc/PickFirstStrategy(1_ip):_Should_parse_address,_call_storage.FetchItem,_cache_ip,_call_storage.Delete_on_DialContext_error (0.00s)
--- PASS: TestWrapDialerDialContextFunc/PickFirstStrategy(>1_ip):_Should_parse_address,_call_storage.FetchItem,_cache_all_ips,_call_storage.Delete_on_DialContext_error (0.00s)
--- PASS: TestWrapDialerDialContextFunc/NoCacheStrategy(1_ip):_Should_parse_address,_call_storage.FetchItem,_cache_ip,_call_storage.Delete_on_DialContext_error (0.00s)
--- PASS: TestWrapDialerDialContextFunc/NoCacheStrategy(>1_ip):_Should_parse_address,_call_storage.FetchItem,_remove_ips_caching (0.00s)
--- PASS: TestWrapDialerDialContextFunc/RandomStrategy(>1_ip):_Should_parse_address,_call_storage.FetchItem,_cache_all_ips,_connect_to_random_ip,_call_storage.Delete_on_DialContext_error (0.00s)
--- PASS: TestWrapDialerDialContextFunc/Shouldn't_call_FetchItem_when_caching_is_disabled(storage_==_nil) (0.00s)
--- PASS: TestWrapDialerDialContextFunc/Shouldn't_cache_ipv4_address (0.00s)
--- PASS: TestWrapDialerDialContextFunc/Should_faifast_on_address_without_port(accept_only_address_with_port) (0.00s)
=== RUN TestStorageFetchItem
=== RUN TestStorageFetchItem/Should_cache_first_dns_record_first_fetch
=== RUN TestStorageFetchItem/Should_cache_second_dns_record_first_fetch
=== RUN TestStorageFetchItem/Should_populate_from_cache_first_dns_record_second_fetch
=== RUN TestStorageFetchItem/Should_populate_from_cache_first_dns_record_third_fetch
=== RUN TestStorageFetchItem/Should_populate_from_cache_second_dns_record_second_fetch
=== RUN TestStorageFetchItem/Shouldn't_cache_dns_record_fetch_in_case_error
--- PASS: TestStorageFetchItem (0.01s)
--- PASS: TestStorageFetchItem/Should_cache_first_dns_record_first_fetch (0.00s)
--- PASS: TestStorageFetchItem/Should_cache_second_dns_record_first_fetch (0.00s)
--- PASS: TestStorageFetchItem/Should_populate_from_cache_first_dns_record_second_fetch (0.00s)
--- PASS: TestStorageFetchItem/Should_populate_from_cache_first_dns_record_third_fetch (0.00s)
--- PASS: TestStorageFetchItem/Should_populate_from_cache_second_dns_record_second_fetch (0.00s)
--- PASS: TestStorageFetchItem/Shouldn't_cache_dns_record_fetch_in_case_error (0.00s)
=== RUN TestStorageRecordExpiration
=== RUN TestStorageRecordExpiration/Shouldn't_remove_dns_record_when_ttl/expiration_<_1
=== RUN TestStorageRecordExpiration/Should_remove_single_dns_record_after_expiration
=== RUN TestStorageRecordExpiration/Should_leave_as_expired_dns_records_if_check_interval=-1
=== RUN TestStorageRecordExpiration/Should_remove_all(>1)_dns_records_after_expiration
=== RUN TestStorageRecordExpiration/Should_remove_only_expired_record_after_expiration
=== RUN TestStorageRecordExpiration/Should_remove_only_expired_records_after_expiration
--- PASS: TestStorageRecordExpiration (11.65s)
--- PASS: TestStorageRecordExpiration/Shouldn't_remove_dns_record_when_ttl/expiration_<_1 (1.51s)
--- PASS: TestStorageRecordExpiration/Should_remove_single_dns_record_after_expiration (2.01s)
--- PASS: TestStorageRecordExpiration/Should_leave_as_expired_dns_records_if_check_interval=-1 (1.51s)
--- PASS: TestStorageRecordExpiration/Should_remove_all(>1)_dns_records_after_expiration (2.01s)
--- PASS: TestStorageRecordExpiration/Should_remove_only_expired_record_after_expiration (2.10s)
--- PASS: TestStorageRecordExpiration/Should_remove_only_expired_records_after_expiration (2.50s)
PASS
coverage: 82.5% of statements
ok github.com/TykTechnologies/tyk/dnscache 11.724s coverage: 82.5% of statements
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=gateway.cov github.com/TykTechnologies/tyk/gateway
=== RUN TestGoAnalyticsPlugin
time="Jun 14 15:42:47" level=info msg="starting test"
time="Jun 14 15:42:47" level=info msg="Rich plugins are disabled" prefix=coprocess
=== RUN TestGoAnalyticsPlugin/just_enabled_without_other_parameters_set
redis: 2022/06/14 15:42:47 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48058->[::1]:6379: use of closed network connection
--- PASS: TestGoAnalyticsPlugin (0.21s)
--- PASS: TestGoAnalyticsPlugin/just_enabled_without_other_parameters_set (0.08s)
=== RUN TestAnalytics_Write
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_msgpack
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Log_errors
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Log_success
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_api_spec_config_enabled
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_only_key_flag_set
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_latency
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_cache
redis: 2022/06/14 15:42:48 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48066->[::1]:6379: use of closed network connection
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_protobuf
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Log_errors
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Log_success
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics_with_api_spec_config_enabled
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics_with_only_key_flag_set
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics_with_latency
=== RUN TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics_with_cache
redis: 2022/06/14 15:42:49 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48078->[::1]:6379: use of closed network connection
--- PASS: TestAnalytics_Write (1.50s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack (0.73s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Log_errors (0.05s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Log_success (0.03s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_api_spec_config_enabled (0.09s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_only_key_flag_set (0.09s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics (0.09s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_latency (0.09s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_cache (0.11s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf (0.76s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Log_errors (0.05s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Log_success (0.03s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics_with_api_spec_config_enabled (0.09s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics_with_only_key_flag_set (0.10s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics (0.09s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics_with_latency (0.09s)
--- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics_with_cache (0.11s)
=== RUN TestGeoIPLookup
redis: 2022/06/14 15:42:49 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48088->[::1]:6379: use of closed network connection
--- PASS: TestGeoIPLookup (0.14s)
=== RUN TestURLReplacer
redis: 2022/06/14 15:42:49 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48096->[::1]:6379: use of closed network connection
--- PASS: TestURLReplacer (0.12s)
=== RUN TestTagHeaders
--- PASS: TestTagHeaders (0.00s)
=== RUN TestURLRewrites
=== RUN TestURLRewrites/Extended_Paths_with_url_rewrites
redis: 2022/06/14 15:42:49 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48104->[::1]:6379: use of closed network connection
--- PASS: TestURLRewrites (0.22s)
--- PASS: TestURLRewrites/Extended_Paths_with_url_rewrites (0.06s)
=== RUN TestWhitelist
=== RUN TestWhitelist/Extended_Paths
=== RUN TestWhitelist/Simple_Paths
=== RUN TestWhitelist/Test_#1944
=== RUN TestWhitelist/Case_Sensitivity
=== RUN TestWhitelist/Listen_path_matches
=== RUN TestWhitelist/Disabled
redis: 2022/06/14 15:42:50 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48112->[::1]:6379: use of closed network connection
--- PASS: TestWhitelist (0.59s)
--- PASS: TestWhitelist/Extended_Paths (0.07s)
--- PASS: TestWhitelist/Simple_Paths (0.07s)
--- PASS: TestWhitelist/Test_#1944 (0.09s)
--- PASS: TestWhitelist/Case_Sensitivity (0.07s)
--- PASS: TestWhitelist/Listen_path_matches (0.09s)
--- PASS: TestWhitelist/Disabled (0.06s)
=== RUN TestGatewayTagsFilter
=== PAUSE TestGatewayTagsFilter
=== RUN TestBlacklist
=== RUN TestBlacklist/Extended_Paths
=== RUN TestBlacklist/Simple_Paths
=== RUN TestBlacklist/Case_Sensitivity
=== RUN TestBlacklist/Listen_path_matches
=== RUN TestBlacklist/Disabled
redis: 2022/06/14 15:42:50 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48122->[::1]:6379: use of closed network connection
--- PASS: TestBlacklist (0.48s)
--- PASS: TestBlacklist/Extended_Paths (0.07s)
--- PASS: TestBlacklist/Simple_Paths (0.06s)
--- PASS: TestBlacklist/Case_Sensitivity (0.07s)
--- PASS: TestBlacklist/Listen_path_matches (0.08s)
--- PASS: TestBlacklist/Disabled (0.06s)
=== RUN TestConflictingPaths
redis: 2022/06/14 15:42:50 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48132->[::1]:6379: use of closed network connection
--- PASS: TestConflictingPaths (0.19s)
=== RUN TestIgnored
=== RUN TestIgnored/Extended_Paths
=== RUN TestIgnored/Simple_Paths
=== RUN TestIgnored/With_URL_rewrite
=== RUN TestIgnored/Case_Sensitivity
=== RUN TestIgnored/Case_Sensitivity/ignore-case_globally
=== RUN TestIgnored/Case_Sensitivity/ignore-case_in_api_level
=== RUN TestIgnored/Disabled
redis: 2022/06/14 15:42:51 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48140->[::1]:6379: use of closed network connection
--- PASS: TestIgnored (0.68s)
--- PASS: TestIgnored/Extended_Paths (0.08s)
--- PASS: TestIgnored/Simple_Paths (0.07s)
--- PASS: TestIgnored/With_URL_rewrite (0.07s)
--- PASS: TestIgnored/Case_Sensitivity (0.28s)
--- PASS: TestIgnored/Case_Sensitivity/ignore-case_globally (0.07s)
--- PASS: TestIgnored/Case_Sensitivity/ignore-case_in_api_level (0.07s)
--- PASS: TestIgnored/Disabled (0.06s)
=== RUN TestOldMockResponse
util.go:32: Skipping Racy test
--- SKIP: TestOldMockResponse (0.00s)
=== RUN TestNewMockResponse
=== RUN TestNewMockResponse/protected
=== RUN TestNewMockResponse/keyless
redis: 2022/06/14 15:42:51 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48148->[::1]:6379: use of closed network connection
--- PASS: TestNewMockResponse (0.26s)
--- PASS: TestNewMockResponse/protected (0.00s)
--- PASS: TestNewMockResponse/keyless (0.06s)
=== RUN TestWhitelistMethodWithAdditionalMiddleware
=== RUN TestWhitelistMethodWithAdditionalMiddleware/Extended_Paths
redis: 2022/06/14 15:42:51 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48160->[::1]:6379: use of closed network connection
--- PASS: TestWhitelistMethodWithAdditionalMiddleware (0.21s)
--- PASS: TestWhitelistMethodWithAdditionalMiddleware/Extended_Paths (0.06s)
=== RUN TestSyncAPISpecsDashboardSuccess
redis: 2022/06/14 15:42:52 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48168->[::1]:6379: use of closed network connection
--- PASS: TestSyncAPISpecsDashboardSuccess (0.20s)
=== RUN TestRoundRobin
--- PASS: TestRoundRobin (0.00s)
=== RUN TestDefaultVersion
redis: 2022/06/14 15:42:52 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48176->[::1]:6379: use of closed network connection
--- PASS: TestDefaultVersion (0.23s)
=== RUN TestGetVersionFromRequest
=== RUN TestGetVersionFromRequest/Header_location
=== RUN TestGetVersionFromRequest/Header_location/strip_versioning_data
redis: 2022/06/14 15:42:52 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48184->[::1]:6379: use of closed network connection
=== RUN TestGetVersionFromRequest/URL_param_location
=== RUN TestGetVersionFromRequest/URL_param_location/strip_versioning_data
redis: 2022/06/14 15:42:52 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48194->[::1]:6379: use of closed network connection
=== RUN TestGetVersionFromRequest/URL_location
=== RUN TestGetVersionFromRequest/URL_location/strip_versioning_data
redis: 2022/06/14 15:42:53 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48204->[::1]:6379: use of closed network connection
--- PASS: TestGetVersionFromRequest (0.84s)
--- PASS: TestGetVersionFromRequest/Header_location (0.29s)
--- PASS: TestGetVersionFromRequest/Header_location/strip_versioning_data (0.06s)
--- PASS: TestGetVersionFromRequest/URL_param_location (0.26s)
--- PASS: TestGetVersionFromRequest/URL_param_location/strip_versioning_data (0.07s)
--- PASS: TestGetVersionFromRequest/URL_location (0.28s)
--- PASS: TestGetVersionFromRequest/URL_location/strip_versioning_data (0.07s)
=== RUN TestSyncAPISpecsDashboardJSONFailure
redis: 2022/06/14 15:42:53 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48212->[::1]:6379: use of closed network connection
--- PASS: TestSyncAPISpecsDashboardJSONFailure (0.22s)
=== RUN TestAPIDefinitionLoader_Template
=== RUN TestAPIDefinitionLoader_Template/loadFileTemplate
=== RUN TestAPIDefinitionLoader_Template/loadBlobTemplate
redis: 2022/06/14 15:42:53 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48220->[::1]:6379: use of closed network connection
--- PASS: TestAPIDefinitionLoader_Template (0.13s)
--- PASS: TestAPIDefinitionLoader_Template/loadFileTemplate (0.00s)
--- PASS: TestAPIDefinitionLoader_Template/loadBlobTemplate (0.00s)
=== RUN TestAPIExpiration
=== RUN TestAPIExpiration/versioning=false
=== RUN TestAPIExpiration/versioning=false/not_expired
=== RUN TestAPIExpiration/versioning=false/expired
=== RUN TestAPIExpiration/versioning=true
=== RUN TestAPIExpiration/versioning=true/not_expired
=== RUN TestAPIExpiration/versioning=true/expired
redis: 2022/06/14 15:42:54 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48232->[::1]:6379: use of closed network connection
--- PASS: TestAPIExpiration (0.43s)
--- PASS: TestAPIExpiration/versioning=false (0.14s)
--- PASS: TestAPIExpiration/versioning=false/not_expired (0.08s)
--- PASS: TestAPIExpiration/versioning=false/expired (0.06s)
--- PASS: TestAPIExpiration/versioning=true (0.14s)
--- PASS: TestAPIExpiration/versioning=true/not_expired (0.07s)
--- PASS: TestAPIExpiration/versioning=true/expired (0.06s)
=== RUN TestStripListenPath
--- PASS: TestStripListenPath (0.00s)
=== RUN TestAPISpec_SanitizeProxyPaths
=== RUN TestAPISpec_SanitizeProxyPaths/strip=false
=== RUN TestAPISpec_SanitizeProxyPaths/strip=true
--- PASS: TestAPISpec_SanitizeProxyPaths (0.00s)
--- PASS: TestAPISpec_SanitizeProxyPaths/strip=false (0.00s)
--- PASS: TestAPISpec_SanitizeProxyPaths/strip=true (0.00s)
=== RUN TestEnforcedTimeout
util.go:32: Skipping flaky test
--- SKIP: TestEnforcedTimeout (0.00s)
=== RUN TestOpenTracing
=== RUN TestOpenTracing/ensure_the_manager_is_enabled
=== RUN TestOpenTracing/ensure_services_are_initialized
redis: 2022/06/14 15:42:54 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48244->[::1]:6379: use of closed network connection
--- PASS: TestOpenTracing (0.20s)
--- PASS: TestOpenTracing/ensure_the_manager_is_enabled (0.00s)
--- PASS: TestOpenTracing/ensure_services_are_initialized (0.06s)
=== RUN TestInternalAPIUsage
=== RUN TestInternalAPIUsage/with_name
=== RUN TestInternalAPIUsage/with_api_id
redis: 2022/06/14 15:42:54 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48256->[::1]:6379: use of closed network connection
--- PASS: TestInternalAPIUsage (0.27s)
--- PASS: TestInternalAPIUsage/with_name (0.01s)
--- PASS: TestInternalAPIUsage/with_api_id (0.07s)
=== RUN TestFuzzyFindAPI
=== RUN TestFuzzyFindAPI/ignore_case
=== RUN TestFuzzyFindAPI/ignore_categories
=== RUN TestFuzzyFindAPI/replace_underscores
=== RUN TestFuzzyFindAPI/replace_@
=== RUN TestFuzzyFindAPI/supply_hex
=== RUN TestFuzzyFindAPI/supply_APIID
=== RUN TestFuzzyFindAPI/empty_search_string
redis: 2022/06/14 15:42:54 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48264->[::1]:6379: use of closed network connection
--- PASS: TestFuzzyFindAPI (0.23s)
--- PASS: TestFuzzyFindAPI/ignore_case (0.00s)
--- PASS: TestFuzzyFindAPI/ignore_categories (0.00s)
--- PASS: TestFuzzyFindAPI/replace_underscores (0.00s)
--- PASS: TestFuzzyFindAPI/replace_@ (0.00s)
--- PASS: TestFuzzyFindAPI/supply_hex (0.00s)
--- PASS: TestFuzzyFindAPI/supply_APIID (0.00s)
--- PASS: TestFuzzyFindAPI/empty_search_string (0.00s)
=== RUN TestAPILoopingName
=== RUN TestAPILoopingName/api_#a_#b_#c
=== RUN TestAPILoopingName/__api_#a_#b_#c
=== RUN TestAPILoopingName/@api_#a_#b_#c
=== RUN TestAPILoopingName/api
=== RUN TestAPILoopingName/__api__
=== RUN TestAPILoopingName/@___api_-__name_@__
=== RUN TestAPILoopingName/@___api_-__name_@___#a_#b
--- PASS: TestAPILoopingName (0.00s)
--- PASS: TestAPILoopingName/api_#a_#b_#c (0.00s)
--- PASS: TestAPILoopingName/__api_#a_#b_#c (0.00s)
--- PASS: TestAPILoopingName/@api_#a_#b_#c (0.00s)
--- PASS: TestAPILoopingName/api (0.00s)
--- PASS: TestAPILoopingName/__api__ (0.00s)
--- PASS: TestAPILoopingName/@___api_-__name_@__ (0.00s)
--- PASS: TestAPILoopingName/@___api_-__name_@___#a_#b (0.00s)
=== RUN TestGraphQLPlayground
=== RUN TestGraphQLPlayground/on-premise
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_empty
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_empty/playground_html_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_empty/playground.js_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_empty/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/'
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/playground'
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/playground'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/playground'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/playground'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/ppp'
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/ppp'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/ppp'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/ppp'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/zzz/'
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/zzz/'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/zzz/'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'/zzz/'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'aaa'
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'aaa'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'aaa'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/on-premise/playground_path_is_'aaa'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/cloud
=== RUN TestGraphQLPlayground/cloud/playground_path_is_empty
=== RUN TestGraphQLPlayground/cloud/playground_path_is_empty/playground_html_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_empty/playground.js_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_empty/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/'
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/playground'
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/playground'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/playground'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/playground'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/ppp'
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/ppp'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/ppp'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/ppp'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/zzz/'
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/zzz/'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/zzz/'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'/zzz/'/should_get_error_on_post_request_to_playground_path
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'aaa'
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'aaa'/playground_html_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'aaa'/playground.js_is_loaded
=== RUN TestGraphQLPlayground/cloud/playground_path_is_'aaa'/should_get_error_on_post_request_to_playground_path
redis: 2022/06/14 15:42:57 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48272->[::1]:6379: use of closed network connection
--- PASS: TestGraphQLPlayground (3.10s)
--- PASS: TestGraphQLPlayground/on-premise (1.49s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_empty (0.25s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_empty/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_empty/playground.js_is_loaded (0.17s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_empty/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/' (0.25s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/'/playground.js_is_loaded (0.17s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/playground' (0.24s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/playground'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/playground'/playground.js_is_loaded (0.15s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/playground'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/ppp' (0.26s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/ppp'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/ppp'/playground.js_is_loaded (0.18s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/ppp'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/zzz/' (0.24s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/zzz/'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/zzz/'/playground.js_is_loaded (0.16s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'/zzz/'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'aaa' (0.24s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'aaa'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'aaa'/playground.js_is_loaded (0.16s)
--- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'aaa'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/cloud (1.47s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_empty (0.25s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_empty/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_empty/playground.js_is_loaded (0.17s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_empty/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/' (0.25s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/'/playground.js_is_loaded (0.16s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/playground' (0.25s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/playground'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/playground'/playground.js_is_loaded (0.17s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/playground'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/ppp' (0.24s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/ppp'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/ppp'/playground.js_is_loaded (0.16s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/ppp'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/zzz/' (0.24s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/zzz/'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/zzz/'/playground.js_is_loaded (0.16s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/zzz/'/should_get_error_on_post_request_to_playground_path (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'aaa' (0.25s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'aaa'/playground_html_is_loaded (0.00s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'aaa'/playground.js_is_loaded (0.16s)
--- PASS: TestGraphQLPlayground/cloud/playground_path_is_'aaa'/should_get_error_on_post_request_to_playground_path (0.00s)
=== RUN TestCORS
=== RUN TestCORS/CORS_disabled
=== RUN TestCORS/CORS_enabled
=== RUN TestCORS/oauth_endpoints
=== RUN TestCORS/oauth_endpoints/CORS_disabled
=== RUN TestCORS/oauth_endpoints/CORS_enabled
redis: 2022/06/14 15:42:58 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48280->[::1]:6379: use of closed network connection
--- PASS: TestCORS (0.43s)
--- PASS: TestCORS/CORS_disabled (0.01s)
--- PASS: TestCORS/CORS_enabled (0.07s)
--- PASS: TestCORS/oauth_endpoints (0.13s)
--- PASS: TestCORS/oauth_endpoints/CORS_disabled (0.00s)
--- PASS: TestCORS/oauth_endpoints/CORS_enabled (0.07s)
=== RUN TestTykRateLimitsStatusOfAPI
redis: 2022/06/14 15:42:58 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48290->[::1]:6379: use of closed network connection
--- PASS: TestTykRateLimitsStatusOfAPI (0.22s)
=== RUN TestPolicyAPI
redis: 2022/06/14 15:42:58 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48300->[::1]:6379: use of closed network connection
--- PASS: TestPolicyAPI (0.35s)
=== RUN TestHealthCheckEndpoint
redis: 2022/06/14 15:42:59 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48310->[::1]:6379: use of closed network connection
--- PASS: TestHealthCheckEndpoint (0.22s)
=== RUN TestApiHandlerPostDupPath
=== RUN TestApiHandlerPostDupPath/Sequentieal_order
=== RUN TestApiHandlerPostDupPath/Should_re-order
=== RUN TestApiHandlerPostDupPath/Restore_original_order
redis: 2022/06/14 15:42:59 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48318->[::1]:6379: use of closed network connection
--- PASS: TestApiHandlerPostDupPath (0.40s)
--- PASS: TestApiHandlerPostDupPath/Sequentieal_order (0.13s)
--- PASS: TestApiHandlerPostDupPath/Should_re-order (0.07s)
--- PASS: TestApiHandlerPostDupPath/Restore_original_order (0.07s)
=== RUN TestKeyHandler
=== RUN TestKeyHandler/Create_key
=== RUN TestKeyHandler/Create_key_with_policy
=== RUN TestKeyHandler/Get_key
=== RUN TestKeyHandler/List_keys
=== RUN TestKeyHandler/List_keys/filter=""
=== RUN TestKeyHandler/List_keys/filter=orgID
=== RUN TestKeyHandler/Update_key
=== RUN TestKeyHandler/Delete_key
redis: 2022/06/14 15:42:59 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48328->[::1]:6379: use of closed network connection
--- PASS: TestKeyHandler (0.33s)
--- PASS: TestKeyHandler/Create_key (0.01s)
--- PASS: TestKeyHandler/Create_key_with_policy (0.03s)
--- PASS: TestKeyHandler/Get_key (0.01s)
--- PASS: TestKeyHandler/List_keys (0.02s)
--- PASS: TestKeyHandler/List_keys/filter="" (0.00s)
--- PASS: TestKeyHandler/List_keys/filter=orgID (0.00s)
--- PASS: TestKeyHandler/Update_key (0.02s)
--- PASS: TestKeyHandler/Delete_key (0.01s)
=== RUN TestKeyHandler_UpdateKey
=== RUN TestKeyHandler_UpdateKey/Add_policy_not_enforcing_acl
=== RUN TestKeyHandler_UpdateKey/Remove_policy_not_enforcing_acl
=== RUN TestKeyHandler_UpdateKey/Tags_on_key_level
=== RUN TestKeyHandler_UpdateKey/Tags_on_key_level/Add
=== RUN TestKeyHandler_UpdateKey/Tags_on_key_level/Make_unique
=== RUN TestKeyHandler_UpdateKey/Tags_on_key_level/Remove
=== RUN TestKeyHandler_UpdateKey/MetaData_on_key_level
=== RUN TestKeyHandler_UpdateKey/MetaData_on_key_level/Add
=== RUN TestKeyHandler_UpdateKey/MetaData_on_key_level/Make_unique
=== RUN TestKeyHandler_UpdateKey/MetaData_on_key_level/Remove
redis: 2022/06/14 15:43:00 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48336->[::1]:6379: use of closed network connection
--- PASS: TestKeyHandler_UpdateKey (0.27s)
--- PASS: TestKeyHandler_UpdateKey/Add_policy_not_enforcing_acl (0.01s)
--- PASS: TestKeyHandler_UpdateKey/Remove_policy_not_enforcing_acl (0.01s)
--- PASS: TestKeyHandler_UpdateKey/Tags_on_key_level (0.03s)
--- PASS: TestKeyHandler_UpdateKey/Tags_on_key_level/Add (0.01s)
--- PASS: TestKeyHandler_UpdateKey/Tags_on_key_level/Make_unique (0.01s)
--- PASS: TestKeyHandler_UpdateKey/Tags_on_key_level/Remove (0.01s)
--- PASS: TestKeyHandler_UpdateKey/MetaData_on_key_level (0.03s)
--- PASS: TestKeyHandler_UpdateKey/MetaData_on_key_level/Add (0.01s)
--- PASS: TestKeyHandler_UpdateKey/MetaData_on_key_level/Make_unique (0.01s)
--- PASS: TestKeyHandler_UpdateKey/MetaData_on_key_level/Remove (0.01s)
=== RUN TestUpdateKeyWithCert
=== RUN TestUpdateKeyWithCert/Update_key_with_valid_cert
=== RUN TestUpdateKeyWithCert/Update_key_with_empty_cert
=== RUN TestUpdateKeyWithCert/Update_key_with_invalid_cert
redis: 2022/06/14 15:43:00 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48344->[::1]:6379: use of closed network connection
--- PASS: TestUpdateKeyWithCert (0.60s)
--- PASS: TestUpdateKeyWithCert/Update_key_with_valid_cert (0.16s)
--- PASS: TestUpdateKeyWithCert/Update_key_with_empty_cert (0.14s)
--- PASS: TestUpdateKeyWithCert/Update_key_with_invalid_cert (0.10s)
=== RUN TestKeyHandler_CheckKeysNotDuplicateOnUpdate
=== RUN TestKeyHandler_CheckKeysNotDuplicateOnUpdate/short,custom,notHashed
=== RUN TestKeyHandler_CheckKeysNotDuplicateOnUpdate/short,custom,hashed
=== RUN TestKeyHandler_CheckKeysNotDuplicateOnUpdate/long,custom,notHashed
=== RUN TestKeyHandler_CheckKeysNotDuplicateOnUpdate/long,custom,hashed
=== RUN TestKeyHandler_CheckKeysNotDuplicateOnUpdate/regular,notHashed
=== RUN TestKeyHandler_CheckKeysNotDuplicateOnUpdate/regular,hashed
redis: 2022/06/14 15:43:00 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48354->[::1]:6379: use of closed network connection
--- PASS: TestKeyHandler_CheckKeysNotDuplicateOnUpdate (0.24s)
--- PASS: TestKeyHandler_CheckKeysNotDuplicateOnUpdate/short,custom,notHashed (0.01s)
--- PASS: TestKeyHandler_CheckKeysNotDuplicateOnUpdate/short,custom,hashed (0.01s)
--- PASS: TestKeyHandler_CheckKeysNotDuplicateOnUpdate/long,custom,notHashed (0.01s)
--- PASS: TestKeyHandler_CheckKeysNotDuplicateOnUpdate/long,custom,hashed (0.01s)
--- PASS: TestKeyHandler_CheckKeysNotDuplicateOnUpdate/regular,notHashed (0.01s)
--- PASS: TestKeyHandler_CheckKeysNotDuplicateOnUpdate/regular,hashed (0.01s)
=== RUN TestHashKeyHandler
util.go:32: Skipping Racy test
--- SKIP: TestHashKeyHandler (0.00s)
=== RUN TestHashKeyHandlerLegacyWithHashFunc
util.go:32: Skipping Racy test
--- SKIP: TestHashKeyHandlerLegacyWithHashFunc (0.00s)
=== RUN TestHashKeyListingDisabled
=== RUN TestHashKeyListingDisabled/Create,_get_and_delete_key_with_key_hashing
redis: 2022/06/14 15:43:01 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48362->[::1]:6379: use of closed network connection
--- PASS: TestHashKeyListingDisabled (0.26s)
--- PASS: TestHashKeyListingDisabled/Create,_get_and_delete_key_with_key_hashing (0.03s)
=== RUN TestKeyHandler_HashingDisabled
util.go:32: Skipping Racy test
--- SKIP: TestKeyHandler_HashingDisabled (0.00s)
=== RUN TestInvalidateCache
redis: 2022/06/14 15:43:01 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48370->[::1]:6379: use of closed network connection
--- PASS: TestInvalidateCache (0.19s)
=== RUN TestGetOAuthClients
redis: 2022/06/14 15:43:01 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48378->[::1]:6379: use of closed network connection
--- PASS: TestGetOAuthClients (0.20s)
=== RUN TestCreateOAuthClient
=== RUN TestCreateOAuthClient/no_policy_id_but_api_id_provided
=== RUN TestCreateOAuthClient/policy_does_not_exist
=== RUN TestCreateOAuthClient/API_does_not_exist
=== RUN TestCreateOAuthClient/API_is_not_OAuth
=== RUN TestCreateOAuthClient/no_api_id_but_policy_id_provided
redis: 2022/06/14 15:43:01 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48386->[::1]:6379: use of closed network connection
--- PASS: TestCreateOAuthClient (0.21s)
--- PASS: TestCreateOAuthClient/no_policy_id_but_api_id_provided (0.00s)
--- PASS: TestCreateOAuthClient/policy_does_not_exist (0.00s)
--- PASS: TestCreateOAuthClient/API_does_not_exist (0.00s)
--- PASS: TestCreateOAuthClient/API_is_not_OAuth (0.00s)
--- PASS: TestCreateOAuthClient/no_api_id_but_policy_id_provided (0.01s)
=== RUN TestUpdateOauthClientHandler
=== RUN TestUpdateOauthClientHandler/Update_description
=== RUN TestUpdateOauthClientHandler/Secret_remains_the_same
=== RUN TestUpdateOauthClientHandler/Secret_cannot_be_updated
redis: 2022/06/14 15:43:01 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48394->[::1]:6379: use of closed network connection
--- PASS: TestUpdateOauthClientHandler (0.21s)
--- PASS: TestUpdateOauthClientHandler/Update_description (0.01s)
--- PASS: TestUpdateOauthClientHandler/Secret_remains_the_same (0.00s)
--- PASS: TestUpdateOauthClientHandler/Secret_cannot_be_updated (0.01s)
=== RUN TestGroupResetHandler
redis: 2022/06/14 15:43:02 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48404->[::1]:6379: use of closed network connection
--- PASS: TestGroupResetHandler (0.25s)
=== RUN TestHotReloadSingle
redis: 2022/06/14 15:43:02 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48412->[::1]:6379: use of closed network connection
--- PASS: TestHotReloadSingle (0.18s)
=== RUN TestContextData
--- PASS: TestContextData (0.00s)
=== RUN TestContextSession
redis: 2022/06/14 15:43:02 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48420->[::1]:6379: use of closed network connection
--- PASS: TestContextSession (0.14s)
=== RUN TestApiLoaderLongestPathFirst
redis: 2022/06/14 15:43:02 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48428->[::1]:6379: use of closed network connection
--- PASS: TestApiLoaderLongestPathFirst (0.36s)
=== RUN TestRotateClientSecretHandler
=== RUN TestRotateClientSecretHandler/Secret_can_be_rotated
redis: 2022/06/14 15:43:03 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48436->[::1]:6379: use of closed network connection
--- PASS: TestRotateClientSecretHandler (0.23s)
--- PASS: TestRotateClientSecretHandler/Secret_can_be_rotated (0.00s)
=== RUN TestHandleAddApi
=== RUN TestHandleAddApi/should_return_error_when_api_definition_json_is_invalid
=== RUN TestHandleAddApi/should_return_error_when_semantic_validation_fails
=== RUN TestHandleAddApi/should_return_success_when_no_error_occurs
=== RUN TestHandleAddApi/generate_api_id_if_not_provided
redis: 2022/06/14 15:43:03 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48444->[::1]:6379: use of closed network connection
--- PASS: TestHandleAddApi (0.16s)
--- PASS: TestHandleAddApi/should_return_error_when_api_definition_json_is_invalid (0.00s)
--- PASS: TestHandleAddApi/should_return_error_when_semantic_validation_fails (0.00s)
--- PASS: TestHandleAddApi/should_return_success_when_no_error_occurs (0.01s)
--- PASS: TestHandleAddApi/generate_api_id_if_not_provided (0.01s)
=== RUN TestHandleUpdateApi
=== RUN TestHandleUpdateApi/should_return_error_when_api_definition_json_is_invalid
=== RUN TestHandleUpdateApi/should_return_error_when_api_ids_are_different
=== RUN TestHandleUpdateApi/should_return_error_when_semantic_validation_fails
=== RUN TestHandleUpdateApi/should_return_success_when_no_error_occurs
=== RUN TestHandleUpdateApi/API_not_found_for_non_existing_API
redis: 2022/06/14 15:43:03 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48452->[::1]:6379: use of closed network connection
--- PASS: TestHandleUpdateApi (0.21s)
--- PASS: TestHandleUpdateApi/should_return_error_when_api_definition_json_is_invalid (0.00s)
--- PASS: TestHandleUpdateApi/should_return_error_when_api_ids_are_different (0.00s)
--- PASS: TestHandleUpdateApi/should_return_error_when_semantic_validation_fails (0.00s)
--- PASS: TestHandleUpdateApi/should_return_success_when_no_error_occurs (0.01s)
--- PASS: TestHandleUpdateApi/API_not_found_for_non_existing_API (0.00s)
=== RUN TestDeleteAPI
=== RUN TestDeleteAPI/API_not_found_for_non_existing_API
redis: 2022/06/14 15:43:03 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48460->[::1]:6379: use of closed network connection
--- PASS: TestDeleteAPI (0.14s)
--- PASS: TestDeleteAPI/API_not_found_for_non_existing_API (0.00s)
=== RUN TestOAS
=== RUN TestOAS/OAS_validation_-_should_fail_without_x-tyk-api-gateway
=== RUN TestOAS/OAS_validation_-_should_fail_without_paths
=== RUN TestOAS/get_old_api_in_OAS_format_-_should_fail
=== RUN TestOAS/toggle_isOAS_-_should_override
=== RUN TestOAS/update
=== RUN TestOAS/update/old_api
=== RUN TestOAS/update/old_api/with_old
=== RUN TestOAS/update/old_api/with_old/get
=== RUN TestOAS/update/old_api/with_old/get/in_old
=== RUN TestOAS/update/old_api/with_old/get/in_oas_-_should_fail
=== RUN TestOAS/update/old_api/with_oas_-_should_fail
=== RUN TestOAS/update/oas_api
=== RUN TestOAS/update/oas_api/with_old
=== RUN TestOAS/update/oas_api/with_old/update_oas_API_with_old_format_-_should_fail
=== RUN TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled
=== RUN TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled/get
=== RUN TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled/get/in_oas
=== RUN TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled/get/in_old
=== RUN TestOAS/update/oas_api/with_oas_and_gateway_tags_disabled
=== RUN TestOAS/update/oas_api/with_oas_and_gateway_tags_disabled/get
=== RUN TestOAS/update/oas_api/with_oas_and_gateway_tags_disabled/get/in_oas
=== RUN TestOAS/update/oas_api/with_oas_and_gateway_tags_disabled/get/in_old
=== RUN TestOAS/update/oas_api/with_oas
=== RUN TestOAS/update/oas_api/with_oas/get
=== RUN TestOAS/update/oas_api/with_oas/get/in_oas
=== RUN TestOAS/update/oas_api/with_oas/get/in_old
=== RUN TestOAS/update/oas_api/OAS_validation
=== RUN TestOAS/update/oas_api/export
=== RUN TestOAS/update/oas_api/export/with_old
=== RUN TestOAS/update/oas_api/export/with_old/get
=== RUN TestOAS/update/oas_api/export/with_old/get_scope_public
=== RUN TestOAS/update/oas_api/export/with_oas
=== RUN TestOAS/update/oas_api/export/with_oas/get
=== RUN TestOAS/update/oas_api/export/with_oas/get_scope_public
=== RUN TestOAS/update/oas_api/export/not_found
=== RUN TestOAS/update/oas_api/export/not_found/get
=== RUN TestOAS/patch
=== RUN TestOAS/patch/when_tyk_extension_is_provided_and_no_params_are_provided_-_act_like_PUT
=== RUN TestOAS/patch/when_tyk_extension_and_parameters_are_not_provided_-_update_OAS_part_only
=== RUN TestOAS/patch/when_params_are_provided_and_no_tyk_extension_in_request_-_override_values_in_existing_API
=== RUN TestOAS/patch/when_param_are_provided_and_tyk_extension_in_request_-_override_values_(if_any)_in_request
=== RUN TestOAS/patch/retain_old_OAS_servers
=== RUN TestOAS/patch/retain_old_OAS_servers/should_retain_first_entry_in_existing_API
=== RUN TestOAS/patch/retain_old_OAS_servers/do_not_modify_if_first_server_is_same_as_that_of_gw
=== RUN TestOAS/patch/error_on_invalid_upstreamURL
=== RUN TestOAS/patch/request_validation
=== RUN TestOAS/patch/request_validation/empty_apiID
=== RUN TestOAS/patch/request_validation/malformed_body
=== RUN TestOAS/patch/request_validation/error_when_APIID_doesn't_exist_in_gw
=== RUN TestOAS/patch/request_validation/when_dashboard_app_config_set_to_true
=== RUN TestOAS/patch/request_validation/fail_when_non_OAS_API_tried_to_patch
=== RUN TestOAS/patch/OAS_validation
=== RUN TestOAS/delete
=== RUN TestOAS/delete/oas
=== RUN TestOAS/delete/old_api
=== RUN TestOAS/import/OAS
=== RUN TestOAS/import/OAS/error_with_tyk_extension
=== RUN TestOAS/import/OAS/success_without_tyk_extension
=== RUN TestOAS/import/OAS/missing_paths_from_OAS
=== RUN TestOAS/import/OAS/malformed_upstream_URL
=== RUN TestOAS/import/OAS/missing_upstream_URL
=== RUN TestOAS/import/OAS/success_without_config_query_params,_no_tyk_ext
redis: 2022/06/14 15:43:07 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48468->[::1]:6379: use of closed network connection
--- PASS: TestOAS (4.03s)
--- PASS: TestOAS/OAS_validation_-_should_fail_without_x-tyk-api-gateway (0.01s)
--- PASS: TestOAS/OAS_validation_-_should_fail_without_paths (0.04s)
--- PASS: TestOAS/get_old_api_in_OAS_format_-_should_fail (0.00s)
--- PASS: TestOAS/toggle_isOAS_-_should_override (0.09s)
--- PASS: TestOAS/update (1.26s)
--- PASS: TestOAS/update/old_api (0.30s)
--- PASS: TestOAS/update/old_api/with_old (0.18s)
--- PASS: TestOAS/update/old_api/with_old/get (0.01s)
--- PASS: TestOAS/update/old_api/with_old/get/in_old (0.01s)
--- PASS: TestOAS/update/old_api/with_old/get/in_oas_-_should_fail (0.00s)
--- PASS: TestOAS/update/old_api/with_oas_-_should_fail (0.04s)
--- PASS: TestOAS/update/oas_api (0.74s)
--- PASS: TestOAS/update/oas_api/with_old (0.01s)
--- PASS: TestOAS/update/oas_api/with_old/update_oas_API_with_old_format_-_should_fail (0.00s)
--- PASS: TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled (0.23s)
--- PASS: TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled/get (0.01s)
--- PASS: TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled/get/in_oas (0.00s)
--- PASS: TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled/get/in_old (0.01s)
--- PASS: TestOAS/update/oas_api/with_oas_and_gateway_tags_disabled (0.23s)
--- PASS: TestOAS/update/oas_api/with_oas_and_gateway_tags_disabled/get (0.01s)
--- PASS: TestOAS/update/oas_api/with_oas_and_gateway_tags_disabled/get/in_oas (0.00s)
--- PASS: TestOAS/update/oas_api/with_oas_and_gateway_tags_disabled/get/in_old (0.01s)
--- PASS: TestOAS/update/oas_api/with_oas (0.22s)
--- PASS: TestOAS/update/oas_api/with_oas/get (0.01s)
--- PASS: TestOAS/update/oas_api/with_oas/get/in_oas (0.00s)
--- PASS: TestOAS/update/oas_api/with_oas/get/in_old (0.01s)
--- PASS: TestOAS/update/oas_api/OAS_validation (0.04s)
--- PASS: TestOAS/update/oas_api/export (0.22s)
--- PASS: TestOAS/update/oas_api/export/with_old (0.11s)
--- PASS: TestOAS/update/oas_api/export/with_old/get (0.00s)
--- PASS: TestOAS/update/oas_api/export/with_old/get_scope_public (0.00s)
--- PASS: TestOAS/update/oas_api/export/with_oas (0.01s)
--- PASS: TestOAS/update/oas_api/export/with_oas/get (0.00s)
--- PASS: TestOAS/update/oas_api/export/with_oas/get_scope_public (0.00s)
--- PASS: TestOAS/update/oas_api/export/not_found (0.11s)
--- PASS: TestOAS/update/oas_api/export/not_found/get (0.00s)
--- PASS: TestOAS/patch (1.63s)
--- PASS: TestOAS/patch/when_tyk_extension_is_provided_and_no_params_are_provided_-_act_like_PUT (0.25s)
--- PASS: TestOAS/patch/when_tyk_extension_and_parameters_are_not_provided_-_update_OAS_part_only (0.23s)
--- PASS: TestOAS/patch/when_params_are_provided_and_no_tyk_extension_in_request_-_override_values_in_existing_API (0.23s)
--- PASS: TestOAS/patch/when_param_are_provided_and_tyk_extension_in_request_-_override_values_(if_any)_in_request (0.25s)
--- PASS: TestOAS/patch/retain_old_OAS_servers (0.44s)
--- PASS: TestOAS/patch/retain_old_OAS_servers/should_retain_first_entry_in_existing_API (0.22s)
--- PASS: TestOAS/patch/retain_old_OAS_servers/do_not_modify_if_first_server_is_same_as_that_of_gw (0.22s)
--- PASS: TestOAS/patch/error_on_invalid_upstreamURL (0.05s)
--- PASS: TestOAS/patch/request_validation (0.14s)
--- PASS: TestOAS/patch/request_validation/empty_apiID (0.04s)
--- PASS: TestOAS/patch/request_validation/malformed_body (0.00s)
--- PASS: TestOAS/patch/request_validation/error_when_APIID_doesn't_exist_in_gw (0.04s)
--- PASS: TestOAS/patch/request_validation/when_dashboard_app_config_set_to_true (0.00s)
--- PASS: TestOAS/patch/request_validation/fail_when_non_OAS_API_tried_to_patch (0.05s)
--- PASS: TestOAS/patch/OAS_validation (0.04s)
--- PASS: TestOAS/delete (0.14s)
--- PASS: TestOAS/delete/oas (0.07s)
--- PASS: TestOAS/delete/old_api (0.07s)
--- PASS: TestOAS/import/OAS (0.59s)
--- PASS: TestOAS/import/OAS/error_with_tyk_extension (0.05s)
--- PASS: TestOAS/import/OAS/success_without_tyk_extension (0.11s)
--- PASS: TestOAS/import/OAS/missing_paths_from_OAS (0.10s)
--- PASS: TestOAS/import/OAS/malformed_upstream_URL (0.10s)
--- PASS: TestOAS/import/OAS/missing_upstream_URL (0.11s)
--- PASS: TestOAS/import/OAS/success_without_config_query_params,_no_tyk_ext (0.11s)
=== RUN TestAuthenticationAfterDeleteKey
=== RUN TestAuthenticationAfterDeleteKey/HashKeys=false
redis: 2022/06/14 15:43:08 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48484->[::1]:6379: use of closed network connection
=== RUN TestAuthenticationAfterDeleteKey/HashKeys=true
redis: 2022/06/14 15:43:08 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48494->[::1]:6379: use of closed network connection
redis: 2022/06/14 15:43:08 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48476->[::1]:6379: use of closed network connection
--- PASS: TestAuthenticationAfterDeleteKey (0.56s)
--- PASS: TestAuthenticationAfterDeleteKey/HashKeys=false (0.22s)
--- PASS: TestAuthenticationAfterDeleteKey/HashKeys=true (0.21s)
=== RUN TestAuthenticationAfterUpdateKey
=== RUN TestAuthenticationAfterUpdateKey/HashKeys=false
=== RUN TestAuthenticationAfterUpdateKey/HashKeys=true
redis: 2022/06/14 15:43:08 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48504->[::1]:6379: use of closed network connection
--- PASS: TestAuthenticationAfterUpdateKey (0.27s)
--- PASS: TestAuthenticationAfterUpdateKey/HashKeys=false (0.07s)
--- PASS: TestAuthenticationAfterUpdateKey/HashKeys=true (0.07s)
=== RUN TestHashKeyFunctionChanged
=== RUN TestHashKeyFunctionChanged/custom_key
=== RUN TestHashKeyFunctionChanged/basic_auth_key
=== RUN TestHashKeyFunctionChanged/client_certificate
redis: 2022/06/14 15:43:11 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48512->[::1]:6379: use of closed network connection
--- PASS: TestHashKeyFunctionChanged (3.38s)
--- PASS: TestHashKeyFunctionChanged/custom_key (0.03s)
--- PASS: TestHashKeyFunctionChanged/basic_auth_key (2.75s)
--- PASS: TestHashKeyFunctionChanged/client_certificate (0.09s)
=== RUN TestBatch
redis: 2022/06/14 15:43:12 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48522->[::1]:6379: use of closed network connection
--- PASS: TestBatch (0.27s)
=== RUN TestVirtualEndpointBatch
=== RUN TestVirtualEndpointBatch/Skip_verification
=== RUN TestVirtualEndpointBatch/Verification_required
redis: 2022/06/14 15:43:12 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48530->[::1]:6379: use of closed network connection
--- PASS: TestVirtualEndpointBatch (0.61s)
--- PASS: TestVirtualEndpointBatch/Skip_verification (0.04s)
--- PASS: TestVirtualEndpointBatch/Verification_required (0.24s)
=== RUN TestBatchIgnoreCanonicalHeaderKey
redis: 2022/06/14 15:43:13 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48540->[::1]:6379: use of closed network connection
--- PASS: TestBatchIgnoreCanonicalHeaderKey (0.25s)
=== RUN TestPublicKeyPinning
=== RUN TestPublicKeyPinning/Pub_key_match
redis: 2022/06/14 15:43:13 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48548->[::1]:6379: use of closed network connection
=== RUN TestPublicKeyPinning/Pub_key_not_match
util.go:32: Skipping flaky test
=== RUN TestPublicKeyPinning/Global_setting
util.go:32: Skipping flaky test
=== RUN TestPublicKeyPinning/Though_proxy
redis: 2022/06/14 15:43:13 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48556->[::1]:6379: use of closed network connection
=== RUN TestPublicKeyPinning/Enable_Common_Name_check
redis: 2022/06/14 15:43:14 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48564->[::1]:6379: use of closed network connection
--- PASS: TestPublicKeyPinning (1.22s)
--- PASS: TestPublicKeyPinning/Pub_key_match (0.20s)
--- SKIP: TestPublicKeyPinning/Pub_key_not_match (0.00s)
--- SKIP: TestPublicKeyPinning/Global_setting (0.00s)
--- PASS: TestPublicKeyPinning/Though_proxy (0.36s)
--- PASS: TestPublicKeyPinning/Enable_Common_Name_check (0.59s)
=== RUN TestProxyTransport
=== RUN TestProxyTransport/Global:_Cipher_match
=== RUN TestProxyTransport/Global:_Cipher_not_match
=== RUN TestProxyTransport/API:_Cipher_override
=== RUN TestProxyTransport/API:_MinTLS_not_match
=== RUN TestProxyTransport/API:_Invalid_proxy
=== RUN TestProxyTransport/API:_Valid_proxy
redis: 2022/06/14 15:43:14 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48572->[::1]:6379: use of closed network connection
--- PASS: TestProxyTransport (0.67s)
--- PASS: TestProxyTransport/Global:_Cipher_match (0.08s)
--- PASS: TestProxyTransport/Global:_Cipher_not_match (0.06s)
--- PASS: TestProxyTransport/API:_Cipher_override (0.07s)
--- PASS: TestProxyTransport/API:_MinTLS_not_match (0.07s)
--- PASS: TestProxyTransport/API:_Invalid_proxy (0.08s)
--- PASS: TestProxyTransport/API:_Valid_proxy (0.16s)
=== RUN TestGatewayTLS
=== RUN TestGatewayTLS/Without_certificates
redis: 2022/06/14 15:43:15 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48580->[::1]:6379: use of closed network connection
=== RUN TestGatewayTLS/Legacy_TLS_certificate_path
redis: 2022/06/14 15:43:15 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48588->[::1]:6379: use of closed network connection
=== RUN TestGatewayTLS/File_certificate_path
redis: 2022/06/14 15:43:15 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48596->[::1]:6379: use of closed network connection
=== RUN TestGatewayTLS/Redis_certificate
redis: 2022/06/14 15:43:16 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48614->[::1]:6379: use of closed network connection
redis: 2022/06/14 15:43:16 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48606->[::1]:6379: use of closed network connection
--- PASS: TestGatewayTLS (1.16s)
--- PASS: TestGatewayTLS/Without_certificates (0.21s)
--- PASS: TestGatewayTLS/Legacy_TLS_certificate_path (0.22s)
--- PASS: TestGatewayTLS/File_certificate_path (0.23s)
--- PASS: TestGatewayTLS/Redis_certificate (0.40s)
=== RUN TestGatewayControlAPIMutualTLS
=== RUN TestGatewayControlAPIMutualTLS/Separate_domain
redis: 2022/06/14 15:43:16 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48622->[::1]:6379: use of closed network connection
=== RUN TestGatewayControlAPIMutualTLS/Separate_domain/_control_api_with_valid_cert
redis: 2022/06/14 15:43:16 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48630->[::1]:6379: use of closed network connection
--- PASS: TestGatewayControlAPIMutualTLS (0.67s)
--- PASS: TestGatewayControlAPIMutualTLS/Separate_domain (0.23s)
--- PASS: TestGatewayControlAPIMutualTLS/Separate_domain/_control_api_with_valid_cert (0.19s)
=== RUN TestAPIMutualTLS
=== RUN TestAPIMutualTLS/SNI_and_domain_per_API
=== RUN TestAPIMutualTLS/SNI_and_domain_per_API/API_without_mutual_TLS
=== RUN TestAPIMutualTLS/SNI_and_domain_per_API/MutualTLSCertificate_not_set
=== RUN TestAPIMutualTLS/SNI_and_domain_per_API/Client_certificate_match
=== RUN TestAPIMutualTLS/SNI_and_domain_per_API/Client_certificate_differ
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain/Empty_domain
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain/Empty_domain/Without_certificate
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain/Empty_domain/Client_certificate_not_match
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain/Empty_domain/Client_certificate_match
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain/Custom_domain
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain/Custom_domain/Without_certificate
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain/Custom_domain/Client_certificate_not_match
=== RUN TestAPIMutualTLS/Multiple_APIs_on_same_domain/Custom_domain/Client_certificate_match
=== RUN TestAPIMutualTLS/Multiple_APIs_with_Mutual_TLS_on_the_same_domain
=== RUN TestAPIMutualTLS/Multiple_APIs_with_Mutual_TLS_on_the_same_domain/Empty_domain
=== RUN TestAPIMutualTLS/Multiple_APIs_with_Mutual_TLS_on_the_same_domain/Empty_domain/Without_certificate
cert_test.go:438: Expect error.
cert_test.go:438: Expect error.
redis: 2022/06/14 15:43:18 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:48640->[::1]:6379: use of closed network connection
--- FAIL: TestAPIMutualTLS (1.53s)
--- PASS: TestAPIMutualTLS/SNI_and_domain_per_API (0.45s)
--- PASS: TestAPIMutualTLS/SNI_and_domain_per_API/API_without_mutual_TLS (0.07s)
--- PASS: TestAPIMutualTLS/SNI_and_domain_per_API/MutualTLSCertificate_not_set (0.06s)
--- PASS: TestAPIMutualTLS/SNI_and_domain_per_API/Client_certificate_match (0.09s)
--- PASS: TestAPIMutualTLS/SNI_and_domain_per_API/Client_certificate_differ (0.22s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain (0.49s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain/Empty_domain (0.24s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain/Empty_domain/Without_certificate (0.08s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain/Empty_domain/Client_certificate_not_match (0.08s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain/Empty_domain/Client_certificate_match (0.08s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain/Custom_domain (0.25s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain/Custom_domain/Without_certificate (0.08s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain/Custom_domain/Client_certificate_not_match (0.08s)
--- PASS: TestAPIMutualTLS/Multiple_APIs_on_same_domain/Custom_domain/Client_certificate_match (0.08s)
--- FAIL: TestAPIMutualTLS/Multiple_APIs_with_Mutual_TLS_on_the_same_domain (0.09s)
--- FAIL: TestAPIMutualTLS/Multiple_APIs_with_Mutual_TLS_on_the_same_domain/Empty_domain (0.09s)
--- FAIL: TestAPIMutualTLS/Multiple_APIs_with_Mutual_TLS_on_the_same_domain/Empty_domain/Without_certificate (0.08s)
=== CONT TestGatewayTagsFilter
--- PASS: TestGatewayTagsFilter (0.00s)
FAIL
coverage: 36.1% of statements
FAIL github.com/TykTechnologies/tyk/gateway 31.349s
FAIL
gofmt
all ok
goimports
all ok
gogenerate
all ok
If the above are ok, please look at the run or in the Checks tab.
API tests result: success :white_check_mark:
Branch used: refs/pull/4128/merge
Commit:
Triggered by: pull_request (@sredxny)
Execution page
API tests result: success :white_check_mark: Branch used: refs/pull/4128/merge Commit: 5f790c7001e6e2bdb218c930237f7543b8d8cdbf Triggered by: pull_request (@sredxny) Execution page
API tests result: failure :no_entry_sign: Branch used: refs/pull/4128/merge Commit: e3cc95c172c584fb7d31230c22403c44563b66ec Triggered by: pull_request (@sredxny) Execution page
API tests result: failure :no_entry_sign: Branch used: refs/pull/4128/merge Commit: 73960a623c46514668a7900f6dca6d3421967e02 Triggered by: pull_request (@sredxny) Execution page