Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
george-dorin committed Nov 15, 2023
1 parent df333ed commit c15c623
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions integration-tests/smoke/ocr2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,12 @@ import (
"fmt"
"math/big"
"net/http"
"strings"
"testing"
"time"

"github.com/stretchr/testify/require"

"github.com/smartcontractkit/chainlink-testing-framework/blockchain"
"github.com/smartcontractkit/chainlink-testing-framework/k8s/environment"
"github.com/smartcontractkit/chainlink-testing-framework/k8s/pkg/helm/chainlink"
"github.com/smartcontractkit/chainlink-testing-framework/k8s/pkg/helm/ethereum"
"github.com/smartcontractkit/chainlink-testing-framework/k8s/pkg/helm/mockserver"
mockservercfg "github.com/smartcontractkit/chainlink-testing-framework/k8s/pkg/helm/mockserver-cfg"
"github.com/smartcontractkit/chainlink-testing-framework/logging"
"github.com/smartcontractkit/chainlink-testing-framework/networks"
"github.com/smartcontractkit/chainlink/integration-tests/client"
"github.com/smartcontractkit/chainlink/integration-tests/config"

"github.com/smartcontractkit/chainlink/integration-tests/actions"
"github.com/smartcontractkit/chainlink/integration-tests/contracts"
"github.com/smartcontractkit/chainlink/integration-tests/docker/test_env"
Expand Down Expand Up @@ -194,42 +183,3 @@ func TestOCRv2JobReplacement(t *testing.T) {
roundData.Answer.Int64(),
)
}

func setupOCR2Test(t *testing.T, forwardersEnabled bool) (
testEnvironment *environment.Environment,
testNetwork blockchain.EVMNetwork,
) {
testNetwork = networks.MustGetSelectedNetworksFromEnv()[0]
evmConfig := ethereum.New(nil)
if !testNetwork.Simulated {
evmConfig = ethereum.New(&ethereum.Props{
NetworkName: testNetwork.Name,
Simulated: testNetwork.Simulated,
WsURLs: testNetwork.URLs,
})
}

var toml string
if forwardersEnabled {
toml = client.AddNetworkDetailedConfig(config.BaseOCR2Config, config.ForwarderNetworkDetailConfig, testNetwork)
} else {
toml = client.AddNetworksConfig(config.BaseOCR2Config, testNetwork)
}

chainlinkChart := chainlink.New(0, map[string]interface{}{
"replicas": 6,
"toml": toml,
})

testEnvironment = environment.New(&environment.Config{
NamespacePrefix: fmt.Sprintf("smoke-ocr2-%s", strings.ReplaceAll(strings.ToLower(testNetwork.Name), " ", "-")),
Test: t,
}).
AddHelm(mockservercfg.New(nil)).
AddHelm(mockserver.New(nil)).
AddHelm(evmConfig).
AddHelm(chainlinkChart)
err := testEnvironment.Run()
require.NoError(t, err, "Error running test environment")
return testEnvironment, testNetwork
}

0 comments on commit c15c623

Please sign in to comment.