From 4e744f0f5d57f94f465b615959123f725aed2d12 Mon Sep 17 00:00:00 2001 From: Paul Yu Date: Mon, 22 Jul 2024 22:10:23 -0700 Subject: [PATCH] chore: vendor dependency cleanup Signed-off-by: Paul Yu --- go.mod | 15 +- go.sum | 39 +- .../messaging/azeventgrid/internal/version.go | 2 +- .../messaging/azeventgrid/publisher/README.md | 2 - .../sdk/messaging/azservicebus/CHANGELOG.md | 6 - .../azservicebus/internal/conn/conn.go | 7 +- .../azservicebus/internal/constants.go | 2 +- .../testdata/client_intermediate_cert.der | Bin 998 -> 0 bytes .../testdata/client_leaf_cert.der | Bin 1147 -> 0 bytes .../testdata/client_root_cert.der | Bin 1013 -> 0 bytes .../testdata/server_intermediate_cert.der | Bin 998 -> 0 bytes .../testdata/server_leaf_cert.der | Bin 1147 -> 0 bytes .../testdata/server_root_cert.der | Bin 1013 -> 0 bytes .../v2/remotesigner/testdata/client_cert.der | Bin 1013 -> 0 bytes .../v2/remotesigner/testdata/client_cert.pem | 24 -- .../v2/remotesigner/testdata/client_key.pem | 27 -- .../v2/remotesigner/testdata/server_cert.der | Bin 1013 -> 0 bytes .../v2/remotesigner/testdata/server_cert.pem | 24 -- .../v2/remotesigner/testdata/server_key.pem | 27 -- .../internal/v2/testdata/client_cert.pem | 24 -- .../internal/v2/testdata/client_key.pem | 27 -- .../internal/v2/testdata/server_cert.pem | 24 -- .../internal/v2/testdata/server_key.pem | 27 -- .../tlsconfigstore/testdata/client_cert.pem | 24 -- .../v2/tlsconfigstore/testdata/client_key.pem | 27 -- .../tlsconfigstore/testdata/server_cert.pem | 24 -- .../v2/tlsconfigstore/testdata/server_key.pem | 27 -- .../google/s2a-go/testdata/client_cert.pem | 24 -- .../google/s2a-go/testdata/client_key.pem | 27 -- .../s2a-go/testdata/mds_client_cert.pem | 19 - .../google/s2a-go/testdata/mds_client_key.pem | 28 -- .../google/s2a-go/testdata/mds_root_cert.pem | 21 - .../s2a-go/testdata/mds_server_cert.pem | 21 - .../google/s2a-go/testdata/mds_server_key.pem | 28 -- .../s2a-go/testdata/self_signed_cert.pem | 19 - .../s2a-go/testdata/self_signed_key.pem | 28 -- .../google/s2a-go/testdata/server_cert.pem | 24 -- .../google/s2a-go/testdata/server_key.pem | 27 -- .../valyala/fasthttp/examples/README.md | 4 - .../valyala/fasthttp/examples/client/Makefile | 6 - .../fasthttp/examples/client/README.md | 21 - .../fasthttp/examples/client/client.go | 132 ------ .../fasthttp/examples/fileserver/Makefile | 7 - .../fasthttp/examples/fileserver/README.md | 84 ---- .../examples/fileserver/fileserver.go | 120 ------ .../examples/fileserver/ssl-cert-snakeoil.pem | 17 - .../examples/helloworldserver/Makefile | 6 - .../examples/helloworldserver/README.md | 17 - .../helloworldserver/helloworldserver.go | 55 --- .../fasthttp/examples/host_client/Makefile | 6 - .../fasthttp/examples/host_client/README.md | 13 - .../examples/host_client/hostclient.go | 35 -- .../examples/letsencrypt/letsencryptserver.go | 41 -- .../fasthttp/examples/multidomain/Makefile | 6 - .../fasthttp/examples/multidomain/README.md | 15 - .../examples/multidomain/multidomain.go | 63 --- .../fasthttputil/inmemory_listener_test.go | 273 ------------ .../inmemory_listener_timing_test.go | 155 ------- .../fasthttp/fasthttputil/pipeconns_test.go | 407 ------------------ .../valyala/fasthttp/testdata/test.png | 1 - vendor/modules.txt | 4 +- 61 files changed, 44 insertions(+), 2089 deletions(-) delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_intermediate_cert.der delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_leaf_cert.der delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_root_cert.der delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_intermediate_cert.der delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_leaf_cert.der delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_root_cert.der delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_cert.der delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_key.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/server_cert.der delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/server_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/server_key.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/testdata/client_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/testdata/client_key.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/testdata/server_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/testdata/server_key.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/tlsconfigstore/testdata/client_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/tlsconfigstore/testdata/client_key.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/tlsconfigstore/testdata/server_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/tlsconfigstore/testdata/server_key.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/client_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/client_key.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/mds_client_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/mds_client_key.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/mds_root_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/mds_server_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/mds_server_key.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/self_signed_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/self_signed_key.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/server_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/server_key.pem delete mode 100644 vendor/github.com/valyala/fasthttp/examples/README.md delete mode 100644 vendor/github.com/valyala/fasthttp/examples/client/Makefile delete mode 100644 vendor/github.com/valyala/fasthttp/examples/client/README.md delete mode 100644 vendor/github.com/valyala/fasthttp/examples/client/client.go delete mode 100644 vendor/github.com/valyala/fasthttp/examples/fileserver/Makefile delete mode 100644 vendor/github.com/valyala/fasthttp/examples/fileserver/README.md delete mode 100644 vendor/github.com/valyala/fasthttp/examples/fileserver/fileserver.go delete mode 100644 vendor/github.com/valyala/fasthttp/examples/fileserver/ssl-cert-snakeoil.pem delete mode 100644 vendor/github.com/valyala/fasthttp/examples/helloworldserver/Makefile delete mode 100644 vendor/github.com/valyala/fasthttp/examples/helloworldserver/README.md delete mode 100644 vendor/github.com/valyala/fasthttp/examples/helloworldserver/helloworldserver.go delete mode 100644 vendor/github.com/valyala/fasthttp/examples/host_client/Makefile delete mode 100644 vendor/github.com/valyala/fasthttp/examples/host_client/README.md delete mode 100644 vendor/github.com/valyala/fasthttp/examples/host_client/hostclient.go delete mode 100644 vendor/github.com/valyala/fasthttp/examples/letsencrypt/letsencryptserver.go delete mode 100644 vendor/github.com/valyala/fasthttp/examples/multidomain/Makefile delete mode 100644 vendor/github.com/valyala/fasthttp/examples/multidomain/README.md delete mode 100644 vendor/github.com/valyala/fasthttp/examples/multidomain/multidomain.go delete mode 100644 vendor/github.com/valyala/fasthttp/fasthttputil/inmemory_listener_test.go delete mode 100644 vendor/github.com/valyala/fasthttp/fasthttputil/inmemory_listener_timing_test.go delete mode 100644 vendor/github.com/valyala/fasthttp/fasthttputil/pipeconns_test.go delete mode 100644 vendor/github.com/valyala/fasthttp/testdata/test.png diff --git a/go.mod b/go.mod index 44d578469c4..6f0f5867438 100644 --- a/go.mod +++ b/go.mod @@ -12,9 +12,13 @@ require ( github.com/Azure/azure-kusto-go v0.15.2 github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 + github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs v1.2.1 github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus v1.7.0 - github.com/Azure/azure-storage-blob-go v0.15.0 - github.com/Azure/azure-storage-queue-go v0.0.0-20230927153703-648530c9aaf2 + github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery v1.1.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.1.0 + github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.3.2 + github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue v1.0.0 github.com/Azure/go-autorest/autorest v0.11.29 github.com/Azure/go-autorest/autorest/azure/auth v0.5.12 github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 @@ -113,7 +117,10 @@ require ( sigs.k8s.io/kustomize/kustomize/v5 v5.4.1 ) -require filippo.io/edwards25519 v1.1.0 // indirect +require ( + filippo.io/edwards25519 v1.1.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.0 // indirect +) // Remove this when they merge the PR and cut a release https://github.com/open-policy-agent/cert-controller/pull/202 replace github.com/open-policy-agent/cert-controller => github.com/jorturfer/cert-controller v0.0.0-20240427003941-363ba56751d7 @@ -167,8 +174,6 @@ require ( cloud.google.com/go/auth/oauth2adapt v0.2.2 // indirect cloud.google.com/go/iam v1.1.7 // indirect code.cloudfoundry.org/clock v1.1.0 // indirect - filippo.io/edwards25519 v1.1.0 // indirect - github.com/Azure/azure-pipeline-go v0.2.3 // indirect github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventgrid v0.4.0 github.com/Azure/go-amqp v1.0.5 // indirect diff --git a/go.sum b/go.sum index 4a4832a1e66..b4733ecaa1f 100644 --- a/go.sum +++ b/go.sum @@ -1348,12 +1348,28 @@ github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hw github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventgrid v0.4.0 h1:d7S13DPk63SvBJfSUiMJJ26tRsvrBumkLPEfQEAarGk= github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventgrid v0.4.0/go.mod h1:7e/gsXp4INB4k/vg0h3UOkYpDK6oZqctxr+L05FGybg= +github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs v1.2.1 h1:0f6XnzroY1yCQQwxGf/n/2xlaBF02Qhof2as99dGNsY= +github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs v1.2.1/go.mod h1:vMGz6NOUGJ9h5ONl2kkyaqq5E0g7s4CHNSrXN5fl8UY= github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus v1.7.0 h1:QISzMrspEvZj4zrrN2wlNwfum5RmnKQhQNiSujwH7oU= github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus v1.7.0/go.mod h1:xNjFERdhyMqZncbNJSPBsTCddk5kwsUVUzELQPMj/LA= -github.com/Azure/azure-storage-blob-go v0.15.0 h1:rXtgp8tN1p29GvpGgfJetavIG0V7OgcSXPpwp3tx6qk= -github.com/Azure/azure-storage-blob-go v0.15.0/go.mod h1:vbjsVbX0dlxnRc4FFMPsS9BsJWPcne7GB7onqlPvz58= -github.com/Azure/azure-storage-queue-go v0.0.0-20230927153703-648530c9aaf2 h1:G6pzVaX36QLfGvbLSAt8Leb81MiONYT0L03lhABjrPg= -github.com/Azure/azure-storage-queue-go v0.0.0-20230927153703-648530c9aaf2/go.mod h1:K6am8mT+5iFXgingS9LUc7TmbsW6XBw3nxaRyaMyWc8= +github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery v1.1.0 h1:l+LIDHsZkFBiipIKhOn3m5/2MX4bwNwHYWyNulPaTis= +github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery v1.1.0/go.mod h1:BjVVBLUiZ/qR2a4PAhjs8uGXNfStD0tSxgxCMfcVRT8= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub v1.2.0 h1:+dggnR89/BIIlRlQ6d19dkhhdd/mQUiQbXhyHUFiB4w= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub v1.2.0/go.mod h1:tI9M2Q/ueFi287QRkdrhb9LHm6ZnXgkVYLRC3FhYkPw= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.1.1 h1:7CBQ+Ei8SP2c6ydQTGCCrS35bDxgTMfoP2miAwK++OU= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.1.1/go.mod h1:c/wcGeGx5FUPbM/JltUYHZcKmigwyVLJlDq+4HdtXaw= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.5.0 h1:AifHbc4mg0x9zW52WOpKbsHaDKuRhlI7TVl47thgQ70= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.5.0/go.mod h1:T5RfihdXtBDxt1Ch2wobif3TvzTdumDy29kahv6AV9A= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.1.0 h1:h4Zxgmi9oyZL2l8jeg1iRTqPloHktywWcu0nlJmo1tA= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.1.0/go.mod h1:LgLGXawqSreJz135Elog0ywTJDsm0Hz2k+N+6ZK35u8= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.0 h1:D3occbWoio4EBLkbkevetNMAVX197GkzbUMtqjGWn80= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.0/go.mod h1:bTSOgj05NGRuHHhQwAdPnYr9TOdNmKlZTgGLL6nyAdI= +github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.3.2 h1:YUUxeiOWgdAQE3pXt2H7QXzZs0q8UBjgRbl56qo8GYM= +github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.3.2/go.mod h1:dmXQgZuiSubAecswZE+Sm8jkvEa7kQgTPVRvwL/nd0E= +github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue v1.0.0 h1:lJwNFV+xYjHREUTHJKx/ZF6CJSt9znxmLw9DqSTvyRU= +github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue v1.0.0/go.mod h1:GfT0aGew8Qj5yiQVqOO5v7N8fanbJGyUoHqXg56qcVY= github.com/Azure/go-amqp v1.0.5 h1:po5+ljlcNSU8xtapHTe8gIc8yHxCzC03E8afH2g1ftU= github.com/Azure/go-amqp v1.0.5/go.mod h1:vZAogwdrkbyK3Mla8m/CxSc/aKdnTZ4IbPxl51Y5WZE= github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs= @@ -1914,16 +1930,15 @@ github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brv github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= -github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= -github.com/hashicorp/go-hclog v1.6.2 h1:NOtoftovWkDheyUM/8JW3QMiXyxJK3uHRK7wV04nD2I= -github.com/hashicorp/go-hclog v1.6.2/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= +github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/go-retryablehttp v0.7.5 h1:bJj+Pj19UZMIweq/iie+1u5YCdGrnxCT9yvm0e+Nd5M= -github.com/hashicorp/go-retryablehttp v0.7.5/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8= +github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU= +github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk= github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc= github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= @@ -2007,6 +2022,8 @@ github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnr github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/jstemmer/go-junit-report/v2 v2.1.0 h1:X3+hPYlSczH9IMIpSC9CQSZA0L+BipYafciZUWHEmsc= +github.com/jstemmer/go-junit-report/v2 v2.1.0/go.mod h1:mgHVr7VUo5Tn8OLVr1cKnLuEy0M92wdRntM99h7RkgQ= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/juju/gnuflag v0.0.0-20171113085948-2ce1bb71843d/go.mod h1:2PavIy+JPciBPrBUjwbNvtwB6RQlve+hkpll6QSNmOE= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= @@ -2058,7 +2075,6 @@ github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVc github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= -github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= @@ -2203,8 +2219,6 @@ github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/f github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= -github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= -github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58/go.mod h1:6lfFZQK844Gfx8o5WFuvpxWRwnSoipWe/p622j1v06w= @@ -2270,7 +2284,6 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventgrid/internal/version.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventgrid/internal/version.go index fd89cab620c..08e8f005d2a 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventgrid/internal/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventgrid/internal/version.go @@ -14,5 +14,5 @@ const ( ModuleName = "azeventgrid" // ModuleVersion is the semantic version (see http://semver.org) of this module. - ModuleVersion = "v0.5.0" + ModuleVersion = "v0.4.0" ) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventgrid/publisher/README.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventgrid/publisher/README.md index fc77f82e2d0..873680e7be8 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventgrid/publisher/README.md +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventgrid/publisher/README.md @@ -1,7 +1,5 @@ # Azure Event Grid Publisher Client Module for Go -**Please note this package has been moved to: [azeventgrid](https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/messaging/eventgrid/azeventgrid).** - [Azure Event Grid](https://learn.microsoft.com/azure/event-grid/overview) is a highly scalable, fully managed Pub Sub message distribution service that offers flexible message consumption patterns. For more information about Event Grid see: [link](https://learn.microsoft.com/azure/event-grid/overview). The client in this package can publish events to [Event Grid topics](https://learn.microsoft.com/azure/event-grid/concepts). diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/CHANGELOG.md index 988db23a29c..796215fa484 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/CHANGELOG.md +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/CHANGELOG.md @@ -1,11 +1,5 @@ # Release History -## 1.7.1 (2024-05-20) - -### Bugs Fixed - -- Emulator strings should allow for hosts other than localhost (PR#22898) - ## 1.7.0 (2024-04-02) ### Features Added diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/internal/conn/conn.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/internal/conn/conn.go index 4d11f9f1882..ce0e2610dfc 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/internal/conn/conn.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/internal/conn/conn.go @@ -100,13 +100,14 @@ func ParseConnectionString(connStr string) (ConnectionStringProperties, error) { } if csp.Emulator { + // check that they're only connecting to localhost endpointParts := strings.SplitN(csp.Endpoint, ":", 3) // allow for a port, if it exists. - if len(endpointParts) < 2 || endpointParts[0] != "sb" { - // there should always be at least two parts "sb:" and "//" + if len(endpointParts) < 2 || endpointParts[0] != "sb" || endpointParts[1] != "//localhost" { + // there should always be at least two parts "sb:" and "//localhost" // with an optional 3rd piece that's the port "1111". // (we don't need to validate it's a valid host since it's been through url.Parse() above) - return ConnectionStringProperties{}, fmt.Errorf("UseDevelopmentEmulator=true can only be used with sb:// or sb://:, not %s", csp.Endpoint) + return ConnectionStringProperties{}, fmt.Errorf("UseDevelopmentEmulator=true can only be used with sb://localhost or sb://localhost:, not %s", csp.Endpoint) } } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/internal/constants.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/internal/constants.go index f3079017326..a2402e48ac3 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/internal/constants.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/internal/constants.go @@ -4,4 +4,4 @@ package internal // Version is the semantic version number -const Version = "v1.7.1" +const Version = "v1.7.0" diff --git a/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_intermediate_cert.der b/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_intermediate_cert.der deleted file mode 100644 index 958f3cfaddf3645fa6c0578b5b6955d65ac4c172..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 998 zcmXqLVt!=M#B^!_GZP~dlZfxTkgMw#Mx5CteAhsdS=K*t&xAY!UN%mxHjlRNyo`+8 ztPBQ??S|Y2oNUaYENsF|p}{Z?2M?38qoI(207!`V#>K<# zoS$2em{(~iXuuB=;pX9R$t=q(&dkp<6f+P32{H5V78@nTm!uY##3!c~l^9AHNWiV< zWEA7BsH}1TV!h=2Tmw0AULzv|Gec7&Lt`^z^C)p%6J+ina%mHz5^^vyvNA9?G4eAQ zG%<29H8CnfQWlH+MyjTjz z2Bjk+Ub9TzT(Z$!`+w1f9a{SYn?h^$U$mDJKK^KOurlxGlhf8coXvjW^}bgt-rFjD znHJ|Xo9Wew;}%JlW_Kjsthc+chb^XXpU3LOdy_KCS4OTntgUFd?YsGkV{8gPCrIUU z7xZ1<|6Oe5g44&3J$ODp>G5YKW=00a#V!U;2J*mEAgjzGVIbBZvce&_^W7!+r|T*d zavIkkZ(n>dQ`LY6q(GR3)qt6i@xOr}h$qOxWx&zImXe>Fn2DZTf#J-^uui3sYst!# z{ImS~I{#0uS#WDz%!i-3yIxOGkACKhN$DyM2L{LbrkL@xJCpY3crHP)J~LHEx;nsZlX$z1Na++S~*x&F8L zSHsIX`Pf;-7fz4f$yxWfRV}c$Te2$X#22gkrUlwjtNp9{IiD}~zjo}z)1J=iJoj~z zPFk$n)~eK8B%5+0@w1g$N8H(l+-H4!LOMmyS_+%b`$^TD`}g=z?!9=Gts-l=GE2@y HTP6bly#{pd diff --git a/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_leaf_cert.der b/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_leaf_cert.der deleted file mode 100644 index d2817641bafb022339926786ab85b545f40ac665..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1147 zcmXqLVktLhVvb+H%*4pVB*OPMYW498DSV5WgVNVW|Jr8oCgimNFB_*;n@8JsUPeZ4 zRtAH{c0+ChPB!LH7B*p~&|nycgNMo4(NM@h03^fC!x>zfmseSqn3HNKV890w6yxnyM_06xZQcZ?W@M4y!->Y40>Qzg1y0 z&gNQpqF{|c>D+ZZ(rFIKEL_n{%!~|-iyLnkG+s4m+z3nvvdS!tD-9Z#Eo|&v(%3b4 zVzNoZ_g%=<^$R1;>=M3fAjvH2AGv2jo&gWY$-*qG2F#3%{|y8|JV6#N1CA!Pl>FSp z%sk}C2j(GQ()!XwH^ngbB~t_{rh@w&h5|n>_#Tt3odjy zuPCdY_u)fF^#8=jc^^+Q{aqN5`$@Gm({I-q6VU_LtQOD6naL>j(`V|D&;QI6%^$Dc z@$uH$=blqSKTV1FFaEpmVP=>@vvi*Y`l|mqO|ORNA0oIS8nOI z?NiA8%5=ljL@D29-OKpueEYz|zv5rHb554&taa#n7142tpUKWU?R-O_r^0)6j>G3Y aOB;Xxy<$H9NT-Uzt(mu6i*GEf3IzZ)c%0q< diff --git a/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_root_cert.der b/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_root_cert.der deleted file mode 100644 index d8c3710c85f9ff41ddfc709924c866350a727a4f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1013 zcmXqLV*Y5*#B_53GZP~dlZa+?pWMd9xVH0Kw4Tf@Xyh=ks1AdSQHxGwPW?5!&W`3Tbn1KjLh?$4C*eEf+B(=CCJ~_3h#8ApW0&YDg zqZoHZWt9UE>m}#s8pw(B8W|aw8XFoJ7#JIxMv3#90J%nHQ0^ddX%nLoaxgNoGB7tW z@-rATF>*0AF)}hdZr#y6M}F(|x(>G^%gcAlKWcTb*S((Se#vIyuMojqJ6T@W9G$-N zZ|C3aC}V-ru$PA$a>||`V5!;WvLO9;#Z4xLTYkS~Q%%)mH+DGbsA<2rr@8F$Psyk! zC02_czBy5RY)XCG=Yl1DX=(>VSrdJ-C#|hK7^zn?b35awX)f$Ntvf$$ zcUg9sL1fPSDbXqWt6$VVZu~MYZrj`2y}fI?80UuXsujC8ao09pzReSEFH3&Hjk;!&j?yPw^7|NHlfMLseyY=TyHB}&&4U!T;kt&%Ic z-@@f=`1w!pGyVU%zJI$PWGYXZ;?Bg($iTQb*dWkA7MKcT`B=nQL{>NicfPwM|8!l2 zLQdoQtUFt($qvv(cdI=i6tz3tUW`|a0C z&5N-8^H(H$?psgMz!}^;s& z=?+d?)Hkg%emvc~QLj+DwRvTMu)Tl4_m}{_7kTC1{xNsF-p9krsM-B)Ge_#Kiu#~{ zd67^5U(N6lVcaug+5}Tw2V+f_-BCNQyG;7WAZ_<^`6QjCrOhu7&ztq4tdo7t^%&>) zTR0VF*I2Sr HHQW{e5x{wf diff --git a/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_intermediate_cert.der b/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_intermediate_cert.der deleted file mode 100644 index dae619c097512f20d09d2054c63fc0f715d7be24..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 998 zcmXqLVt!=M#B^!_GZP~dlZZk6mxvepr#-!NVoqOL*`yn*LOZ7#@Un4gwRyCC=VfH% zW@RvFY&YaK;ACSCWnmL$3Jr#FICz+x9SwyH1VA$EJeHTH8JZfJT11KSnjmurkxQExm5_sxk(GhDiIJbd zpox)-sfm%1VO{t`EzVyWX$3+}`kJnrGQY>^=jnZyz4d%;|IQeuB_Gcfo1a{_>B5Fg zXYbI=4K*7QZdjc*51-)~EjRzyir2SPA5Z@zcTLeXV*g^*2f0P(7p>c z?c<>#uh>H(ryKBq6bQ4h8Za|5{x=W=@dR183^XGxLzc8JJvw;mpWjp+5Pu z!*lq#5Sb^i@`a>klJNjzx%iu)2*?h3yy-gEL(;p^g~mZo#n!wzh9Qua5C+wfRd ztarh_l9E{Oro7&WNVTl@3-~vy&EDU;)-f|r-8<&mQ>C=;``&D2+5V0(pW(g3o1}Sj z^gY793Mi&+ntK1`1tm%ENt=U{rb%k1PtbRHEhYTylqR?8HqOeuvA1fBY>pc~NUFTR KZE!sDzAgX``fm0B diff --git a/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_leaf_cert.der b/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_leaf_cert.der deleted file mode 100644 index ce7f8d31d6802c7e68c188af8797c3a063894857..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1147 zcmXqLVktLhVvb+H%*4pVB%&$)xidhT`$ARBi)~L`p2_`@+!*`b5acj4ER7|Ts-W~ z`MCv&d6kBO2K*oqZXOPo%(Bel%=|nTUzhK>3dC_Z(le%bCn$9moio9jI@8{ zd;5%c{XT!(ig$;5K+$bpwI6ChVmse+UV1r`!RY5*U#A%ppFJxS>PX#w$sz7*X_R~A zg!|$g&z66XI$)aW-TrxDio@fp!U^sS#+*GdHMB|H?BTf!^g~J_=D$Y-Ot{~xpTg~G+{k6 Zdr{DieczoQDL-a%Ib3(Tsv+bGCjf+Ap-TV& diff --git a/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_root_cert.der b/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_root_cert.der deleted file mode 100644 index 04b0d73600b72f80a03943d41973b279db9e8b32..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1013 zcmXqLV*Y5*#B_53GZP~dlZb{E^N!s~snriRh?%)HJiGKl>CAisUN%mxHjlRNyo`+8 ztPBQ??S|Y2oNUaYENsF|p}{Z?2M?38qoI(207!`V#>K<# zoS$2em{(~iXuuB=;pX9R$t=q(&dkp<6f+P32{H5V78@nTm!uY##3!c~l^9AHNWiV< zWEA7BsH}1TV!h=2Tmw0AULzv|Q)5FT0|N^q(aL-(RkWjuO*nCZC(^b4{cp%V+e53*PfoZW)2DU5BJN^Jypf0+ z%dyqB7eAAEDfH_&Z*6C3aP8^9M)sYbgC^`~v;4F5#oepTLYl5+2bdY(i!-?My>4G) z&8u+L`?_9LxQB1$HP?fpd*5i(-|SJJ!`sZHa8UZu(QeP3Dc(Yr8?G#iY20z>);Fh$ zMQ>DZHkC%KUBdEb&cYv;1sHCx@Vv~#%*epFIM^W2Ko*z^WcgUcSVVXxICA%7?w=9J zwOIRjXviz}kjUu<@*rtt76}8f2J8wz2}@R(k?}tZs{u2RLJoFd>IDWnBZI}4y?mP{ zW+WALO{`uTY0T-O8uy=9`&z_;*e^$wYu3!Wz-Re-&a7vV%g_8h++q8CMf&zxTFdl~ zp5i+{-R9L&+mdUFEBoKr@u=5M->UQ>MNWJ7BRi)4^M4~B*uKhe`J%yAbG&-Thr?bk zCap+`USuL4V}qf=6kBV_EFAN zmIn*31Qb`P{oxd|=2o5l$|&AdTJ_-*k&5oDQvTTOiN8OjczyHyta?pWMd9xVH0Kw4Tf@Xyh=ks1AdSQHxGwPW?5!&W`3Tbn1KjLh?$4C*eEf+B(=CCJ~_3h#8ApW0&YDg zqZoHZWt9UE>m}#s8pw(B8W|aw8XFoJ7#JIxMv3#90J%nHQ0^ddX%nLoaxgNoGB7tW z@-rATF>*0AF)}hdZr#y6M}F(|x(>G^%gcAlKWcTb*S((Se#vIyuMojqJ6T@W9G$-N zZ|C3aC}V-ru$PA$a>||`V5!;WvLO9;#Z4xLTYkS~Q%%)mH+DGbsA<2rr@8F$Psyk! zC02_czBy5RY)XCG=Yl1DX=(>VSrdJ-C#|hK7^zn?b35awX)f$Ntvf$$ zcUg9sL1fPSDbXqWt6$VVZu~MYZrj`2y}fI?80UuXsujC8ao09pzReSEFH3&Hjk;!&j?yPw^7|NHlfMLseyY=TyHB}&&4U!T;kt&%Ic z-@@f=`1w!pGyVU%zJI$PWGYXZ;?Bg($iTQb*dWkA7MKcT`B=nQL{>NicfPwM|8!l2 zLQdoQtUFt($qvv(cdI=i6tz3tUW`|a0C z&5N-8^H(H$?psgMz!}^;s& z=?+d?)Hkg%emvc~QLj+DwRvTMu)Tl4_m}{_7kTC1{xNsF-p9krsM-B)Ge_#Kiu#~{ zd67^5U(N6lVcaug+5}Tw2V+f_-BCNQyG;7WAZ_<^`6QjCrOhu7&ztq4tdo7t^%&>) zTR0VF*I2Sr HHQW{e5x{wf diff --git a/vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_cert.pem b/vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_cert.pem deleted file mode 100644 index 493a5a26481..00000000000 --- a/vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_cert.pem +++ /dev/null @@ -1,24 +0,0 @@ ------BEGIN CERTIFICATE----- -MIID8TCCAtmgAwIBAgIUKXNlBRVe6UepjQUijIFPZBd/4qYwDQYJKoZIhvcNAQEL -BQAwgYcxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJDQTESMBAGA1UEBwwJU3Vubnl2 -YWxlMRAwDgYDVQQKDAdDb21wYW55MREwDwYDVQQLDAhEaXZpc2lvbjEWMBQGA1UE -AwwNczJhX3Rlc3RfY2VydDEaMBgGCSqGSIb3DQEJARYLeHl6QHh5ei5jb20wHhcN -MjIwNTMxMjAwMzE1WhcNNDIwNTI2MjAwMzE1WjCBhzELMAkGA1UEBhMCVVMxCzAJ -BgNVBAgMAkNBMRIwEAYDVQQHDAlTdW5ueXZhbGUxEDAOBgNVBAoMB0NvbXBhbnkx -ETAPBgNVBAsMCERpdmlzaW9uMRYwFAYDVQQDDA1zMmFfdGVzdF9jZXJ0MRowGAYJ -KoZIhvcNAQkBFgt4eXpAeHl6LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC -AQoCggEBAOOFuIucH7XXfohGxKd3uR/ihUA/LdduR9I8kfpUEbq5BOt8xZe5/Yn9 -a1ozEHVW6cOAbHbnwAR8tkSgZ/t42QIA2k77HWU1Jh2xiEIsJivo3imm4/kZWuR0 -OqPh7MhzxpR/hvNwpI5mJsAVBWFMa5KtecFZLnyZtwHylrRN1QXzuLrOxuKFufK3 -RKbTABScn5RbZL976H/jgfSeXrbt242NrIoBnVe6fRbekbq2DQ6zFArbQMUgHjHK -P0UqBgdr1QmHfi9KytFyx9BTP3gXWnWIu+bY7/v7qKJMHFwGETo+dCLWYevJL316 -HnLfhApDMfP8U+Yv/y1N/YvgaSOSlEcCAwEAAaNTMFEwHQYDVR0OBBYEFKhAU4nu -0h/lrnggbIGvx4ej0WklMB8GA1UdIwQYMBaAFKhAU4nu0h/lrnggbIGvx4ej0Wkl -MA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAE/6NghzQ5fu6yR6 -EHKbj/YMrFdT7aGn5n2sAf7wJ33LIhiFHkpWBsVlm7rDtZtwhe891ZK/P60anlg9 -/P0Ua53tSRVRmCvTnEbXWOVMN4is6MsR7BlmzUxl4AtIn7jbeifEwRL7B4xDYmdA -QrQnsqoz45dLgS5xK4WDqXATP09Q91xQDuhud/b+A4jrvgwFASmL7rMIZbp4f1JQ -nlnl/9VoTBQBvJiWkDUtQDMpRLtauddEkv4AGz75p5IspXWD6cOemuh2iQec11xD -X20rs2WZbAcAiUa3nmy8OKYw435vmpj8gp39WYbX/Yx9TymrFFbVY92wYn+quTco -pKklVz0= ------END CERTIFICATE----- diff --git a/vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_key.pem b/vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_key.pem deleted file mode 100644 index 55a7f10c742..00000000000 --- a/vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_key.pem +++ /dev/null @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEogIBAAKCAQEA44W4i5wftdd+iEbEp3e5H+KFQD8t125H0jyR+lQRurkE63zF -l7n9if1rWjMQdVbpw4BsdufABHy2RKBn+3jZAgDaTvsdZTUmHbGIQiwmK+jeKabj -+Rla5HQ6o+HsyHPGlH+G83CkjmYmwBUFYUxrkq15wVkufJm3AfKWtE3VBfO4us7G -4oW58rdEptMAFJyflFtkv3vof+OB9J5etu3bjY2sigGdV7p9Ft6RurYNDrMUCttA -xSAeMco/RSoGB2vVCYd+L0rK0XLH0FM/eBdadYi75tjv+/uookwcXAYROj50ItZh -68kvfXoect+ECkMx8/xT5i//LU39i+BpI5KURwIDAQABAoIBABgyjo/6iLzUMFbZ -/+w3pW6orrdIgN2akvTfED9pVYFgUA+jc3hRhY95bkNnjuaL2cy7Cc4Tk65mfRQL -Y0OxdJLr+EvSFSxAXM9npDA1ddHRsF8JqtFBSxNk8R+g1Yf0GDiO35Fgd3/ViWWA -VtQkRoSRApP3oiQKTRZd8H04keFR+PvmDk/Lq11l3Kc24A1PevKIPX1oI990ggw9 -9i4uSV+cnuMxmcI9xxJtgwdDFdjr39l2arLOHr4s6LGoV2IOdXHNlv5xRqWUZ0FH -MDHowkLgwDrdSTnNeaVNkce14Gqx+bd4hNaLCdKXMpedBTEmrut3f3hdV1kKjaKt -aqRYr8ECgYEA/YDGZY2jvFoHHBywlqmEMFrrCvQGH51m5R1Ntpkzr+Rh3YCmrpvq -xgwJXING0PUw3dz+xrH5lJICrfNE5Kt3fPu1rAEy+13mYsNowghtUq2Rtu0Hsjjx -2E3Bf8vEB6RNBMmGkUpTTIAroGF5tpJoRvfnWax+k4pFdrKYFtyZdNcCgYEA5cNv -EPltvOobjTXlUmtVP3n27KZN2aXexTcagLzRxE9CV4cYySENl3KuOMmccaZpIl6z -aHk6BT4X+M0LqElNUczrInfVqI+SGAFLGy7W6CJaqSr6cpyFUP/fosKpm6wKGgLq -udHfpvz5rckhKd8kJxFLvhGOK9yN5qpzih0gfhECgYAJfwRvk3G5wYmYpP58dlcs -VIuPenqsPoI3PPTHTU/hW+XKnWIhElgmGRdUrto9Q6IT/Y5RtSMLTLjq+Tzwb/fm -56rziYv2XJsfwgAvnI8z1Kqrto9ePsHYf3krJ1/thVsZPc9bq/QY3ohD1sLvcuaT -GgBBnLOVJU3a12/ZE2RwOwKBgF0csWMAoj8/5IB6if+3ral2xOGsl7oPZVMo/J2V -Z7EVqb4M6rd/pKFugTpUQgkwtkSOekhpcGD1hAN5HTNK2YG/+L5UMAsKe9sskwJm -HgOfAHy0BSDzW3ey6i9skg2bT9Cww+0gJ3Hl7U1HSCBO5LjMYpSZSrNtwzfqdb5Q -BX3xAoGARZdR28Ej3+/+0+fz47Yu2h4z0EI/EbrudLOWY936jIeAVwHckI3+BuqH -qR4poj1gfbnMxNuI9UzIXzjEmGewx9kDZ7IYnvloZKqoVQODO5GlKF2ja6IcMNlh -GCNdD6PSAS6HcmalmWo9sj+1YMkrl+GJikKZqVBHrHNwMGAG67w= ------END RSA PRIVATE KEY----- diff --git a/vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/server_cert.der b/vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/server_cert.der deleted file mode 100644 index 04b0d73600b72f80a03943d41973b279db9e8b32..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1013 zcmXqLV*Y5*#B_53GZP~dlZb{E^N!s~snriRh?%)HJiGKl>CAisUN%mxHjlRNyo`+8 ztPBQ??S|Y2oNUaYENsF|p}{Z?2M?38qoI(207!`V#>K<# zoS$2em{(~iXuuB=;pX9R$t=q(&dkp<6f+P32{H5V78@nTm!uY##3!c~l^9AHNWiV< zWEA7BsH}1TV!h=2Tmw0AULzv|Q)5FT0|N^q(aL-(RkWjuO*nCZC(^b4{cp%V+e53*PfoZW)2DU5BJN^Jypf0+ z%dyqB7eAAEDfH_&Z*6C3aP8^9M)sYbgC^`~v;4F5#oepTLYl5+2bdY(i!-?My>4G) z&8u+L`?_9LxQB1$HP?fpd*5i(-|SJJ!`sZHa8UZu(QeP3Dc(Yr8?G#iY20z>);Fh$ zMQ>DZHkC%KUBdEb&cYv;1sHCx@Vv~#%*epFIM^W2Ko*z^WcgUcSVVXxICA%7?w=9J zwOIRjXviz}kjUu<@*rtt76}8f2J8wz2}@R(k?}tZs{u2RLJoFd>IDWnBZI}4y?mP{ zW+WALO{`uTY0T-O8uy=9`&z_;*e^$wYu3!Wz-Re-&a7vV%g_8h++q8CMf&zxTFdl~ zp5i+{-R9L&+mdUFEBoKr@u=5M->UQ>MNWJ7BRi)4^M4~B*uKhe`J%yAbG&-Thr?bk zCap+`USuL4V}qf=6kBV_EFAN zmIn*31Qb`P{oxd|=2o5l$|&AdTJ_-*k&5oDQvTTOiN8OjczyHyta 0 { - log.Printf("Starting HTTP server on %q", *addr) - go func() { - if err := fasthttp.ListenAndServe(*addr, requestHandler); err != nil { - log.Fatalf("error in ListenAndServe: %v", err) - } - }() - } - - // Start HTTPS server. - if len(*addrTLS) > 0 { - log.Printf("Starting HTTPS server on %q", *addrTLS) - go func() { - if err := fasthttp.ListenAndServeTLS(*addrTLS, *certFile, *keyFile, requestHandler); err != nil { - log.Fatalf("error in ListenAndServeTLS: %v", err) - } - }() - } - - log.Printf("Serving files from directory %q", *dir) - log.Printf("See stats at http://%s/stats", *addr) - - // Wait forever. - select {} -} - -func updateFSCounters(ctx *fasthttp.RequestCtx) { - // Increment the number of fsHandler calls. - fsCalls.Add(1) - - // Update other stats counters - resp := &ctx.Response - switch resp.StatusCode() { - case fasthttp.StatusOK: - fsOKResponses.Add(1) - fsResponseBodyBytes.Add(int64(resp.Header.ContentLength())) - case fasthttp.StatusNotModified: - fsNotModifiedResponses.Add(1) - case fasthttp.StatusNotFound: - fsNotFoundResponses.Add(1) - default: - fsOtherResponses.Add(1) - } -} - -// Various counters - see https://pkg.go.dev/expvar for details. -var ( - // Counter for total number of fs calls - fsCalls = expvar.NewInt("fsCalls") - - // Counters for various response status codes - fsOKResponses = expvar.NewInt("fsOKResponses") - fsNotModifiedResponses = expvar.NewInt("fsNotModifiedResponses") - fsNotFoundResponses = expvar.NewInt("fsNotFoundResponses") - fsOtherResponses = expvar.NewInt("fsOtherResponses") - - // Total size in bytes for OK response bodies served. - fsResponseBodyBytes = expvar.NewInt("fsResponseBodyBytes") -) diff --git a/vendor/github.com/valyala/fasthttp/examples/fileserver/ssl-cert-snakeoil.pem b/vendor/github.com/valyala/fasthttp/examples/fileserver/ssl-cert-snakeoil.pem deleted file mode 100644 index 93e77cd9569..00000000000 --- a/vendor/github.com/valyala/fasthttp/examples/fileserver/ssl-cert-snakeoil.pem +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICujCCAaKgAwIBAgIJAMbXnKZ/cikUMA0GCSqGSIb3DQEBCwUAMBUxEzARBgNV -BAMTCnVidW50dS5uYW4wHhcNMTUwMjA0MDgwMTM5WhcNMjUwMjAxMDgwMTM5WjAV -MRMwEQYDVQQDEwp1YnVudHUubmFuMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB -CgKCAQEA+CELrALPDyXZxt5lEbfwF7YAvnHqizmrSePSSRNVT05DAMvqBNX9V75D -K2LB6pg3+hllc4FV68i+FMKtv5yUpuenXYTeeZyPKEjd3bcsFAfP0oXpRDe955Te -+z3g/bZejZLD8Fmiq6satBZWm0T2UkAn5oGW4Q1fEmvJnwpBVNBtJYrepCxnHgij -L5lvvQc+3m7GJlXZlTMZnyCUrRQ+OJVhU3VHOuViEihHVthC3FHn29Mzi8PtDwm1 -xRiR+ceZLZLFvPgQZNh5IBnkES/6jwnHLYW0nDtFYDY98yd2WS9Dm0gwG7zQxvOY -6HjYwzauQ0/wQGdGzkmxBbIfn/QQMwIDAQABow0wCzAJBgNVHRMEAjAAMA0GCSqG -SIb3DQEBCwUAA4IBAQBQjKm/4KN/iTgXbLTL3i7zaxYXFLXsnT1tF+ay4VA8aj98 -L3JwRTciZ3A5iy/W4VSCt3eASwOaPWHKqDBB5RTtL73LoAqsWmO3APOGQAbixcQ2 -45GXi05OKeyiYRi1Nvq7Unv9jUkRDHUYVPZVSAjCpsXzPhFkmZoTRxmx5l0ZF7Li -K91lI5h+eFq0dwZwrmlPambyh1vQUi70VHv8DNToVU29kel7YLbxGbuqETfhrcy6 -X+Mha6RYITkAn5FqsZcKMsc9eYGEF4l3XV+oS7q6xfTxktYJMFTI18J0lQ2Lv/CI -whdMnYGntDQBE/iFCrJEGNsKGc38796GBOb5j+zd ------END CERTIFICATE----- diff --git a/vendor/github.com/valyala/fasthttp/examples/helloworldserver/Makefile b/vendor/github.com/valyala/fasthttp/examples/helloworldserver/Makefile deleted file mode 100644 index ce30ae9fa57..00000000000 --- a/vendor/github.com/valyala/fasthttp/examples/helloworldserver/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -helloworldserver: clean - go get -u github.com/valyala/fasthttp - go build - -clean: - rm -f helloworldserver diff --git a/vendor/github.com/valyala/fasthttp/examples/helloworldserver/README.md b/vendor/github.com/valyala/fasthttp/examples/helloworldserver/README.md deleted file mode 100644 index 80e801ecf46..00000000000 --- a/vendor/github.com/valyala/fasthttp/examples/helloworldserver/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# HelloWorld server example - -* Displays various request info. -* Sets response headers and cookies. -* Supports transparent compression. - -# How to build - -``` -make -``` - -# How to run - -``` -./helloworldserver -addr=tcp.addr.to.listen:to -``` diff --git a/vendor/github.com/valyala/fasthttp/examples/helloworldserver/helloworldserver.go b/vendor/github.com/valyala/fasthttp/examples/helloworldserver/helloworldserver.go deleted file mode 100644 index a22e0b78b57..00000000000 --- a/vendor/github.com/valyala/fasthttp/examples/helloworldserver/helloworldserver.go +++ /dev/null @@ -1,55 +0,0 @@ -package main - -import ( - "flag" - "fmt" - "log" - - "github.com/valyala/fasthttp" -) - -var ( - addr = flag.String("addr", ":8080", "TCP address to listen to") - compress = flag.Bool("compress", false, "Whether to enable transparent response compression") -) - -func main() { - flag.Parse() - - h := requestHandler - if *compress { - h = fasthttp.CompressHandler(h) - } - - if err := fasthttp.ListenAndServe(*addr, h); err != nil { - log.Fatalf("Error in ListenAndServe: %v", err) - } -} - -func requestHandler(ctx *fasthttp.RequestCtx) { - fmt.Fprintf(ctx, "Hello, world!\n\n") - - fmt.Fprintf(ctx, "Request method is %q\n", ctx.Method()) - fmt.Fprintf(ctx, "RequestURI is %q\n", ctx.RequestURI()) - fmt.Fprintf(ctx, "Requested path is %q\n", ctx.Path()) - fmt.Fprintf(ctx, "Host is %q\n", ctx.Host()) - fmt.Fprintf(ctx, "Query string is %q\n", ctx.QueryArgs()) - fmt.Fprintf(ctx, "User-Agent is %q\n", ctx.UserAgent()) - fmt.Fprintf(ctx, "Connection has been established at %s\n", ctx.ConnTime()) - fmt.Fprintf(ctx, "Request has been started at %s\n", ctx.Time()) - fmt.Fprintf(ctx, "Serial request number for the current connection is %d\n", ctx.ConnRequestNum()) - fmt.Fprintf(ctx, "Your ip is %q\n\n", ctx.RemoteIP()) - - fmt.Fprintf(ctx, "Raw request is:\n---CUT---\n%s\n---CUT---", &ctx.Request) - - ctx.SetContentType("text/plain; charset=utf8") - - // Set arbitrary headers - ctx.Response.Header.Set("X-My-Header", "my-header-value") - - // Set cookies - var c fasthttp.Cookie - c.SetKey("cookie-name") - c.SetValue("cookie-value") - ctx.Response.Header.SetCookie(&c) -} diff --git a/vendor/github.com/valyala/fasthttp/examples/host_client/Makefile b/vendor/github.com/valyala/fasthttp/examples/host_client/Makefile deleted file mode 100644 index 161ab4454a0..00000000000 --- a/vendor/github.com/valyala/fasthttp/examples/host_client/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -host_client: clean - go get -u github.com/valyala/fasthttp - go build - -clean: - rm -f host_client diff --git a/vendor/github.com/valyala/fasthttp/examples/host_client/README.md b/vendor/github.com/valyala/fasthttp/examples/host_client/README.md deleted file mode 100644 index e40b3976ea5..00000000000 --- a/vendor/github.com/valyala/fasthttp/examples/host_client/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Host Client Example - -The HostClient is useful when calling an API from a single host. -The example also shows how to use URI. -You may create the parsed URI once and reuse it in many requests. -The URI has a username and password for Basic Auth but you may also set other parts i.e. `SetPath()`, `SetQueryString()`. - -# How to build and run -Start a web server on localhost:8080 then execute: - - make - ./host_client - diff --git a/vendor/github.com/valyala/fasthttp/examples/host_client/hostclient.go b/vendor/github.com/valyala/fasthttp/examples/host_client/hostclient.go deleted file mode 100644 index 997abd4c96a..00000000000 --- a/vendor/github.com/valyala/fasthttp/examples/host_client/hostclient.go +++ /dev/null @@ -1,35 +0,0 @@ -package main - -import ( - "fmt" - "os" - - "github.com/valyala/fasthttp" -) - -func main() { - // Get URI from a pool - url := fasthttp.AcquireURI() - url.Parse(nil, []byte("http://localhost:8080/")) - url.SetUsername("Aladdin") - url.SetPassword("Open Sesame") - - hc := &fasthttp.HostClient{ - Addr: "localhost:8080", // The host address and port must be set explicitly - } - - req := fasthttp.AcquireRequest() - req.SetURI(url) // copy url into request - fasthttp.ReleaseURI(url) // now you may release the URI - - req.Header.SetMethod(fasthttp.MethodGet) - resp := fasthttp.AcquireResponse() - err := hc.Do(req, resp) - fasthttp.ReleaseRequest(req) - if err == nil { - fmt.Printf("Response: %s\n", resp.Body()) - } else { - fmt.Fprintf(os.Stderr, "Connection error: %v\n", err) - } - fasthttp.ReleaseResponse(resp) -} diff --git a/vendor/github.com/valyala/fasthttp/examples/letsencrypt/letsencryptserver.go b/vendor/github.com/valyala/fasthttp/examples/letsencrypt/letsencryptserver.go deleted file mode 100644 index d08716871aa..00000000000 --- a/vendor/github.com/valyala/fasthttp/examples/letsencrypt/letsencryptserver.go +++ /dev/null @@ -1,41 +0,0 @@ -package main - -import ( - "crypto/tls" - "net" - - "github.com/valyala/fasthttp" - "golang.org/x/crypto/acme" - "golang.org/x/crypto/acme/autocert" -) - -func requestHandler(ctx *fasthttp.RequestCtx) { - ctx.SetBodyString("hello from https!") -} - -func main() { - m := &autocert.Manager{ - Prompt: autocert.AcceptTOS, - HostPolicy: autocert.HostWhitelist("example.com"), // Replace with your domain. - Cache: autocert.DirCache("./certs"), - } - - cfg := &tls.Config{ - GetCertificate: m.GetCertificate, - NextProtos: []string{ - "http/1.1", acme.ALPNProto, - }, - } - - // Let's Encrypt tls-alpn-01 only works on port 443. - ln, err := net.Listen("tcp4", "0.0.0.0:443") /* #nosec G102 */ - if err != nil { - panic(err) - } - - lnTls := tls.NewListener(ln, cfg) - - if err := fasthttp.Serve(lnTls, requestHandler); err != nil { - panic(err) - } -} diff --git a/vendor/github.com/valyala/fasthttp/examples/multidomain/Makefile b/vendor/github.com/valyala/fasthttp/examples/multidomain/Makefile deleted file mode 100644 index 0787e5050f0..00000000000 --- a/vendor/github.com/valyala/fasthttp/examples/multidomain/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -writer: clean - go get -u github.com/valyala/fasthttp - go build - -clean: - rm -f multidomain diff --git a/vendor/github.com/valyala/fasthttp/examples/multidomain/README.md b/vendor/github.com/valyala/fasthttp/examples/multidomain/README.md deleted file mode 100644 index 12c09ecadbe..00000000000 --- a/vendor/github.com/valyala/fasthttp/examples/multidomain/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Multidomain using SSL certs example - -* Prints two messages depending on visited host. - -# How to build - -``` -make -``` - -# How to run - -``` -./multidomain -``` diff --git a/vendor/github.com/valyala/fasthttp/examples/multidomain/multidomain.go b/vendor/github.com/valyala/fasthttp/examples/multidomain/multidomain.go deleted file mode 100644 index 9b5ca15debe..00000000000 --- a/vendor/github.com/valyala/fasthttp/examples/multidomain/multidomain.go +++ /dev/null @@ -1,63 +0,0 @@ -package main - -import ( - "fmt" - - "github.com/valyala/fasthttp" -) - -var domains = make(map[string]fasthttp.RequestHandler) - -func main() { - server := &fasthttp.Server{ - // You can check the access using openssl command: - // $ openssl s_client -connect localhost:8080 << EOF - // > GET / - // > Host: localhost - // > EOF - // - // $ openssl s_client -connect localhost:8080 << EOF - // > GET / - // > Host: 127.0.0.1:8080 - // > EOF - // - Handler: func(ctx *fasthttp.RequestCtx) { - h, ok := domains[string(ctx.Host())] - if !ok { - ctx.NotFound() - return - } - h(ctx) - }, - } - - // preparing first host - cert, priv, err := fasthttp.GenerateTestCertificate("localhost:8080") - if err != nil { - panic(err) - } - domains["localhost:8080"] = func(ctx *fasthttp.RequestCtx) { - ctx.WriteString("You are accessing to localhost:8080\n") - } - - err = server.AppendCertEmbed(cert, priv) - if err != nil { - panic(err) - } - - // preparing second host - cert, priv, err = fasthttp.GenerateTestCertificate("127.0.0.1") - if err != nil { - panic(err) - } - domains["127.0.0.1:8080"] = func(ctx *fasthttp.RequestCtx) { - ctx.WriteString("You are accessing to 127.0.0.1:8080\n") - } - - err = server.AppendCertEmbed(cert, priv) - if err != nil { - panic(err) - } - - fmt.Println(server.ListenAndServeTLS(":8080", "", "")) -} diff --git a/vendor/github.com/valyala/fasthttp/fasthttputil/inmemory_listener_test.go b/vendor/github.com/valyala/fasthttp/fasthttputil/inmemory_listener_test.go deleted file mode 100644 index 698285d756b..00000000000 --- a/vendor/github.com/valyala/fasthttp/fasthttputil/inmemory_listener_test.go +++ /dev/null @@ -1,273 +0,0 @@ -package fasthttputil - -import ( - "bytes" - "context" - "fmt" - "io" - "net" - "net/http" - "sync" - "testing" - "time" -) - -func TestInmemoryListener(t *testing.T) { - ln := NewInmemoryListener() - - ch := make(chan struct{}) - for i := 0; i < 10; i++ { - go func(n int) { - conn, err := ln.Dial() - if err != nil { - t.Errorf("unexpected error: %v", err) - } - defer conn.Close() - req := fmt.Sprintf("request_%d", n) - nn, err := conn.Write([]byte(req)) - if err != nil { - t.Errorf("unexpected error: %v", err) - } - if nn != len(req) { - t.Errorf("unexpected number of bytes written: %d. Expecting %d", nn, len(req)) - } - buf := make([]byte, 30) - nn, err = conn.Read(buf) - if err != nil { - t.Errorf("unexpected error: %v", err) - } - buf = buf[:nn] - resp := fmt.Sprintf("response_%d", n) - if nn != len(resp) { - t.Errorf("unexpected number of bytes read: %d. Expecting %d", nn, len(resp)) - } - if string(buf) != resp { - t.Errorf("unexpected response %q. Expecting %q", buf, resp) - } - ch <- struct{}{} - }(i) - } - - serverCh := make(chan struct{}) - go func() { - for { - conn, err := ln.Accept() - if err != nil { - close(serverCh) - return - } - defer conn.Close() - buf := make([]byte, 30) - n, err := conn.Read(buf) - if err != nil { - t.Errorf("unexpected error: %v", err) - } - buf = buf[:n] - if !bytes.HasPrefix(buf, []byte("request_")) { - t.Errorf("unexpected request prefix %q. Expecting %q", buf, "request_") - } - resp := fmt.Sprintf("response_%s", buf[len("request_"):]) - n, err = conn.Write([]byte(resp)) - if err != nil { - t.Errorf("unexpected error: %v", err) - } - if n != len(resp) { - t.Errorf("unexpected number of bytes written: %d. Expecting %d", n, len(resp)) - } - } - }() - - for i := 0; i < 10; i++ { - select { - case <-ch: - case <-time.After(time.Second): - t.Fatalf("timeout") - } - } - - if err := ln.Close(); err != nil { - t.Fatalf("unexpected error: %v", err) - } - - select { - case <-serverCh: - case <-time.After(time.Second): - t.Fatalf("timeout") - } -} - -// echoServerHandler implements http.Handler. -type echoServerHandler struct { - t *testing.T -} - -func (s *echoServerHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(200) - time.Sleep(time.Millisecond * 100) - if _, err := io.Copy(w, r.Body); err != nil { - s.t.Fatalf("unexpected error: %v", err) - } -} - -func testInmemoryListenerHTTP(t *testing.T, f func(t *testing.T, client *http.Client)) { - ln := NewInmemoryListener() - defer ln.Close() - - client := &http.Client{ - Transport: &http.Transport{ - DialContext: func(ctx context.Context, network, addr string) (net.Conn, error) { - return ln.Dial() - }, - }, - Timeout: time.Second, - } - - server := &http.Server{ - Handler: &echoServerHandler{t}, - } - - go func() { - if err := server.Serve(ln); err != nil && err != http.ErrServerClosed { - t.Errorf("unexpected error: %v", err) - } - }() - - f(t, client) - - ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*100) - defer cancel() - server.Shutdown(ctx) //nolint:errcheck -} - -func testInmemoryListenerHTTPSingle(t *testing.T, client *http.Client, content string) { - res, err := client.Post("http://...", "text/plain", bytes.NewBufferString(content)) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - defer func() { _ = res.Body.Close() }() - b, err := io.ReadAll(res.Body) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - s := string(b) - if string(b) != content { - t.Fatalf("unexpected response %q, expecting %q", s, content) - } -} - -func TestInmemoryListenerHTTPSingle(t *testing.T) { - testInmemoryListenerHTTP(t, func(t *testing.T, client *http.Client) { - testInmemoryListenerHTTPSingle(t, client, "request") - }) -} - -func TestInmemoryListenerHTTPSerial(t *testing.T) { - testInmemoryListenerHTTP(t, func(t *testing.T, client *http.Client) { - for i := 0; i < 10; i++ { - testInmemoryListenerHTTPSingle(t, client, fmt.Sprintf("request_%d", i)) - } - }) -} - -func TestInmemoryListenerHTTPConcurrent(t *testing.T) { - testInmemoryListenerHTTP(t, func(t *testing.T, client *http.Client) { - var wg sync.WaitGroup - for i := 0; i < 10; i++ { - wg.Add(1) - go func(i int) { - defer wg.Done() - testInmemoryListenerHTTPSingle(t, client, fmt.Sprintf("request_%d", i)) - }(i) - } - wg.Wait() - }) -} - -func acceptLoop(ln net.Listener) { - for { - conn, err := ln.Accept() - if err != nil { - panic(err) - } - - conn.Close() - } -} - -func TestInmemoryListenerAddrDefault(t *testing.T) { - ln := NewInmemoryListener() - - verifyAddr(t, ln.Addr(), inmemoryAddr(0)) - - go func() { - c, err := ln.Dial() - if err != nil { - panic(err) - } - - c.Close() - }() - - lc, err := ln.Accept() - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - - verifyAddr(t, lc.LocalAddr(), inmemoryAddr(0)) - verifyAddr(t, lc.RemoteAddr(), pipeAddr(0)) - - go acceptLoop(ln) - - c, err := ln.Dial() - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - - verifyAddr(t, c.LocalAddr(), pipeAddr(0)) - verifyAddr(t, c.RemoteAddr(), inmemoryAddr(0)) -} - -func verifyAddr(t *testing.T, got, expected net.Addr) { - if got != expected { - t.Fatalf("unexpected addr: %v. Expecting %v", got, expected) - } -} - -func TestInmemoryListenerAddrCustom(t *testing.T) { - ln := NewInmemoryListener() - - listenerAddr := &net.TCPAddr{IP: net.IPv4(127, 0, 0, 1), Port: 12345} - - ln.SetLocalAddr(listenerAddr) - - verifyAddr(t, ln.Addr(), listenerAddr) - - go func() { - c, err := ln.Dial() - if err != nil { - panic(err) - } - - c.Close() - }() - - lc, err := ln.Accept() - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - - verifyAddr(t, lc.LocalAddr(), listenerAddr) - verifyAddr(t, lc.RemoteAddr(), pipeAddr(0)) - - go acceptLoop(ln) - - clientAddr := &net.TCPAddr{IP: net.IPv4(127, 0, 0, 2), Port: 65432} - - c, err := ln.DialWithLocalAddr(clientAddr) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - - verifyAddr(t, c.LocalAddr(), clientAddr) - verifyAddr(t, c.RemoteAddr(), listenerAddr) -} diff --git a/vendor/github.com/valyala/fasthttp/fasthttputil/inmemory_listener_timing_test.go b/vendor/github.com/valyala/fasthttp/fasthttputil/inmemory_listener_timing_test.go deleted file mode 100644 index ee398009ac2..00000000000 --- a/vendor/github.com/valyala/fasthttp/fasthttputil/inmemory_listener_timing_test.go +++ /dev/null @@ -1,155 +0,0 @@ -package fasthttputil_test - -import ( - "crypto/tls" - "net" - "testing" - - "github.com/valyala/fasthttp" - "github.com/valyala/fasthttp/fasthttputil" -) - -var ( - certblock = []byte(`-----BEGIN CERTIFICATE----- -MIICujCCAaKgAwIBAgIJAMbXnKZ/cikUMA0GCSqGSIb3DQEBCwUAMBUxEzARBgNV -BAMTCnVidW50dS5uYW4wHhcNMTUwMjA0MDgwMTM5WhcNMjUwMjAxMDgwMTM5WjAV -MRMwEQYDVQQDEwp1YnVudHUubmFuMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB -CgKCAQEA+CELrALPDyXZxt5lEbfwF7YAvnHqizmrSePSSRNVT05DAMvqBNX9V75D -K2LB6pg3+hllc4FV68i+FMKtv5yUpuenXYTeeZyPKEjd3bcsFAfP0oXpRDe955Te -+z3g/bZejZLD8Fmiq6satBZWm0T2UkAn5oGW4Q1fEmvJnwpBVNBtJYrepCxnHgij -L5lvvQc+3m7GJlXZlTMZnyCUrRQ+OJVhU3VHOuViEihHVthC3FHn29Mzi8PtDwm1 -xRiR+ceZLZLFvPgQZNh5IBnkES/6jwnHLYW0nDtFYDY98yd2WS9Dm0gwG7zQxvOY -6HjYwzauQ0/wQGdGzkmxBbIfn/QQMwIDAQABow0wCzAJBgNVHRMEAjAAMA0GCSqG -SIb3DQEBCwUAA4IBAQBQjKm/4KN/iTgXbLTL3i7zaxYXFLXsnT1tF+ay4VA8aj98 -L3JwRTciZ3A5iy/W4VSCt3eASwOaPWHKqDBB5RTtL73LoAqsWmO3APOGQAbixcQ2 -45GXi05OKeyiYRi1Nvq7Unv9jUkRDHUYVPZVSAjCpsXzPhFkmZoTRxmx5l0ZF7Li -K91lI5h+eFq0dwZwrmlPambyh1vQUi70VHv8DNToVU29kel7YLbxGbuqETfhrcy6 -X+Mha6RYITkAn5FqsZcKMsc9eYGEF4l3XV+oS7q6xfTxktYJMFTI18J0lQ2Lv/CI -whdMnYGntDQBE/iFCrJEGNsKGc38796GBOb5j+zd ------END CERTIFICATE----- -`) - keyblock = []byte(`-----BEGIN PRIVATE KEY----- -MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQD4IQusAs8PJdnG -3mURt/AXtgC+ceqLOatJ49JJE1VPTkMAy+oE1f1XvkMrYsHqmDf6GWVzgVXryL4U -wq2/nJSm56ddhN55nI8oSN3dtywUB8/ShelEN73nlN77PeD9tl6NksPwWaKrqxq0 -FlabRPZSQCfmgZbhDV8Sa8mfCkFU0G0lit6kLGceCKMvmW+9Bz7ebsYmVdmVMxmf -IJStFD44lWFTdUc65WISKEdW2ELcUefb0zOLw+0PCbXFGJH5x5ktksW8+BBk2Hkg -GeQRL/qPCccthbScO0VgNj3zJ3ZZL0ObSDAbvNDG85joeNjDNq5DT/BAZ0bOSbEF -sh+f9BAzAgMBAAECggEBAJWv2cq7Jw6MVwSRxYca38xuD6TUNBopgBvjREixURW2 -sNUaLuMb9Omp7fuOaE2N5rcJ+xnjPGIxh/oeN5MQctz9gwn3zf6vY+15h97pUb4D -uGvYPRDaT8YVGS+X9NMZ4ZCmqW2lpWzKnCFoGHcy8yZLbcaxBsRdvKzwOYGoPiFb -K2QuhXZ/1UPmqK9i2DFKtj40X6vBszTNboFxOVpXrPu0FJwLVSDf2hSZ4fMM0DH3 -YqwKcYf5te+hxGKgrqRA3tn0NCWii0in6QIwXMC+kMw1ebg/tZKqyDLMNptAK8J+ -DVw9m5X1seUHS5ehU/g2jrQrtK5WYn7MrFK4lBzlRwECgYEA/d1TeANYECDWRRDk -B0aaRZs87Rwl/J9PsvbsKvtU/bX+OfSOUjOa9iQBqn0LmU8GqusEET/QVUfocVwV -Bggf/5qDLxz100Rj0ags/yE/kNr0Bb31kkkKHFMnCT06YasR7qKllwrAlPJvQv9x -IzBKq+T/Dx08Wep9bCRSFhzRCnsCgYEA+jdeZXTDr/Vz+D2B3nAw1frqYFfGnEVY -wqmoK3VXMDkGuxsloO2rN+SyiUo3JNiQNPDub/t7175GH5pmKtZOlftePANsUjBj -wZ1D0rI5Bxu/71ibIUYIRVmXsTEQkh/ozoh3jXCZ9+bLgYiYx7789IUZZSokFQ3D -FICUT9KJ36kCgYAGoq9Y1rWJjmIrYfqj2guUQC+CfxbbGIrrwZqAsRsSmpwvhZ3m -tiSZxG0quKQB+NfSxdvQW5ulbwC7Xc3K35F+i9pb8+TVBdeaFkw+yu6vaZmxQLrX -fQM/pEjD7A7HmMIaO7QaU5SfEAsqdCTP56Y8AftMuNXn/8IRfo2KuGwaWwKBgFpU -ILzJoVdlad9E/Rw7LjYhZfkv1uBVXIyxyKcfrkEXZSmozDXDdxsvcZCEfVHM6Ipk -K/+7LuMcqp4AFEAEq8wTOdq6daFaHLkpt/FZK6M4TlruhtpFOPkoNc3e45eM83OT -6mziKINJC1CQ6m65sQHpBtjxlKMRG8rL/D6wx9s5AoGBAMRlqNPMwglT3hvDmsAt -9Lf9pdmhERUlHhD8bj8mDaBj2Aqv7f6VRJaYZqP403pKKQexuqcn80mtjkSAPFkN -Cj7BVt/RXm5uoxDTnfi26RF9F6yNDEJ7UU9+peBr99aazF/fTgW/1GcMkQnum8uV -c257YgaWmjK9uB0Y2r2VxS0G ------END PRIVATE KEY-----`) -) - -// BenchmarkPlainStreaming measures end-to-end plaintext streaming performance -// for fasthttp client and server. -// -// It issues http requests over a small number of keep-alive connections. -func BenchmarkPlainStreaming(b *testing.B) { - benchmark(b, streamingHandler, false) -} - -// BenchmarkPlainHandshake measures end-to-end plaintext handshake performance -// for fasthttp client and server. -// -// It re-establishes new connection per each http request. -func BenchmarkPlainHandshake(b *testing.B) { - benchmark(b, handshakeHandler, false) -} - -// BenchmarkTLSStreaming measures end-to-end TLS streaming performance -// for fasthttp client and server. -// -// It issues http requests over a small number of TLS keep-alive connections. -func BenchmarkTLSStreaming(b *testing.B) { - benchmark(b, streamingHandler, true) -} - -func benchmark(b *testing.B, h fasthttp.RequestHandler, isTLS bool) { - var serverTLSConfig, clientTLSConfig *tls.Config - if isTLS { - cert, err := tls.X509KeyPair(certblock, keyblock) - if err != nil { - b.Fatalf("cannot load TLS certificate: %v", err) - } - serverTLSConfig = &tls.Config{ - Certificates: []tls.Certificate{cert}, - PreferServerCipherSuites: true, - } - serverTLSConfig.CurvePreferences = []tls.CurveID{} - clientTLSConfig = &tls.Config{ - InsecureSkipVerify: true, - } - } - ln := fasthttputil.NewInmemoryListener() - serverStopCh := make(chan struct{}) - go func() { - serverLn := net.Listener(ln) - if serverTLSConfig != nil { - serverLn = tls.NewListener(serverLn, serverTLSConfig) - } - if err := fasthttp.Serve(serverLn, h); err != nil { - b.Errorf("unexpected error in server: %v", err) - } - close(serverStopCh) - }() - c := &fasthttp.HostClient{ - Dial: func(addr string) (net.Conn, error) { - return ln.Dial() - }, - IsTLS: isTLS, - TLSConfig: clientTLSConfig, - } - - b.RunParallel(func(pb *testing.PB) { - runRequests(b, pb, c, isTLS) - }) - ln.Close() - <-serverStopCh -} - -func streamingHandler(ctx *fasthttp.RequestCtx) { - ctx.WriteString("foobar") //nolint:errcheck -} - -func handshakeHandler(ctx *fasthttp.RequestCtx) { - streamingHandler(ctx) - - // Explicitly close connection after each response. - ctx.SetConnectionClose() -} - -func runRequests(b *testing.B, pb *testing.PB, c *fasthttp.HostClient, isTLS bool) { - var req fasthttp.Request - if isTLS { - req.SetRequestURI("https://foo.bar/baz") - } else { - req.SetRequestURI("http://foo.bar/baz") - } - var resp fasthttp.Response - for pb.Next() { - if err := c.Do(&req, &resp); err != nil { - b.Fatalf("unexpected error: %v", err) - } - if resp.StatusCode() != fasthttp.StatusOK { - b.Fatalf("unexpected status code: %d. Expecting %d", resp.StatusCode(), fasthttp.StatusOK) - } - } -} diff --git a/vendor/github.com/valyala/fasthttp/fasthttputil/pipeconns_test.go b/vendor/github.com/valyala/fasthttp/fasthttputil/pipeconns_test.go deleted file mode 100644 index 9ac7ee14c73..00000000000 --- a/vendor/github.com/valyala/fasthttp/fasthttputil/pipeconns_test.go +++ /dev/null @@ -1,407 +0,0 @@ -package fasthttputil - -import ( - "bytes" - "fmt" - "io" - "net" - "testing" - "time" -) - -func TestPipeConnsWriteTimeout(t *testing.T) { - t.Parallel() - - pc := NewPipeConns() - c1 := pc.Conn1() - - deadline := time.Now().Add(time.Millisecond) - if err := c1.SetWriteDeadline(deadline); err != nil { - t.Fatalf("unexpected error: %v", err) - } - - data := []byte("foobar") - for { - _, err := c1.Write(data) - if err != nil { - if err == ErrTimeout { - break - } - t.Fatalf("unexpected error: %v", err) - } - } - - for i := 0; i < 10; i++ { - _, err := c1.Write(data) - if err == nil { - t.Fatalf("expecting error") - } - if err != ErrTimeout { - t.Fatalf("unexpected error: %v. Expecting %v", err, ErrTimeout) - } - } - - // read the written data - c2 := pc.Conn2() - if err := c2.SetReadDeadline(time.Now().Add(10 * time.Millisecond)); err != nil { - t.Fatalf("unexpected error: %v", err) - } - for { - _, err := c2.Read(data) - if err != nil { - if err == ErrTimeout { - break - } - t.Fatalf("unexpected error: %v", err) - } - } - - for i := 0; i < 10; i++ { - _, err := c2.Read(data) - if err == nil { - t.Fatalf("expecting error") - } - if err != ErrTimeout { - t.Fatalf("unexpected error: %v. Expecting %v", err, ErrTimeout) - } - } -} - -func TestPipeConnsPositiveReadTimeout(t *testing.T) { - t.Parallel() - - testPipeConnsReadTimeout(t, time.Millisecond) -} - -func TestPipeConnsNegativeReadTimeout(t *testing.T) { - t.Parallel() - - testPipeConnsReadTimeout(t, -time.Second) -} - -var zeroTime time.Time - -func testPipeConnsReadTimeout(t *testing.T, timeout time.Duration) { - pc := NewPipeConns() - c1 := pc.Conn1() - - deadline := time.Now().Add(timeout) - if err := c1.SetReadDeadline(deadline); err != nil { - t.Fatalf("unexpected error: %v", err) - } - - var buf [1]byte - for i := 0; i < 10; i++ { - _, err := c1.Read(buf[:]) - if err == nil { - t.Fatalf("expecting error on iteration %d", i) - } - if err != ErrTimeout { - t.Fatalf("unexpected error on iteration %d: %v. Expecting %v", i, err, ErrTimeout) - } - } - - // disable deadline and send data from c2 to c1 - if err := c1.SetReadDeadline(zeroTime); err != nil { - t.Fatalf("unexpected error: %v", err) - } - - data := []byte("foobar") - c2 := pc.Conn2() - if _, err := c2.Write(data); err != nil { - t.Fatalf("unexpected error: %v", err) - } - dataBuf := make([]byte, len(data)) - if _, err := io.ReadFull(c1, dataBuf); err != nil { - t.Fatalf("unexpected error: %v", err) - } - if !bytes.Equal(data, dataBuf) { - t.Fatalf("unexpected data received: %q. Expecting %q", dataBuf, data) - } -} - -func TestPipeConnsCloseWhileReadWriteConcurrent(t *testing.T) { - t.Parallel() - - concurrency := 4 - ch := make(chan struct{}, concurrency) - for i := 0; i < concurrency; i++ { - go func() { - testPipeConnsCloseWhileReadWriteSerial(t) - ch <- struct{}{} - }() - } - - for i := 0; i < concurrency; i++ { - select { - case <-ch: - case <-time.After(5 * time.Second): - t.Fatalf("timeout") - } - } -} - -func TestPipeConnsCloseWhileReadWriteSerial(t *testing.T) { - t.Parallel() - - testPipeConnsCloseWhileReadWriteSerial(t) -} - -func testPipeConnsCloseWhileReadWriteSerial(t *testing.T) { - for i := 0; i < 10; i++ { - testPipeConnsCloseWhileReadWrite(t) - } -} - -func testPipeConnsCloseWhileReadWrite(t *testing.T) { - pc := NewPipeConns() - c1 := pc.Conn1() - c2 := pc.Conn2() - - readCh := make(chan error) - go func() { - var err error - if _, err = io.Copy(io.Discard, c1); err != nil { - if err != errConnectionClosed { - err = fmt.Errorf("unexpected error: %w", err) - } else { - err = nil - } - } - readCh <- err - }() - - writeCh := make(chan error) - go func() { - var err error - for { - if _, err = c2.Write([]byte("foobar")); err != nil { - if err != errConnectionClosed { - err = fmt.Errorf("unexpected error: %w", err) - } else { - err = nil - } - break - } - } - writeCh <- err - }() - - time.Sleep(10 * time.Millisecond) - if err := c1.Close(); err != nil { - t.Fatalf("unexpected error: %v", err) - } - if err := c2.Close(); err != nil { - t.Fatalf("unexpected error: %v", err) - } - - select { - case err := <-readCh: - if err != nil { - t.Fatalf("unexpected error in reader: %v", err) - } - case <-time.After(time.Second): - t.Fatalf("timeout") - } - select { - case err := <-writeCh: - if err != nil { - t.Fatalf("unexpected error in writer: %v", err) - } - case <-time.After(time.Second): - t.Fatalf("timeout") - } -} - -func TestPipeConnsReadWriteSerial(t *testing.T) { - t.Parallel() - - testPipeConnsReadWriteSerial(t) -} - -func TestPipeConnsReadWriteConcurrent(t *testing.T) { - t.Parallel() - - testConcurrency(t, 10, testPipeConnsReadWriteSerial) -} - -func testPipeConnsReadWriteSerial(t *testing.T) { - pc := NewPipeConns() - testPipeConnsReadWrite(t, pc.Conn1(), pc.Conn2()) - - pc = NewPipeConns() - testPipeConnsReadWrite(t, pc.Conn2(), pc.Conn1()) -} - -func testPipeConnsReadWrite(t *testing.T, c1, c2 net.Conn) { - defer c1.Close() - defer c2.Close() - - var buf [32]byte - for i := 0; i < 10; i++ { - // The first write - s1 := fmt.Sprintf("foo_%d", i) - n, err := c1.Write([]byte(s1)) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if n != len(s1) { - t.Fatalf("unexpected number of bytes written: %d. Expecting %d", n, len(s1)) - } - - // The second write - s2 := fmt.Sprintf("bar_%d", i) - n, err = c1.Write([]byte(s2)) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if n != len(s2) { - t.Fatalf("unexpected number of bytes written: %d. Expecting %d", n, len(s2)) - } - - // Read data written above in two writes - s := s1 + s2 - n, err = c2.Read(buf[:]) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if n != len(s) { - t.Fatalf("unexpected number of bytes read: %d. Expecting %d", n, len(s)) - } - if string(buf[:n]) != s { - t.Fatalf("unexpected string read: %q. Expecting %q", buf[:n], s) - } - } -} - -func TestPipeConnsCloseSerial(t *testing.T) { - t.Parallel() - - testPipeConnsCloseSerial(t) -} - -func TestPipeConnsCloseConcurrent(t *testing.T) { - t.Parallel() - - testConcurrency(t, 10, testPipeConnsCloseSerial) -} - -func testPipeConnsCloseSerial(t *testing.T) { - pc := NewPipeConns() - testPipeConnsClose(t, pc.Conn1(), pc.Conn2()) - - pc = NewPipeConns() - testPipeConnsClose(t, pc.Conn2(), pc.Conn1()) -} - -func testPipeConnsClose(t *testing.T, c1, c2 net.Conn) { - if err := c1.Close(); err != nil { - t.Fatalf("unexpected error: %v", err) - } - var buf [10]byte - - // attempt writing to closed conn - for i := 0; i < 10; i++ { - n, err := c1.Write(buf[:]) - if err == nil { - t.Fatalf("expecting error") - } - if n != 0 { - t.Fatalf("unexpected number of bytes written: %d. Expecting 0", n) - } - } - - // attempt reading from closed conn - for i := 0; i < 10; i++ { - n, err := c2.Read(buf[:]) - if err == nil { - t.Fatalf("expecting error") - } - if err != io.EOF { - t.Fatalf("unexpected error: %v. Expecting %v", err, io.EOF) - } - if n != 0 { - t.Fatalf("unexpected number of bytes read: %d. Expecting 0", n) - } - } - - if err := c2.Close(); err != nil { - t.Fatalf("unexpected error: %v", err) - } - - // attempt closing already closed conns - for i := 0; i < 10; i++ { - if err := c1.Close(); err != nil { - t.Fatalf("unexpected error: %v", err) - } - if err := c2.Close(); err != nil { - t.Fatalf("unexpected error: %v", err) - } - } -} - -func testConcurrency(t *testing.T, concurrency int, f func(*testing.T)) { - ch := make(chan struct{}, concurrency) - for i := 0; i < concurrency; i++ { - go func() { - f(t) - ch <- struct{}{} - }() - } - - for i := 0; i < concurrency; i++ { - select { - case <-ch: - case <-time.After(time.Second): - t.Fatalf("timeout") - } - } -} - -func TestPipeConnsAddrDefault(t *testing.T) { - t.Parallel() - - pc := NewPipeConns() - c1 := pc.Conn1() - - if c1.LocalAddr() != pipeAddr(0) { - t.Fatalf("unexpected local address: %v", c1.LocalAddr()) - } - - if c1.RemoteAddr() != pipeAddr(0) { - t.Fatalf("unexpected remote address: %v", c1.RemoteAddr()) - } -} - -func TestPipeConnsAddrCustom(t *testing.T) { - t.Parallel() - - pc := NewPipeConns() - - addr1 := &net.TCPAddr{IP: net.IPv4(1, 2, 3, 4), Port: 1234} - addr2 := &net.TCPAddr{IP: net.IPv4(5, 6, 7, 8), Port: 5678} - addr3 := &net.TCPAddr{IP: net.IPv4(9, 10, 11, 12), Port: 9012} - addr4 := &net.TCPAddr{IP: net.IPv4(13, 14, 15, 16), Port: 3456} - - pc.SetAddresses(addr1, addr2, addr3, addr4) - - c1 := pc.Conn1() - - if c1.LocalAddr() != addr1 { - t.Fatalf("unexpected local address: %v", c1.LocalAddr()) - } - - if c1.RemoteAddr() != addr2 { - t.Fatalf("unexpected remote address: %v", c1.RemoteAddr()) - } - - c2 := pc.Conn1() - - if c2.LocalAddr() != addr1 { - t.Fatalf("unexpected local address: %v", c2.LocalAddr()) - } - - if c2.RemoteAddr() != addr2 { - t.Fatalf("unexpected remote address: %v", c2.RemoteAddr()) - } -} diff --git a/vendor/github.com/valyala/fasthttp/testdata/test.png b/vendor/github.com/valyala/fasthttp/testdata/test.png deleted file mode 100644 index 8b137891791..00000000000 --- a/vendor/github.com/valyala/fasthttp/testdata/test.png +++ /dev/null @@ -1 +0,0 @@ - diff --git a/vendor/modules.txt b/vendor/modules.txt index 122557f9a7a..be5698960af 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -116,7 +116,7 @@ github.com/Azure/azure-sdk-for-go/sdk/internal/poller github.com/Azure/azure-sdk-for-go/sdk/internal/telemetry github.com/Azure/azure-sdk-for-go/sdk/internal/temporal github.com/Azure/azure-sdk-for-go/sdk/internal/uuid -# github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventgrid v0.5.0 +# github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventgrid v0.4.0 ## explicit; go 1.18 github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventgrid/internal github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventgrid/publisher @@ -131,7 +131,7 @@ github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/internal/exported github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/internal/sas github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/internal/sbauth github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/internal/utils -# github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus v1.7.1 +# github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus v1.7.0 ## explicit; go 1.18 github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/admin