lib/promscrape: temporary disable TestClientProxyReadOk

This test is very flaky and prevents other tests from running in CI.
Disabling this test should improve tests quality, since it isn't reliable anyway.

There is a ticket to fix this test - https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7062

Once fixed, this test should be uncommented.

Signed-off-by: hagen1778 <roman@victoriametrics.com>
(cherry picked from commit c7569dac50)
This commit is contained in:
hagen1778 2024-09-24 14:59:25 +02:00
parent 73ae5dcfc5
commit 58ff914d96
No known key found for this signature in database
GPG key ID: 3BF75F3741CA9640

View file

@ -1,9 +1,7 @@
package promscrape
import (
"context"
"encoding/base64"
"errors"
"fmt"
"io"
"net"
@ -12,9 +10,7 @@ import (
"testing"
"time"
"github.com/VictoriaMetrics/VictoriaMetrics/lib/bytesutil"
"github.com/VictoriaMetrics/VictoriaMetrics/lib/promauth"
"github.com/VictoriaMetrics/VictoriaMetrics/lib/proxy"
)
func copyHeader(dst, src http.Header) {
@ -113,7 +109,7 @@ func newTestAuthConfig(t *testing.T, isTLS bool, ba *promauth.BasicAuthConfig) *
return ac
}
func TestClientProxyReadOk(t *testing.T) {
/*func TestClientProxyReadOk(t *testing.T) {
ctx := context.Background()
f := func(isBackendTLS, isProxyTLS bool, backendAuth, proxyAuth *promauth.BasicAuthConfig) {
t.Helper()
@ -198,4 +194,4 @@ func TestClientProxyReadOk(t *testing.T) {
f(false, true, &promauth.BasicAuthConfig{Username: "test", Password: promauth.NewSecret("1234")}, nil)
// backend tls and proxy auth
f(true, false, nil, &promauth.BasicAuthConfig{Username: "proxy-test", Password: promauth.NewSecret("1234")})
}
}*/