tyk
tyk copied to clipboard
Update config.go
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
- [ ]
API tests result: success :white_check_mark:
Branch used: refs/pull/4038/merge
Commit:
Triggered by: pull_request (@marksou)
Execution page
: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
--- 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)
=== RUN TestDecodeFromDB
=== RUN TestDecodeFromDB/update_Scopes.JWT_when_JWTScopeClaimName_is_not_empty
time="May 26 06:05:28" 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="May 26 06:05:28" 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="May 26 06:05:28" level=error msg="Couldn't Decode, leaving as it may be legacy..."
time="May 26 06:05:28" level=error msg="Couldn't Decode, leaving as it may be legacy..."
--- PASS: TestAPIDefinition_DecodeFromDB_AuthDeprecation (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: 62.1% of statements
ok github.com/TykTechnologies/tyk/apidef 0.083s coverage: 62.1% 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.05s)
--- 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.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.00s)
--- 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.125s 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="May 26 06:05:31" level=error msg="Port for service HolidayService2 not found. Skiping processing of the service"
time="May 26 06:05:31" level=error msg="Unsupported transport protocol. Skipping process of the service StockQuoteService"
time="May 26 06:05:31" 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.064s 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
--- PASS: TestGetTykExtensionConfigParams (0.00s)
--- PASS: TestGetTykExtensionConfigParams/extract_all_params (0.00s)
=== RUN TestOAS_importAuthentication
=== RUN TestOAS_importAuthentication/security_is_empty
=== RUN TestOAS_importAuthentication/add_authentication
=== RUN TestOAS_importAuthentication/add_authentication/enable=true
=== RUN TestOAS_importAuthentication/add_authentication/enable=false
=== RUN TestOAS_importAuthentication/update_existing_one
--- PASS: TestOAS_importAuthentication (0.00s)
--- PASS: TestOAS_importAuthentication/security_is_empty (0.00s)
--- PASS: TestOAS_importAuthentication/add_authentication (0.00s)
--- PASS: TestOAS_importAuthentication/add_authentication/enable=true (0.00s)
--- PASS: TestOAS_importAuthentication/add_authentication/enable=false (0.00s)
--- PASS: TestOAS_importAuthentication/update_existing_one (0.00s)
=== RUN TestSecuritySchemes_Import
=== RUN TestSecuritySchemes_Import/token
=== RUN TestSecuritySchemes_Import/token/enable=true
=== RUN TestSecuritySchemes_Import/token/enable=false
=== RUN TestSecuritySchemes_Import/update_existing_one
--- PASS: TestSecuritySchemes_Import (0.01s)
--- 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/update_existing_one (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 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
=== RUN TestOAS/empty
--- PASS: TestOAS (0.00s)
--- PASS: TestOAS/empty (0.00s)
=== RUN TestOAS_AddServers
=== PAUSE TestOAS_AddServers
=== RUN TestOAS_UpdateServers
=== PAUSE TestOAS_UpdateServers
=== 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 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.16s)
=== CONT TestOAS_BuildDefaultTykExtension
=== RUN TestOAS_BuildDefaultTykExtension/build_tyk_extension_with_no_supplied_params
=== CONT TestPinnedPublicKeys
--- PASS: TestPinnedPublicKeys (0.00s)
=== CONT Test_findDefaultVersion
=== RUN TestOAS_BuildDefaultTykExtension/build_tyk_extension_with_supplied_params
=== RUN Test_findDefaultVersion/single_version
=== RUN TestOAS_BuildDefaultTykExtension/do_not_override_existing_tyk_extension_by_default
=== RUN Test_findDefaultVersion/multiple_versions
=== RUN TestOAS_BuildDefaultTykExtension/override_existing_tyk_extension_with_supplied_params
=== RUN TestOAS_BuildDefaultTykExtension/error_when_supplied_invalid_upstreamURL_param
--- PASS: Test_findDefaultVersion (0.00s)
--- PASS: Test_findDefaultVersion/single_version (0.00s)
--- PASS: Test_findDefaultVersion/multiple_versions (0.00s)
=== CONT Test_loadOASSchema
=== RUN TestOAS_BuildDefaultTykExtension/error_when_no_supplied_params_and_invalid_URL_in_servers
=== RUN Test_loadOASSchema/load_OAS
=== PAUSE Test_loadOASSchema/load_OAS
=== RUN TestOAS_BuildDefaultTykExtension/error_when_no_supplied_params_and_no_servers
=== CONT TestTagsExportServer
=== RUN TestTagsExportServer/export_segment_tags_if_enabled
=== PAUSE TestTagsExportServer/export_segment_tags_if_enabled
--- PASS: TestOAS_BuildDefaultTykExtension (0.00s)
--- 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)
=== 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 TestValidateOASObject
=== 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
=== PAUSE TestTagsImport/keep_segment_tags_values_if_enabled
=== CONT TestClientCertificates
--- PASS: TestClientCertificates (0.00s)
=== CONT TestOAS_PathsAndOperationsRegex
=== RUN TestValidateOASObject/valid_OAS_object
=== PAUSE TestValidateOASObject/valid_OAS_object
=== RUN TestValidateOASObject/invalid_OAS_object
=== PAUSE TestValidateOASObject/invalid_OAS_object
=== RUN TestValidateOASObject/wrong_typed_OAS_object
--- PASS: TestOAS_PathsAndOperationsRegex (0.00s)
=== PAUSE TestValidateOASObject/wrong_typed_OAS_object
=== CONT TestListenPath
=== CONT TestOAS_RegexOperationIDs
--- PASS: TestListenPath (0.00s)
=== CONT TestOAS_RegexPaths
--- PASS: TestOAS_RegexOperationIDs (0.00s)
=== CONT TestOAS_UpdateServers
=== RUN TestOAS_UpdateServers/empty_servers
=== RUN TestOAS_UpdateServers/non-empty_servers_replace_with_new
--- PASS: TestOAS_RegexPaths (0.00s)
=== CONT TestServer
=== RUN TestOAS_UpdateServers/non-empty_servers_not_replace
--- PASS: TestServer (0.00s)
--- 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_PathsAndOperations
=== CONT TestOAS_AddServers
=== RUN TestOAS_AddServers/empty_servers
--- PASS: TestOAS_PathsAndOperations (0.00s)
=== CONT Test_loadOASSchema/load_OAS
=== RUN TestOAS_AddServers/non-empty_servers
=== RUN TestOAS_AddServers/non-empty_servers_having_same_URL_that_of_apiURL
=== 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 TestTagsExportServer/empty_segment_tags
=== CONT TestTagsImport/keep_segment_tags_values_if_enabled
=== CONT TestTagsExportServer/export_segment_tags_if_disabled
=== CONT TestTagsExportServer/export_segment_tags_if_enabled
--- PASS: TestTagsExportServer (0.00s)
--- PASS: TestTagsExportServer/empty_segment_tags (0.00s)
--- PASS: TestTagsExportServer/export_segment_tags_if_disabled (0.00s)
--- PASS: TestTagsExportServer/export_segment_tags_if_enabled (0.00s)
=== CONT TestTagsImport/keep_segment_tags_values_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 TestValidateOASObject/valid_OAS_object
=== CONT TestValidateOASObject/wrong_typed_OAS_object
--- PASS: Test_loadOASSchema (0.00s)
--- PASS: Test_loadOASSchema/load_OAS (0.16s)
=== CONT TestValidateOASObject/invalid_OAS_object
--- PASS: TestValidateOASObject (0.01s)
--- PASS: TestValidateOASObject/valid_OAS_object (0.20s)
--- PASS: TestValidateOASObject/wrong_typed_OAS_object (0.05s)
--- PASS: TestValidateOASObject/invalid_OAS_object (0.03s)
PASS
coverage: 88.7% of statements
ok github.com/TykTechnologies/tyk/apidef/oas 0.679s coverage: 88.7% 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-05-26T06:05:38Z" 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 (3.03s)
--- 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 (0.74s)
PASS
coverage: 46.5% of statements
ok github.com/TykTechnologies/tyk/certs 3.817s 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="May 26 06:05:40" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="May 26 06:05:40" level=warning msg="Using default bundle path 'bundle.zip'" prefix=tyk
time="May 26 06:05:40" level=warning msg="The bundle will be unsigned" prefix=tyk
time="May 26 06:05:40" level=info msg="Wrote 'bundle.zip' (377 bytes)" prefix=tyk
--- PASS: TestCommands (0.01s)
=== RUN TestBuild
=== RUN TestBuild/Bundle_errors
time="May 26 06:05:40" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="May 26 06:05:40" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="May 26 06:05:40" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="May 26 06:05:40" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="May 26 06:05:40" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
=== RUN TestBuild/Simple_bundle_build
time="May 26 06:05:40" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="May 26 06:05:40" level=warning msg="Using default bundle path 'bundle.zip'" prefix=tyk
time="May 26 06:05:40" level=warning msg="The bundle will be unsigned" prefix=tyk
time="May 26 06:05: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.063s 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.23s)
--- 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.02s)
--- 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.280s 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="May 26 06:05:43" level=warning msg="No config file found, writing default to /tmp/tyk425054571/tyk1.conf"
time="May 26 06:05: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="May 26 06:05: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 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.6% of statements
ok github.com/TykTechnologies/tyk/config 0.164s coverage: 69.6% 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="May 26 06:05:47" level=info msg="starting test"
time="May 26 06:05: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
--- PASS: TestGRPCDispatch (0.33s)
--- 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.00s)
--- SKIP: TestGRPCDispatch/Post_Hook_with_allowed_message_length (0.00s)
--- SKIP: TestGRPCDispatch/Post_Hook_with_with_unallowed_message_length (0.00s)
=== RUN TestGRPCIgnore
--- PASS: TestGRPCIgnore (0.29s)
PASS
coverage: [no statements]
ok github.com/TykTechnologies/tyk/coprocess/grpc 0.917s coverage: [no statements]
go test -race -count=1 -failfast -v -timeout 15m -coverprofile=python.cov github.com/TykTechnologies/tyk/coprocess/python
=== RUN TestValueExtractorHeaderSource
time="May 26 06:05:51" level=info msg="starting test"
=== RUN TestValueExtractorHeaderSource/Header_value
FAIL github.com/TykTechnologies/tyk/coprocess/python 0.696s
FAIL
gofmt
all ok
goimports
gateway/api.go
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/4038/merge Commit: 56808b96d046ff5ca881858d40649af9ece47635 Triggered by: pull_request (@jeffy-mathew) Execution page