tyk icon indicating copy to clipboard operation
tyk copied to clipboard

Feature/apidef submodule

Open titpetric opened this issue 2 years ago • 6 comments

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 latest master.
  • [ ] 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

titpetric avatar Sep 02 '22 18:09 titpetric

: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=certs.cov github.com/TykTechnologies/tyk/certs
go: downloading github.com/stretchr/testify v1.8.0
=== RUN   TestAddCertificate
=== RUN   TestAddCertificate/empty_cert
time="2022-09-02T18:21:40Z" level=error msg="Failed to decode certificate. It should be PEM encoded." prefix=cert_storage
=== RUN   TestAddCertificate/invalid_cert:_pem
time="2022-09-02T18:21:40Z" level=error msg="Failed to decode certificate. It should be PEM encoded." prefix=cert_storage
=== RUN   TestAddCertificate/invalid_cert:_asn1
time="2022-09-02T18:21:40Z" level=error msg="asn1: syntax error: truncated tag or length" prefix=cert_storage
=== RUN   TestAddCertificate/valid_cert_1
=== RUN   TestAddCertificate/tls:_wrong_private
time="2022-09-02T18:21:40Z" level=error msg="tls: private key does not match public key" prefix=cert_storage
=== RUN   TestAddCertificate/valid_cert_2
=== RUN   TestAddCertificate/combined_pem_exists
=== RUN   TestAddCertificate/valid_public_pem
=== RUN   TestAddCertificate/expired_cert
time="2022-09-02T18:21:40Z" level=error msg="certificate is expired" prefix=cert_storage
--- PASS: TestAddCertificate (3.22s)
    --- PASS: TestAddCertificate/empty_cert (0.00s)
    --- PASS: TestAddCertificate/invalid_cert:_pem (0.00s)
    --- PASS: TestAddCertificate/invalid_cert:_asn1 (0.00s)
    --- PASS: TestAddCertificate/valid_cert_1 (0.00s)
    --- PASS: TestAddCertificate/tls:_wrong_private (0.00s)
    --- PASS: TestAddCertificate/valid_cert_2 (0.00s)
    --- PASS: TestAddCertificate/combined_pem_exists (0.00s)
    --- PASS: TestAddCertificate/valid_public_pem (0.00s)
    --- PASS: TestAddCertificate/expired_cert (0.00s)
=== RUN   TestCertificateStorage
=== RUN   TestCertificateStorage/File_certificates
time="2022-09-02T18:21:42Z" 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 (2.66s)
    --- 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.77s)
PASS
coverage: 49.0% of statements
ok  	github.com/TykTechnologies/tyk/certs	7.685s	coverage: 49.0% 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="Sep 02 18:21:47" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Sep 02 18:21:47" level=warning msg="Using default bundle path 'bundle.zip'" prefix=tyk
time="Sep 02 18:21:47" level=warning msg="The bundle will be unsigned" prefix=tyk
time="Sep 02 18:21:47" level=info msg="Wrote 'bundle.zip' (377 bytes)" prefix=tyk
--- PASS: TestCommands (0.01s)
=== RUN   TestBuild
=== RUN   TestBuild/Bundle_errors
time="Sep 02 18:21:47" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Sep 02 18:21:47" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Sep 02 18:21:47" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Sep 02 18:21:47" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Sep 02 18:21:47" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
=== RUN   TestBuild/Simple_bundle_build
time="Sep 02 18:21:47" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Sep 02 18:21:47" level=warning msg="Using default bundle path 'bundle.zip'" prefix=tyk
time="Sep 02 18:21:47" level=warning msg="The bundle will be unsigned" prefix=tyk
time="Sep 02 18:21:47" 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: 71.4% of statements
ok  	github.com/TykTechnologies/tyk/cli/bundler	0.065s	coverage: 71.4% 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.28s)
    --- 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.337s	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="Sep 02 18:21:51" level=warning msg="No config file found, writing default to /tmp/tyk214148675/tyk1.conf"
time="Sep 02 18:21:51" 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="Sep 02 18:21:51" 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   TestCustomCertsDataDecoder
--- PASS: TestCustomCertsDataDecoder (0.00s)
=== RUN   TestPortsWhiteListDecoder
--- PASS: TestPortsWhiteListDecoder (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: 68.8% of statements
ok  	github.com/TykTechnologies/tyk/config	0.196s	coverage: 68.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="Sep 02 18:21:56" level=info msg="starting test"
time="Sep 02 18:21:56" 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/09/02 18:21:57 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49106->[::1]:6379: use of closed network connection
--- PASS: TestGRPCDispatch (0.41s)
    --- 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/09/02 18:21:57 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49116->[::1]:6379: use of closed network connection
--- PASS: TestGRPCIgnore (0.36s)
PASS
coverage: [no statements]
ok  	github.com/TykTechnologies/tyk/coprocess/grpc	1.159s	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="Sep 02 18:22:02" 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/09/02 18:22:10 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49126->[::1]:6379: use of closed network connection
--- PASS: TestPythonBundles (8.37s)
    --- PASS: TestPythonBundles/Single-file_bundle_with_authentication_hook (2.61s)
    --- PASS: TestPythonBundles/Auth_with_policy (1.11s)
    --- PASS: TestPythonBundles/Single-file_bundle_with_post_hook (1.14s)
    --- 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.769s	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.16s)
PASS
coverage: 54.7% of statements
ok  	github.com/TykTechnologies/tyk/dlpython	0.454s	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.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.712s	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="Sep 02 18:22:49" level=info msg="starting test"
time="Sep 02 18:22:49" level=info msg="Rich plugins are disabled" prefix=coprocess
=== RUN   TestGoAnalyticsPlugin/just_enabled_without_other_parameters_set
redis: 2022/09/02 18:22:49 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49134->[::1]:6379: use of closed network connection
--- PASS: TestGoAnalyticsPlugin (0.20s)
    --- PASS: TestGoAnalyticsPlugin/just_enabled_without_other_parameters_set (0.07s)
=== 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/09/02 18:22:50 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49142->[::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/09/02 18:22:50 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49152->[::1]:6379: use of closed network connection
--- PASS: TestAnalytics_Write (1.45s)
    --- 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.72s)
        --- 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.08s)
        --- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics (0.08s)
        --- 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/09/02 18:22:50 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49162->[::1]:6379: use of closed network connection
--- PASS: TestGeoIPLookup (0.15s)
=== RUN   TestURLReplacer
redis: 2022/09/02 18:22:51 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49170->[::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/09/02 18:22:51 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49178->[::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/09/02 18:22:51 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49186->[::1]:6379: use of closed network connection
--- PASS: TestWhitelist (0.54s)
    --- PASS: TestWhitelist/Extended_Paths (0.07s)
    --- PASS: TestWhitelist/Simple_Paths (0.06s)
    --- PASS: TestWhitelist/Test_#1944 (0.08s)
    --- PASS: TestWhitelist/Case_Sensitivity (0.07s)
    --- PASS: TestWhitelist/Listen_path_matches (0.07s)
    --- 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/09/02 18:22:52 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49194->[::1]:6379: use of closed network connection
--- PASS: TestBlacklist (0.46s)
    --- PASS: TestBlacklist/Extended_Paths (0.07s)
    --- PASS: TestBlacklist/Simple_Paths (0.07s)
    --- PASS: TestBlacklist/Case_Sensitivity (0.06s)
    --- PASS: TestBlacklist/Listen_path_matches (0.07s)
    --- PASS: TestBlacklist/Disabled (0.06s)
=== RUN   TestConflictingPaths
redis: 2022/09/02 18:22:52 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49202->[::1]:6379: use of closed network connection
--- PASS: TestConflictingPaths (0.20s)
=== 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/09/02 18:22:53 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49210->[::1]:6379: use of closed network connection
--- PASS: TestIgnored (0.65s)
    --- PASS: TestIgnored/Extended_Paths (0.07s)
    --- PASS: TestIgnored/Simple_Paths (0.06s)
    --- PASS: TestIgnored/With_URL_rewrite (0.06s)
    --- 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/09/02 18:22:53 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49218->[::1]:6379: use of closed network connection
--- PASS: TestNewMockResponse (0.24s)
    --- PASS: TestNewMockResponse/protected (0.00s)
    --- PASS: TestNewMockResponse/keyless (0.06s)
=== RUN   TestWhitelistMethodWithAdditionalMiddleware
=== RUN   TestWhitelistMethodWithAdditionalMiddleware/Extended_Paths
redis: 2022/09/02 18:22:53 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49228->[::1]:6379: use of closed network connection
--- PASS: TestWhitelistMethodWithAdditionalMiddleware (0.19s)
    --- PASS: TestWhitelistMethodWithAdditionalMiddleware/Extended_Paths (0.06s)
=== RUN   TestSyncAPISpecsDashboardSuccess
redis: 2022/09/02 18:22:53 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49236->[::1]:6379: use of closed network connection
--- PASS: TestSyncAPISpecsDashboardSuccess (0.17s)
=== RUN   TestRoundRobin
--- PASS: TestRoundRobin (0.00s)
=== RUN   TestDefaultVersion
redis: 2022/09/02 18:22:53 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49244->[::1]:6379: use of closed network connection
--- PASS: TestDefaultVersion (0.19s)
=== RUN   TestGetVersionFromRequest
=== RUN   TestGetVersionFromRequest/Header_location
=== RUN   TestGetVersionFromRequest/Header_location/strip_versioning_data
redis: 2022/09/02 18:22:54 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49254->[::1]:6379: use of closed network connection
=== RUN   TestGetVersionFromRequest/URL_param_location
=== RUN   TestGetVersionFromRequest/URL_param_location/strip_versioning_data
redis: 2022/09/02 18:22:54 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49262->[::1]:6379: use of closed network connection
=== RUN   TestGetVersionFromRequest/URL_location
=== RUN   TestGetVersionFromRequest/URL_location/strip_versioning_data
redis: 2022/09/02 18:22:54 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49270->[::1]:6379: use of closed network connection
--- PASS: TestGetVersionFromRequest (0.72s)
    --- PASS: TestGetVersionFromRequest/Header_location (0.24s)
        --- PASS: TestGetVersionFromRequest/Header_location/strip_versioning_data (0.06s)
    --- PASS: TestGetVersionFromRequest/URL_param_location (0.24s)
        --- PASS: TestGetVersionFromRequest/URL_param_location/strip_versioning_data (0.06s)
    --- PASS: TestGetVersionFromRequest/URL_location (0.24s)
        --- PASS: TestGetVersionFromRequest/URL_location/strip_versioning_data (0.06s)
=== RUN   TestSyncAPISpecsDashboardJSONFailure
redis: 2022/09/02 18:22:54 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49280->[::1]:6379: use of closed network connection
--- PASS: TestSyncAPISpecsDashboardJSONFailure (0.22s)
=== RUN   TestAPIDefinitionLoader
=== RUN   TestAPIDefinitionLoader/processRPCDefinitions_invalid
=== RUN   TestAPIDefinitionLoader/processRPCDefinitions_zero
=== RUN   TestAPIDefinitionLoader/loadFileTemplate
=== RUN   TestAPIDefinitionLoader/loadBlobTemplate
redis: 2022/09/02 18:22:55 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49290->[::1]:6379: use of closed network connection
--- PASS: TestAPIDefinitionLoader (0.13s)
    --- PASS: TestAPIDefinitionLoader/processRPCDefinitions_invalid (0.00s)
    --- PASS: TestAPIDefinitionLoader/processRPCDefinitions_zero (0.00s)
    --- PASS: TestAPIDefinitionLoader/loadFileTemplate (0.00s)
    --- PASS: TestAPIDefinitionLoader/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/09/02 18:22:55 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49300->[::1]:6379: use of closed network connection
--- PASS: TestAPIExpiration (0.36s)
    --- PASS: TestAPIExpiration/versioning=false (0.13s)
        --- PASS: TestAPIExpiration/versioning=false/not_expired (0.06s)
        --- PASS: TestAPIExpiration/versioning=false/expired (0.06s)
    --- PASS: TestAPIExpiration/versioning=true (0.11s)
        --- PASS: TestAPIExpiration/versioning=true/not_expired (0.06s)
        --- 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   TestAPISpec_GetSessionLifetimeRespectsKeyExpiration
=== RUN   TestAPISpec_GetSessionLifetimeRespectsKeyExpiration/GetSessionLifetimeRespectsKeyExpiration=false
=== RUN   TestAPISpec_GetSessionLifetimeRespectsKeyExpiration/GetSessionLifetimeRespectsKeyExpiration=true
--- PASS: TestAPISpec_GetSessionLifetimeRespectsKeyExpiration (0.00s)
    --- PASS: TestAPISpec_GetSessionLifetimeRespectsKeyExpiration/GetSessionLifetimeRespectsKeyExpiration=false (0.00s)
    --- PASS: TestAPISpec_GetSessionLifetimeRespectsKeyExpiration/GetSessionLifetimeRespectsKeyExpiration=true (0.00s)
=== RUN   TestOpenTracing
=== RUN   TestOpenTracing/ensure_the_manager_is_enabled
=== RUN   TestOpenTracing/ensure_services_are_initialized
redis: 2022/09/02 18:22:55 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49308->[::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/09/02 18:22:55 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49316->[::1]:6379: use of closed network connection
--- PASS: TestInternalAPIUsage (0.26s)
    --- PASS: TestInternalAPIUsage/with_name (0.00s)
    --- 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/09/02 18:22:56 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49324->[::1]:6379: use of closed network connection
--- PASS: TestFuzzyFindAPI (0.22s)
    --- 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/09/02 18:22:58 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49332->[::1]:6379: use of closed network connection
--- PASS: TestGraphQLPlayground (2.85s)
    --- PASS: TestGraphQLPlayground/on-premise (1.39s)
        --- PASS: TestGraphQLPlayground/on-premise/playground_path_is_empty (0.24s)
            --- 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.15s)
            --- 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.23s)
            --- 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.15s)
            --- 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.22s)
            --- 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.23s)
            --- 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.16s)
            --- 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.23s)
            --- 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.15s)
            --- 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.23s)
            --- 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.15s)
            --- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'aaa'/should_get_error_on_post_request_to_playground_path (0.00s)
    --- PASS: TestGraphQLPlayground/cloud (1.34s)
        --- PASS: TestGraphQLPlayground/cloud/playground_path_is_empty (0.23s)
            --- 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.15s)
            --- 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.22s)
            --- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/'/playground_html_is_loaded (0.00s)
            --- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/'/playground.js_is_loaded (0.14s)
            --- 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.23s)
            --- 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.14s)
            --- 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.23s)
            --- 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.13s)
            --- 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.20s)
            --- 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.12s)
            --- 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.21s)
            --- 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/09/02 18:22:59 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49340->[::1]:6379: use of closed network connection
--- PASS: TestCORS (0.44s)
    --- PASS: TestCORS/CORS_disabled (0.00s)
    --- PASS: TestCORS/CORS_enabled (0.09s)
    --- PASS: TestCORS/oauth_endpoints (0.13s)
        --- PASS: TestCORS/oauth_endpoints/CORS_disabled (0.00s)
        --- PASS: TestCORS/oauth_endpoints/CORS_enabled (0.06s)
=== RUN   TestTykRateLimitsStatusOfAPI
redis: 2022/09/02 18:22:59 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49348->[::1]:6379: use of closed network connection
--- PASS: TestTykRateLimitsStatusOfAPI (0.21s)
=== RUN   TestPolicyAPI
redis: 2022/09/02 18:22:59 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49356->[::1]:6379: use of closed network connection
--- PASS: TestPolicyAPI (0.38s)
=== RUN   TestHealthCheckEndpoint
redis: 2022/09/02 18:23:00 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49364->[::1]:6379: use of closed network connection
--- PASS: TestHealthCheckEndpoint (0.19s)
=== RUN   TestApiHandlerPostDupPath
=== RUN   TestApiHandlerPostDupPath/Sequentieal_order
=== RUN   TestApiHandlerPostDupPath/Should_re-order
=== RUN   TestApiHandlerPostDupPath/Restore_original_order
redis: 2022/09/02 18:23:00 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49372->[::1]:6379: use of closed network connection
--- PASS: TestApiHandlerPostDupPath (0.38s)
    --- PASS: TestApiHandlerPostDupPath/Sequentieal_order (0.13s)
    --- PASS: TestApiHandlerPostDupPath/Should_re-order (0.06s)
    --- 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/09/02 18:23:00 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49380->[::1]:6379: use of closed network connection
--- PASS: TestKeyHandler (0.27s)
    --- 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/09/02 18:23:01 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49388->[::1]:6379: use of closed network connection
--- PASS: TestKeyHandler_UpdateKey (0.25s)
    --- 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.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/09/02 18:23:01 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49396->[::1]:6379: use of closed network connection
--- PASS: TestUpdateKeyWithCert (0.81s)
    --- PASS: TestUpdateKeyWithCert/Update_key_with_valid_cert (0.30s)
    --- PASS: TestUpdateKeyWithCert/Update_key_with_empty_cert (0.19s)
    --- PASS: TestUpdateKeyWithCert/Update_key_with_invalid_cert (0.12s)
=== 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/09/02 18:23:02 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49404->[::1]:6379: use of closed network connection
--- PASS: TestKeyHandler_CheckKeysNotDuplicateOnUpdate (0.22s)
    --- 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/09/02 18:23:02 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49414->[::1]:6379: use of closed network connection
--- PASS: TestHashKeyListingDisabled (0.25s)
    --- 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   TestSessionLifetimeRespectsKeyExpiration
=== RUN   TestSessionLifetimeRespectsKeyExpiration/override_session_lifetime_with_api_level
=== RUN   TestSessionLifetimeRespectsKeyExpiration/respect_key_expiration
redis: 2022/09/02 18:23:04 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49422->[::1]:6379: use of closed network connection
--- PASS: TestSessionLifetimeRespectsKeyExpiration (2.26s)
    --- PASS: TestSessionLifetimeRespectsKeyExpiration/override_session_lifetime_with_api_level (1.07s)
    --- PASS: TestSessionLifetimeRespectsKeyExpiration/respect_key_expiration (1.07s)
=== RUN   TestInvalidateCache
redis: 2022/09/02 18:23:04 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49430->[::1]:6379: use of closed network connection
--- PASS: TestInvalidateCache (0.18s)
=== RUN   TestGetOAuthClients
redis: 2022/09/02 18:23:04 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49438->[::1]:6379: use of closed network connection
--- PASS: TestGetOAuthClients (0.18s)
=== RUN   TestCreateOAuthClient
=== RUN   TestCreateOAuthClient/API_does_not_exist
=== RUN   TestCreateOAuthClient/API_is_not_OAuth
=== RUN   TestCreateOAuthClient/no_api_id_but_policy_id_provided
=== RUN   TestCreateOAuthClient/no_policy_id_but_api_id_provided
=== RUN   TestCreateOAuthClient/policy_does_not_exist
redis: 2022/09/02 18:23:05 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49446->[::1]:6379: use of closed network connection
--- PASS: TestCreateOAuthClient (0.20s)
    --- 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)
    --- PASS: TestCreateOAuthClient/no_policy_id_but_api_id_provided (0.00s)
    --- PASS: TestCreateOAuthClient/policy_does_not_exist (0.00s)
=== RUN   TestUpdateOauthClientHandler
=== RUN   TestUpdateOauthClientHandler/Update_description
=== RUN   TestUpdateOauthClientHandler/Secret_remains_the_same
=== RUN   TestUpdateOauthClientHandler/Secret_cannot_be_updated
redis: 2022/09/02 18:23:05 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49454->[::1]:6379: use of closed network connection
--- PASS: TestUpdateOauthClientHandler (0.20s)
    --- PASS: TestUpdateOauthClientHandler/Update_description (0.00s)
    --- PASS: TestUpdateOauthClientHandler/Secret_remains_the_same (0.00s)
    --- PASS: TestUpdateOauthClientHandler/Secret_cannot_be_updated (0.00s)
=== RUN   TestGroupResetHandler
redis: 2022/09/02 18:23:05 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49462->[::1]:6379: use of closed network connection
redis: 2022/09/02 18:23:05 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49464->[::1]:6379: use of closed network connection
--- PASS: TestGroupResetHandler (0.21s)
=== RUN   TestHotReloadSingle
redis: 2022/09/02 18:23:05 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49472->[::1]:6379: use of closed network connection
--- PASS: TestHotReloadSingle (0.16s)
=== RUN   TestContextData
--- PASS: TestContextData (0.00s)
=== RUN   TestContextSession
redis: 2022/09/02 18:23:05 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49480->[::1]:6379: use of closed network connection
--- PASS: TestContextSession (0.13s)
=== RUN   TestApiLoaderLongestPathFirst
redis: 2022/09/02 18:23:06 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49490->[::1]:6379: use of closed network connection
--- PASS: TestApiLoaderLongestPathFirst (0.35s)
=== RUN   TestRotateClientSecretHandler
=== RUN   TestRotateClientSecretHandler/Secret_can_be_rotated
redis: 2022/09/02 18:23:06 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49498->[::1]:6379: use of closed network connection
--- PASS: TestRotateClientSecretHandler (0.21s)
    --- 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/09/02 18:23:06 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49508->[::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/09/02 18:23:06 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49516->[::1]:6379: use of closed network connection
--- PASS: TestHandleUpdateApi (0.22s)
    --- PASS: TestHandleUpdateApi/should_return_error_when_api_definition_json_is_invalid (0.00s)
    --- PASS: TestHandleUpdateApi/should_return_error_when_api_ids_are_different (0.01s)
    --- 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/09/02 18:23:06 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49524->[::1]:6379: use of closed network connection
--- PASS: TestDeleteAPI (0.15s)
    --- 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
    api_test.go:2268: [0] Response body does not match with regex `{.*"info":{"title":"oas-updated oas doc".*"x-tyk-api-gateway":{"info":{.*"name":"oas-updated oas api"`. {"components":{},"info":{"title":"oas doc","version":"1"},"openapi":"3.0.3","paths":{},"servers":[{"url":"http://127.0.0.1:45993/oas-api/"}],"x-tyk-api-gateway":{"info":{"id":"oas-api-id","name":"oas-updated oas api","state":{"active":false}},"upstream":{"url":""},"server":{"listenPath":{"value":"/oas-updated"},"gatewayTags":{"enabled":true,"tags":["rainbow"]}}}}
        . 
redis: 2022/09/02 18:23:07 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:49532->[::1]:6379: use of closed network connection
--- FAIL: TestOAS (0.89s)
    --- 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.08s)
    --- FAIL: TestOAS/update (0.50s)
        --- PASS: TestOAS/update/old_api (0.28s)
            --- PASS: TestOAS/update/old_api/with_old (0.16s)
                --- 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)
        --- FAIL: TestOAS/update/oas_api (0.22s)
            --- 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)
            --- FAIL: TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled (0.21s)
                --- FAIL: TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled/get (0.00s)
                    --- FAIL: TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled/get/in_oas (0.00s)
=== CONT  TestGatewayTagsFilter
--- PASS: TestGatewayTagsFilter (0.00s)
FAIL
coverage: 31.1% of statements
FAIL	github.com/TykTechnologies/tyk/gateway	19.128s
FAIL

gofmt

all ok

goimports

gateway/server.go

gogenerate

all ok

If the above are ok, please look at the run or in the Checks tab.

github-actions[bot] avatar Sep 02 '22 18:09 github-actions[bot]

:boom: CI tests failed :see_no_evil:

CI test log

Building go plugin
../../../go/pkg/mod/github.com/!masterminds/[email protected]+incompatible/crypto.go:30:2: missing go.sum entry for module providing package github.com/google/uuid (imported by github.com/Masterminds/sprig); to add:
	go get github.com/Masterminds/[email protected]+incompatible
../../../go/pkg/mod/github.com/!masterminds/[email protected]+incompatible/functions.go:15:2: missing go.sum entry for module providing package github.com/huandu/xstrings (imported by github.com/Masterminds/sprig); to add:
	go get github.com/Masterminds/[email protected]+incompatible
../../../go/pkg/mod/github.com/!masterminds/[email protected]+incompatible/dict.go:4:2: missing go.sum entry for module providing package github.com/imdario/mergo (imported by github.com/Masterminds/sprig); to add:
	go get github.com/Masterminds/[email protected]+incompatible
../../../go/pkg/mod/github.com/!masterminds/[email protected]+incompatible/dict.go:5:2: missing go.sum entry for module providing package github.com/mitchellh/copystructure (imported by github.com/Masterminds/sprig); to add:
	go get github.com/Masterminds/[email protected]+incompatible

gofmt

all ok

goimports

gateway/server.go

gogenerate

all ok

If the above are ok, please look at the run or in the Checks tab.

github-actions[bot] avatar Sep 02 '22 18:09 github-actions[bot]

API tests result: success :white_check_mark: Branch used: refs/pull/4284/merge Commit:
Triggered by: pull_request (@titpetric) Execution page

Tyk-ITS avatar Sep 02 '22 18:09 Tyk-ITS

: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=certs.cov github.com/TykTechnologies/tyk/certs
go: downloading github.com/stretchr/testify v1.8.0
=== RUN   TestAddCertificate
=== RUN   TestAddCertificate/empty_cert
time="2022-09-02T18:37:42Z" level=error msg="Failed to decode certificate. It should be PEM encoded." prefix=cert_storage
=== RUN   TestAddCertificate/invalid_cert:_pem
time="2022-09-02T18:37:42Z" level=error msg="Failed to decode certificate. It should be PEM encoded." prefix=cert_storage
=== RUN   TestAddCertificate/invalid_cert:_asn1
time="2022-09-02T18:37:42Z" level=error msg="asn1: syntax error: truncated tag or length" prefix=cert_storage
=== RUN   TestAddCertificate/valid_cert_1
=== RUN   TestAddCertificate/tls:_wrong_private
time="2022-09-02T18:37:42Z" level=error msg="tls: private key does not match public key" prefix=cert_storage
=== RUN   TestAddCertificate/valid_cert_2
=== RUN   TestAddCertificate/combined_pem_exists
=== RUN   TestAddCertificate/valid_public_pem
=== RUN   TestAddCertificate/expired_cert
time="2022-09-02T18:37:42Z" level=error msg="certificate is expired" prefix=cert_storage
--- PASS: TestAddCertificate (1.50s)
    --- PASS: TestAddCertificate/empty_cert (0.00s)
    --- PASS: TestAddCertificate/invalid_cert:_pem (0.00s)
    --- PASS: TestAddCertificate/invalid_cert:_asn1 (0.00s)
    --- PASS: TestAddCertificate/valid_cert_1 (0.00s)
    --- PASS: TestAddCertificate/tls:_wrong_private (0.00s)
    --- PASS: TestAddCertificate/valid_cert_2 (0.00s)
    --- PASS: TestAddCertificate/combined_pem_exists (0.00s)
    --- PASS: TestAddCertificate/valid_public_pem (0.00s)
    --- PASS: TestAddCertificate/expired_cert (0.00s)
=== RUN   TestCertificateStorage
=== RUN   TestCertificateStorage/File_certificates
time="2022-09-02T18:37:44Z" 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.73s)
    --- 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.49s)
PASS
coverage: 49.0% of statements
ok  	github.com/TykTechnologies/tyk/certs	3.766s	coverage: 49.0% 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="Sep 02 18:37:47" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Sep 02 18:37:47" level=warning msg="Using default bundle path 'bundle.zip'" prefix=tyk
time="Sep 02 18:37:47" level=warning msg="The bundle will be unsigned" prefix=tyk
time="Sep 02 18:37:47" level=info msg="Wrote 'bundle.zip' (377 bytes)" prefix=tyk
--- PASS: TestCommands (0.01s)
=== RUN   TestBuild
=== RUN   TestBuild/Bundle_errors
time="Sep 02 18:37:47" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Sep 02 18:37:47" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Sep 02 18:37:47" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Sep 02 18:37:47" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Sep 02 18:37:47" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
=== RUN   TestBuild/Simple_bundle_build
time="Sep 02 18:37:47" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Sep 02 18:37:47" level=warning msg="Using default bundle path 'bundle.zip'" prefix=tyk
time="Sep 02 18:37:47" level=warning msg="The bundle will be unsigned" prefix=tyk
time="Sep 02 18:37:47" 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: 71.4% of statements
ok  	github.com/TykTechnologies/tyk/cli/bundler	0.064s	coverage: 71.4% 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.24s)
    --- 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.01s)
    --- PASS: TestLint/NullObject (0.01s)
    --- PASS: TestLint/MissingPath (0.02s)
    --- 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.02s)
    --- PASS: TestLint/ExtraDnsCacheCheckInterval (0.01s)
    --- PASS: TestLint/InvalidDnsCacheMultipleIPsHandleStrategy (0.01s)
PASS
coverage: 89.8% of statements
ok  	github.com/TykTechnologies/tyk/cli/linter	0.281s	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="Sep 02 18:37:50" level=warning msg="No config file found, writing default to /tmp/tyk408120626/tyk1.conf"
time="Sep 02 18:37:50" 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="Sep 02 18:37:50" 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   TestCustomCertsDataDecoder
--- PASS: TestCustomCertsDataDecoder (0.00s)
=== RUN   TestPortsWhiteListDecoder
--- PASS: TestPortsWhiteListDecoder (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: 68.8% of statements
ok  	github.com/TykTechnologies/tyk/config	0.164s	coverage: 68.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="Sep 02 18:37:54" level=info msg="starting test"
time="Sep 02 18:37:54" 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/09/02 18:37:55 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35830->[::1]:6379: use of closed network connection
--- PASS: TestGRPCDispatch (0.34s)
    --- 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/09/02 18:37:55 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35840->[::1]:6379: use of closed network connection
--- PASS: TestGRPCIgnore (0.30s)
PASS
coverage: [no statements]
ok  	github.com/TykTechnologies/tyk/coprocess/grpc	0.971s	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="Sep 02 18:37: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/09/02 18:38:07 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35848->[::1]:6379: use of closed network connection
--- PASS: TestPythonBundles (7.77s)
    --- PASS: TestPythonBundles/Single-file_bundle_with_authentication_hook (2.13s)
    --- PASS: TestPythonBundles/Auth_with_policy (1.09s)
    --- PASS: TestPythonBundles/Single-file_bundle_with_post_hook (1.10s)
    --- PASS: TestPythonBundles/Single-file_bundle_with_response_hook (1.10s)
    --- PASS: TestPythonBundles/Single-file_bundle_with_pre_hook_and_UTF-8/non-UTF-8_request_data (1.10s)
    --- PASS: TestPythonBundles/python_post_hook_with_url_rewrite_and_method_transform (1.12s)
PASS
coverage: [no statements]
ok  	github.com/TykTechnologies/tyk/coprocess/python	8.097s	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.21s)
=== RUN   TestInit
    main_test.go:33: Library path is /opt/hostedtoolcache/Python/3.5.10/x64/lib/libpython3.5m.so
--- PASS: TestInit (0.14s)
PASS
coverage: 54.7% of statements
ok  	github.com/TykTechnologies/tyk/dlpython	0.382s	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.706s	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="Sep 02 18:38:40" level=info msg="starting test"
time="Sep 02 18:38:40" level=info msg="Rich plugins are disabled" prefix=coprocess
=== RUN   TestGoAnalyticsPlugin/just_enabled_without_other_parameters_set
redis: 2022/09/02 18:38:41 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35856->[::1]:6379: use of closed network connection
--- PASS: TestGoAnalyticsPlugin (0.18s)
    --- 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/09/02 18:38:41 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35864->[::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/09/02 18:38:42 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35874->[::1]:6379: use of closed network connection
--- PASS: TestAnalytics_Write (1.29s)
    --- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack (0.65s)
        --- 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.08s)
        --- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_only_key_flag_set (0.08s)
        --- 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.08s)
        --- PASS: TestAnalytics_Write/Testing_analytics_flows_with_msgpack/Detailed_analytics_with_cache (0.10s)
    --- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf (0.63s)
        --- 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.08s)
        --- 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.08s)
        --- PASS: TestAnalytics_Write/Testing_analytics_flows_with_protobuf/Detailed_analytics_with_cache (0.10s)
=== RUN   TestGeoIPLookup
redis: 2022/09/02 18:38:42 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35886->[::1]:6379: use of closed network connection
--- PASS: TestGeoIPLookup (0.11s)
=== RUN   TestURLReplacer
redis: 2022/09/02 18:38:42 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35896->[::1]:6379: use of closed network connection
--- PASS: TestURLReplacer (0.11s)
=== RUN   TestTagHeaders
--- PASS: TestTagHeaders (0.00s)
=== RUN   TestURLRewrites
=== RUN   TestURLRewrites/Extended_Paths_with_url_rewrites
redis: 2022/09/02 18:38:42 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35904->[::1]:6379: use of closed network connection
--- PASS: TestURLRewrites (0.16s)
    --- 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/09/02 18:38:43 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35912->[::1]:6379: use of closed network connection
--- PASS: TestWhitelist (0.50s)
    --- PASS: TestWhitelist/Extended_Paths (0.07s)
    --- PASS: TestWhitelist/Simple_Paths (0.06s)
    --- PASS: TestWhitelist/Test_#1944 (0.07s)
    --- PASS: TestWhitelist/Case_Sensitivity (0.07s)
    --- PASS: TestWhitelist/Listen_path_matches (0.06s)
    --- 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/09/02 18:38:43 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35920->[::1]:6379: use of closed network connection
--- PASS: TestBlacklist (0.41s)
    --- PASS: TestBlacklist/Extended_Paths (0.06s)
    --- PASS: TestBlacklist/Simple_Paths (0.05s)
    --- PASS: TestBlacklist/Case_Sensitivity (0.07s)
    --- PASS: TestBlacklist/Listen_path_matches (0.06s)
    --- PASS: TestBlacklist/Disabled (0.05s)
=== RUN   TestConflictingPaths
redis: 2022/09/02 18:38:43 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35932->[::1]:6379: use of closed network connection
--- PASS: TestConflictingPaths (0.18s)
=== 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/09/02 18:38:44 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35940->[::1]:6379: use of closed network connection
--- PASS: TestIgnored (0.60s)
    --- PASS: TestIgnored/Extended_Paths (0.07s)
    --- PASS: TestIgnored/Simple_Paths (0.06s)
    --- PASS: TestIgnored/With_URL_rewrite (0.07s)
    --- PASS: TestIgnored/Case_Sensitivity (0.25s)
        --- PASS: TestIgnored/Case_Sensitivity/ignore-case_globally (0.06s)
        --- PASS: TestIgnored/Case_Sensitivity/ignore-case_in_api_level (0.08s)
    --- 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/09/02 18:38:44 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35950->[::1]:6379: use of closed network connection
--- PASS: TestNewMockResponse (0.21s)
    --- PASS: TestNewMockResponse/protected (0.00s)
    --- PASS: TestNewMockResponse/keyless (0.05s)
=== RUN   TestWhitelistMethodWithAdditionalMiddleware
=== RUN   TestWhitelistMethodWithAdditionalMiddleware/Extended_Paths
redis: 2022/09/02 18:38:44 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35958->[::1]:6379: use of closed network connection
--- PASS: TestWhitelistMethodWithAdditionalMiddleware (0.16s)
    --- PASS: TestWhitelistMethodWithAdditionalMiddleware/Extended_Paths (0.05s)
=== RUN   TestSyncAPISpecsDashboardSuccess
redis: 2022/09/02 18:38:44 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35966->[::1]:6379: use of closed network connection
--- PASS: TestSyncAPISpecsDashboardSuccess (0.15s)
=== RUN   TestRoundRobin
--- PASS: TestRoundRobin (0.00s)
=== RUN   TestDefaultVersion
redis: 2022/09/02 18:38:45 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35974->[::1]:6379: use of closed network connection
--- PASS: TestDefaultVersion (0.17s)
=== RUN   TestGetVersionFromRequest
=== RUN   TestGetVersionFromRequest/Header_location
=== RUN   TestGetVersionFromRequest/Header_location/strip_versioning_data
redis: 2022/09/02 18:38:45 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35982->[::1]:6379: use of closed network connection
=== RUN   TestGetVersionFromRequest/URL_param_location
=== RUN   TestGetVersionFromRequest/URL_param_location/strip_versioning_data
redis: 2022/09/02 18:38:45 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35990->[::1]:6379: use of closed network connection
=== RUN   TestGetVersionFromRequest/URL_location
=== RUN   TestGetVersionFromRequest/URL_location/strip_versioning_data
redis: 2022/09/02 18:38:45 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:35998->[::1]:6379: use of closed network connection
--- PASS: TestGetVersionFromRequest (0.62s)
    --- PASS: TestGetVersionFromRequest/Header_location (0.21s)
        --- PASS: TestGetVersionFromRequest/Header_location/strip_versioning_data (0.05s)
    --- PASS: TestGetVersionFromRequest/URL_param_location (0.21s)
        --- PASS: TestGetVersionFromRequest/URL_param_location/strip_versioning_data (0.05s)
    --- PASS: TestGetVersionFromRequest/URL_location (0.21s)
        --- PASS: TestGetVersionFromRequest/URL_location/strip_versioning_data (0.05s)
=== RUN   TestSyncAPISpecsDashboardJSONFailure
redis: 2022/09/02 18:38:45 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36006->[::1]:6379: use of closed network connection
--- PASS: TestSyncAPISpecsDashboardJSONFailure (0.18s)
=== RUN   TestAPIDefinitionLoader
=== RUN   TestAPIDefinitionLoader/processRPCDefinitions_invalid
=== RUN   TestAPIDefinitionLoader/processRPCDefinitions_zero
=== RUN   TestAPIDefinitionLoader/loadFileTemplate
=== RUN   TestAPIDefinitionLoader/loadBlobTemplate
redis: 2022/09/02 18:38:46 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36016->[::1]:6379: use of closed network connection
--- PASS: TestAPIDefinitionLoader (0.11s)
    --- PASS: TestAPIDefinitionLoader/processRPCDefinitions_invalid (0.00s)
    --- PASS: TestAPIDefinitionLoader/processRPCDefinitions_zero (0.00s)
    --- PASS: TestAPIDefinitionLoader/loadFileTemplate (0.00s)
    --- PASS: TestAPIDefinitionLoader/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/09/02 18:38:46 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36026->[::1]:6379: use of closed network connection
--- PASS: TestAPIExpiration (0.31s)
    --- PASS: TestAPIExpiration/versioning=false (0.10s)
        --- PASS: TestAPIExpiration/versioning=false/not_expired (0.05s)
        --- PASS: TestAPIExpiration/versioning=false/expired (0.05s)
    --- PASS: TestAPIExpiration/versioning=true (0.10s)
        --- PASS: TestAPIExpiration/versioning=true/not_expired (0.05s)
        --- PASS: TestAPIExpiration/versioning=true/expired (0.05s)
=== 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   TestAPISpec_GetSessionLifetimeRespectsKeyExpiration
=== RUN   TestAPISpec_GetSessionLifetimeRespectsKeyExpiration/GetSessionLifetimeRespectsKeyExpiration=false
=== RUN   TestAPISpec_GetSessionLifetimeRespectsKeyExpiration/GetSessionLifetimeRespectsKeyExpiration=true
--- PASS: TestAPISpec_GetSessionLifetimeRespectsKeyExpiration (0.00s)
    --- PASS: TestAPISpec_GetSessionLifetimeRespectsKeyExpiration/GetSessionLifetimeRespectsKeyExpiration=false (0.00s)
    --- PASS: TestAPISpec_GetSessionLifetimeRespectsKeyExpiration/GetSessionLifetimeRespectsKeyExpiration=true (0.00s)
=== RUN   TestOpenTracing
=== RUN   TestOpenTracing/ensure_the_manager_is_enabled
=== RUN   TestOpenTracing/ensure_services_are_initialized
redis: 2022/09/02 18:38:46 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36034->[::1]:6379: use of closed network connection
--- PASS: TestOpenTracing (0.17s)
    --- PASS: TestOpenTracing/ensure_the_manager_is_enabled (0.00s)
    --- PASS: TestOpenTracing/ensure_services_are_initialized (0.05s)
=== RUN   TestInternalAPIUsage
=== RUN   TestInternalAPIUsage/with_name
=== RUN   TestInternalAPIUsage/with_api_id
redis: 2022/09/02 18:38:46 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36042->[::1]:6379: use of closed network connection
--- PASS: TestInternalAPIUsage (0.22s)
    --- PASS: TestInternalAPIUsage/with_name (0.01s)
    --- 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/09/02 18:38:46 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36050->[::1]:6379: use of closed network connection
--- PASS: TestFuzzyFindAPI (0.18s)
    --- 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/09/02 18:38:49 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36058->[::1]:6379: use of closed network connection
--- PASS: TestGraphQLPlayground (2.60s)
    --- PASS: TestGraphQLPlayground/on-premise (1.22s)
        --- PASS: TestGraphQLPlayground/on-premise/playground_path_is_empty (0.21s)
            --- 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.14s)
            --- 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.21s)
            --- 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.14s)
            --- 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.20s)
            --- 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.14s)
            --- 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.20s)
            --- 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.13s)
            --- 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.20s)
            --- 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.14s)
            --- 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.20s)
            --- 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.14s)
            --- PASS: TestGraphQLPlayground/on-premise/playground_path_is_'aaa'/should_get_error_on_post_request_to_playground_path (0.00s)
    --- PASS: TestGraphQLPlayground/cloud (1.27s)
        --- PASS: TestGraphQLPlayground/cloud/playground_path_is_empty (0.21s)
            --- 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.14s)
            --- 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.21s)
            --- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/'/playground_html_is_loaded (0.00s)
            --- PASS: TestGraphQLPlayground/cloud/playground_path_is_'/'/playground.js_is_loaded (0.15s)
            --- 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.21s)
            --- 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.15s)
            --- 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.21s)
            --- 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.15s)
            --- 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.21s)
            --- 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.15s)
            --- 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.21s)
            --- 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.14s)
            --- 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/09/02 18:38:49 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36066->[::1]:6379: use of closed network connection
--- PASS: TestCORS (0.34s)
    --- PASS: TestCORS/CORS_disabled (0.00s)
    --- PASS: TestCORS/CORS_enabled (0.06s)
    --- PASS: TestCORS/oauth_endpoints (0.11s)
        --- PASS: TestCORS/oauth_endpoints/CORS_disabled (0.00s)
        --- PASS: TestCORS/oauth_endpoints/CORS_enabled (0.06s)
=== RUN   TestTykRateLimitsStatusOfAPI
redis: 2022/09/02 18:38:49 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36074->[::1]:6379: use of closed network connection
--- PASS: TestTykRateLimitsStatusOfAPI (0.16s)
=== RUN   TestPolicyAPI
redis: 2022/09/02 18:38:50 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36082->[::1]:6379: use of closed network connection
--- PASS: TestPolicyAPI (0.27s)
=== RUN   TestHealthCheckEndpoint
redis: 2022/09/02 18:38:50 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36092->[::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/09/02 18:38:50 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36100->[::1]:6379: use of closed network connection
--- PASS: TestApiHandlerPostDupPath (0.32s)
    --- PASS: TestApiHandlerPostDupPath/Sequentieal_order (0.10s)
    --- PASS: TestApiHandlerPostDupPath/Should_re-order (0.05s)
    --- PASS: TestApiHandlerPostDupPath/Restore_original_order (0.06s)
=== 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/09/02 18:38:50 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36108->[::1]:6379: use of closed network connection
--- PASS: TestKeyHandler (0.24s)
    --- 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.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/09/02 18:38:51 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36116->[::1]:6379: use of closed network connection
--- PASS: TestKeyHandler_UpdateKey (0.22s)
    --- 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.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/09/02 18:38:51 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36124->[::1]:6379: use of closed network connection
--- PASS: TestUpdateKeyWithCert (0.51s)
    --- PASS: TestUpdateKeyWithCert/Update_key_with_valid_cert (0.18s)
    --- PASS: TestUpdateKeyWithCert/Update_key_with_empty_cert (0.06s)
    --- PASS: TestUpdateKeyWithCert/Update_key_with_invalid_cert (0.11s)
=== 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/09/02 18:38:51 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36132->[::1]:6379: use of closed network connection
--- PASS: TestKeyHandler_CheckKeysNotDuplicateOnUpdate (0.20s)
    --- 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.01s)
    --- 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/09/02 18:38:52 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36140->[::1]:6379: use of closed network connection
--- PASS: TestHashKeyListingDisabled (0.22s)
    --- 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   TestSessionLifetimeRespectsKeyExpiration
=== RUN   TestSessionLifetimeRespectsKeyExpiration/override_session_lifetime_with_api_level
=== RUN   TestSessionLifetimeRespectsKeyExpiration/respect_key_expiration
redis: 2022/09/02 18:38:54 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36148->[::1]:6379: use of closed network connection
--- PASS: TestSessionLifetimeRespectsKeyExpiration (2.23s)
    --- PASS: TestSessionLifetimeRespectsKeyExpiration/override_session_lifetime_with_api_level (1.06s)
    --- PASS: TestSessionLifetimeRespectsKeyExpiration/respect_key_expiration (1.06s)
=== RUN   TestInvalidateCache
redis: 2022/09/02 18:38:54 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36156->[::1]:6379: use of closed network connection
--- PASS: TestInvalidateCache (0.17s)
=== RUN   TestGetOAuthClients
redis: 2022/09/02 18:38:54 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36164->[::1]:6379: use of closed network connection
--- PASS: TestGetOAuthClients (0.18s)
=== RUN   TestCreateOAuthClient
=== RUN   TestCreateOAuthClient/no_api_id_but_policy_id_provided
=== 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
redis: 2022/09/02 18:38:54 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36172->[::1]:6379: use of closed network connection
--- PASS: TestCreateOAuthClient (0.20s)
    --- PASS: TestCreateOAuthClient/no_api_id_but_policy_id_provided (0.00s)
    --- 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)
=== RUN   TestUpdateOauthClientHandler
=== RUN   TestUpdateOauthClientHandler/Secret_remains_the_same
=== RUN   TestUpdateOauthClientHandler/Secret_cannot_be_updated
=== RUN   TestUpdateOauthClientHandler/Update_description
redis: 2022/09/02 18:38:55 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36182->[::1]:6379: use of closed network connection
--- PASS: TestUpdateOauthClientHandler (0.19s)
    --- PASS: TestUpdateOauthClientHandler/Secret_remains_the_same (0.00s)
    --- PASS: TestUpdateOauthClientHandler/Secret_cannot_be_updated (0.00s)
    --- PASS: TestUpdateOauthClientHandler/Update_description (0.00s)
=== RUN   TestGroupResetHandler
redis: 2022/09/02 18:38:55 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36190->[::1]:6379: use of closed network connection
redis: 2022/09/02 18:38:55 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36192->[::1]:6379: use of closed network connection
--- PASS: TestGroupResetHandler (0.19s)
=== RUN   TestHotReloadSingle
redis: 2022/09/02 18:38:55 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36200->[::1]:6379: use of closed network connection
--- PASS: TestHotReloadSingle (0.15s)
=== RUN   TestContextData
--- PASS: TestContextData (0.00s)
=== RUN   TestContextSession
redis: 2022/09/02 18:38:55 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36208->[::1]:6379: use of closed network connection
--- PASS: TestContextSession (0.12s)
=== RUN   TestApiLoaderLongestPathFirst
redis: 2022/09/02 18:38:55 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36216->[::1]:6379: use of closed network connection
--- PASS: TestApiLoaderLongestPathFirst (0.31s)
=== RUN   TestRotateClientSecretHandler
=== RUN   TestRotateClientSecretHandler/Secret_can_be_rotated
redis: 2022/09/02 18:38:56 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36224->[::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/09/02 18:38:56 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36232->[::1]:6379: use of closed network connection
--- PASS: TestHandleAddApi (0.14s)
    --- 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/09/02 18:38:56 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36240->[::1]:6379: use of closed network connection
--- PASS: TestHandleUpdateApi (0.18s)
    --- 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/09/02 18:38:56 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36250->[::1]:6379: use of closed network connection
--- PASS: TestDeleteAPI (0.13s)
    --- 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
    api_test.go:2268: [0] Response body does not match with regex `{.*"info":{"title":"oas-updated oas doc".*"x-tyk-api-gateway":{"info":{.*"name":"oas-updated oas api"`. {"components":{},"info":{"title":"oas doc","version":"1"},"openapi":"3.0.3","paths":{},"servers":[{"url":"http://127.0.0.1:34233/oas-api/"}],"x-tyk-api-gateway":{"info":{"id":"oas-api-id","name":"oas-updated oas api","state":{"active":false}},"upstream":{"url":""},"server":{"listenPath":{"value":"/oas-updated"},"gatewayTags":{"enabled":true,"tags":["rainbow"]}}}}
        . 
redis: 2022/09/02 18:38:57 pubsub.go:159: redis: discarding bad PubSub connection: read tcp [::1]:36258->[::1]:6379: use of closed network connection
--- FAIL: TestOAS (0.74s)
    --- 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.07s)
    --- FAIL: TestOAS/update (0.42s)
        --- PASS: TestOAS/update/old_api (0.23s)
            --- PASS: TestOAS/update/old_api/with_old (0.14s)
                --- 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)
        --- FAIL: TestOAS/update/oas_api (0.19s)
            --- 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)
            --- FAIL: TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled (0.18s)
                --- FAIL: TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled/get (0.00s)
                    --- FAIL: TestOAS/update/oas_api/with_oas_and_gateway_tags_enabled/get/in_oas (0.00s)
=== CONT  TestGatewayTagsFilter
--- PASS: TestGatewayTagsFilter (0.00s)
FAIL
coverage: 31.2% of statements
FAIL	github.com/TykTechnologies/tyk/gateway	16.786s
FAIL

gofmt

all ok

goimports

gateway/server.go

gogenerate

all ok

If the above are ok, please look at the run or in the Checks tab.

github-actions[bot] avatar Sep 02 '22 18:09 github-actions[bot]

API tests result: success :white_check_mark: Branch used: refs/pull/4284/merge Commit: 686f77f1a04f6ce70a54c27799c326d52b2ed41e Triggered by: pull_request (@titpetric) Execution page

Tyk-ITS avatar Sep 02 '22 18:09 Tyk-ITS

API tests result: success :white_check_mark: Branch used: refs/pull/4284/merge Commit: 577cf6c2742882fae968c204cc1b0d6ee30933bd Triggered by: pull_request (@titpetric) Execution page

Tyk-ITS avatar Sep 02 '22 18:09 Tyk-ITS