Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test fix on credential #15373

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions integration-tests/testsetups/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package testsetups

import (
"bytes"
"crypto/tls"
"fmt"
"math/big"
"os"
Expand All @@ -10,7 +11,6 @@ import (
"time"

chainsel "github.com/smartcontractkit/chain-selectors"

commonconfig "github.com/smartcontractkit/chainlink-common/pkg/config"
jobv1 "github.com/smartcontractkit/chainlink-protos/job-distributor/v1/job"
"github.com/smartcontractkit/chainlink-testing-framework/lib/blockchain"
Expand All @@ -22,6 +22,8 @@ import (
"github.com/smartcontractkit/chainlink-testing-framework/lib/utils/ptr"
"github.com/smartcontractkit/chainlink-testing-framework/lib/utils/testcontext"
"github.com/smartcontractkit/chainlink-testing-framework/seth"
"google.golang.org/grpc/credentials"

"github.com/smartcontractkit/chainlink/deployment"
"github.com/smartcontractkit/chainlink/deployment/ccip/changeset"
commonchangeset "github.com/smartcontractkit/chainlink/deployment/common/changeset"
Expand Down Expand Up @@ -50,7 +52,6 @@ import (
"github.com/stretchr/testify/require"
"github.com/subosito/gotenv"
"golang.org/x/sync/errgroup"
"google.golang.org/grpc/credentials/insecure"
)

// DeployedLocalDevEnvironment is a helper struct for setting up a local dev environment with docker
Expand Down Expand Up @@ -407,7 +408,9 @@ func CreateDockerEnv(t *testing.T) (
GRPC: jd.Grpc,
// we will use internal wsrpc for nodes on same docker network to connect to JD
WSRPC: jd.InternalWSRPC,
Creds: insecure.NewCredentials(),
Creds: credentials.NewTLS(&tls.Config{
MinVersion: tls.VersionTLS12,
}),
}
}
require.NotEmpty(t, jdConfig, "JD config is empty")
Expand Down
Loading