Skip to content

Commit

Permalink
Bump integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
ilija42 committed Dec 2, 2024
1 parent adfb51e commit eea3b70
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 56 deletions.
28 changes: 14 additions & 14 deletions integration-tests/common/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"gopkg.in/guregu/null.v4"

"github.com/smartcontractkit/chainlink-testing-framework/lib/k8s/environment"
"github.com/smartcontractkit/chainlink/integration-tests/client"
"github.com/smartcontractkit/chainlink/deployment/environment/nodeclient"
"github.com/smartcontractkit/chainlink/v2/core/services/job"
"github.com/smartcontractkit/chainlink/v2/core/services/relay"

Expand All @@ -21,10 +21,10 @@ import (

type ChainlinkClient struct {
bech32Prefix string
ChainlinkNodes []*client.ChainlinkClient
NodeKeys []client.NodeKeysBundle
bTypeAttr *client.BridgeTypeAttributes
bootstrapPeers []client.P2PData
ChainlinkNodes []*nodeclient.ChainlinkClient
NodeKeys []nodeclient.NodeKeysBundle
bTypeAttr *nodeclient.BridgeTypeAttributes
bootstrapPeers []nodeclient.P2PData
}

var _ ChainlinkClient = ChainlinkClient{bTypeAttr: nil} // fix "field `bTypeAttr` is unused" lint
Expand All @@ -40,7 +40,7 @@ func NewChainlinkClient(env *environment.Environment, nodeName string, chainId s
return nil, errors.New("No connected nodes")
}

nodeKeys, _, err := client.CreateNodeKeysBundle(nodes, chainName, chainId)
nodeKeys, _, err := nodeclient.CreateNodeKeysBundle(nodes, chainName, chainId)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -98,7 +98,7 @@ func (cc *ChainlinkClient) LoadOCR2Config(proposalId string) (*OCR2Config, error
// CreateJobsForContract Creates and sets up the boostrap jobs as well as OCR jobs
func (cc *ChainlinkClient) CreateJobsForContract(chainId, nodeName, p2pPort, mockUrl string, juelsPerFeeCoinSource string, ocrControllerAddress string) error {
// Define node[0] as bootstrap node
cc.bootstrapPeers = []client.P2PData{
cc.bootstrapPeers = []nodeclient.P2PData{
{
InternalIP: cc.ChainlinkNodes[0].InternalIP(),
InternalPort: p2pPort,
Expand All @@ -119,7 +119,7 @@ func (cc *ChainlinkClient) CreateJobsForContract(chainId, nodeName, p2pPort, moc
ContractConfigConfirmations: 1, // don't wait for confirmation on devnet
}
// Setting up bootstrap node
jobSpec := &client.OCR2TaskJobSpec{
jobSpec := &nodeclient.OCR2TaskJobSpec{
Name: fmt.Sprintf("cosmos-OCRv2-%s-%s", "bootstrap", uuid.NewString()),
JobType: "bootstrap",
OCR2OracleSpec: oracleSpec,
Expand All @@ -136,7 +136,7 @@ func (cc *ChainlinkClient) CreateJobsForContract(chainId, nodeName, p2pPort, moc
p2pBootstrappers = append(p2pBootstrappers, cc.bootstrapPeers[i].P2PV2Bootstrapper())
}

sourceValueBridge := &client.BridgeTypeAttributes{
sourceValueBridge := &nodeclient.BridgeTypeAttributes{
Name: "mockserver-bridge",
URL: fmt.Sprintf("%s/%s", mockUrl, "five"),
RequestData: "{}",
Expand Down Expand Up @@ -170,11 +170,11 @@ func (cc *ChainlinkClient) CreateJobsForContract(chainId, nodeName, p2pPort, moc
},
}

jobSpec = &client.OCR2TaskJobSpec{
jobSpec = &nodeclient.OCR2TaskJobSpec{
Name: fmt.Sprintf("cosmos-OCRv2-%d-%s", nIdx, uuid.NewString()),
JobType: "offchainreporting2",
OCR2OracleSpec: oracleSpec,
ObservationSource: client.ObservationSourceSpecBridge(sourceValueBridge),
ObservationSource: nodeclient.ObservationSourceSpecBridge(sourceValueBridge),
}

_, err = n.MustCreateJob(jobSpec)
Expand All @@ -188,10 +188,10 @@ func (cc *ChainlinkClient) CreateJobsForContract(chainId, nodeName, p2pPort, moc
// connectChainlinkNodes creates a chainlink client for each node in the environment
// This is a non k8s version of the function in chainlink_k8s.go
// https://github.com/smartcontractkit/chainlink/blob/cosmos-test-keys/integration-tests/client/chainlink_k8s.go#L77
func connectChainlinkNodes(e *environment.Environment) ([]*client.ChainlinkClient, error) {
var clients []*client.ChainlinkClient
func connectChainlinkNodes(e *environment.Environment) ([]*nodeclient.ChainlinkClient, error) {
var clients []*nodeclient.ChainlinkClient
for _, nodeDetails := range e.ChainlinkNodeDetails {
c, err := client.NewChainlinkClient(&client.ChainlinkConfig{
c, err := nodeclient.NewChainlinkClient(&nodeclient.ChainlinkConfig{
URL: nodeDetails.LocalIP,
Email: "[email protected]",
Password: "fj293fbBnlQ!f9vNs",
Expand Down
27 changes: 14 additions & 13 deletions integration-tests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ require (
github.com/lib/pq v1.10.9
github.com/rs/zerolog v1.33.0
github.com/smartcontractkit/chainlink-common v0.3.1-0.20241127162636-07aa781ee1f4
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20241128182616-9941be1eb23e
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20241202172838-adfb51eeee13
github.com/smartcontractkit/chainlink-cosmos/ops v0.0.0-20231206164210-03f8b219402e
github.com/smartcontractkit/chainlink-testing-framework/lib v1.50.17
github.com/smartcontractkit/chainlink/integration-tests v0.0.0-20241012135014-37f3132362ec
github.com/smartcontractkit/chainlink/deployment v0.0.0-20241202173728-7a34cbe754c3
github.com/smartcontractkit/chainlink/v2 v2.14.0-mercury-20240807.0.20241202171101-50bcf8e35987
github.com/smartcontractkit/libocr v0.0.0-20241007185508-adbe57025f12
github.com/stretchr/testify v1.9.0
Expand Down Expand Up @@ -59,15 +59,16 @@ require (
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect
github.com/buger/jsonparser v1.1.1 // indirect
github.com/bytecodealliance/wasmtime-go/v23 v23.0.0 // indirect
github.com/bytedance/sonic v1.10.1 // indirect
github.com/bytedance/sonic v1.11.6 // indirect
github.com/bytedance/sonic/loader v0.1.1 // indirect
github.com/cdk8s-team/cdk8s-core-go/cdk8s/v2 v2.7.5 // indirect
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/chai2010/gettext-go v1.0.2 // indirect
github.com/chaos-mesh/chaos-mesh/api v0.0.0-20240821051457-da69c6d9617a // indirect
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect
github.com/chenzhuoyu/iasm v0.9.0 // indirect
github.com/cloudwego/base64x v0.1.4 // indirect
github.com/cloudwego/iasm v0.2.0 // indirect
github.com/cockroachdb/errors v1.11.3 // indirect
github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce // indirect
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
Expand All @@ -89,7 +90,7 @@ require (
github.com/cosmos/ics23/go v0.10.0 // indirect
github.com/cosmos/ledger-cosmos-go v0.12.4 // indirect
github.com/cpuguy83/dockercfg v0.3.2 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect
github.com/crate-crypto/go-ipa v0.0.0-20240223125850-b1e8a79f509c // indirect
github.com/crate-crypto/go-kzg-4844 v1.0.0 // indirect
github.com/danieljoos/wincred v1.1.2 // indirect
Expand Down Expand Up @@ -127,7 +128,7 @@ require (
github.com/getsentry/sentry-go v0.27.0 // indirect
github.com/gin-contrib/sessions v0.0.5 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/gin-gonic/gin v1.9.1 // indirect
github.com/gin-gonic/gin v1.10.0 // indirect
github.com/go-errors/errors v1.4.2 // indirect
github.com/go-json-experiment/json v0.0.0-20231102232822-2e55bd4e08b0 // indirect
github.com/go-kit/kit v0.12.0 // indirect
Expand Down Expand Up @@ -206,7 +207,7 @@ require (
github.com/jpillora/backoff v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
Expand All @@ -229,8 +230,8 @@ require (
github.com/moby/docker-image-spec v1.3.1 // indirect
github.com/moby/patternmatcher v0.6.0 // indirect
github.com/moby/spdystream v0.4.0 // indirect
github.com/moby/sys/sequential v0.5.0 // indirect
github.com/moby/sys/user v0.1.0 // indirect
github.com/moby/sys/sequential v0.6.0 // indirect
github.com/moby/sys/user v0.3.0 // indirect
github.com/moby/sys/userns v0.1.0 // indirect
github.com/moby/term v0.5.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
Expand Down Expand Up @@ -261,7 +262,7 @@ require (
github.com/rivo/uniseg v0.4.4 // indirect
github.com/robfig/cron/v3 v3.0.1 // indirect
github.com/rogpeppe/go-internal v1.13.1 // indirect
github.com/rs/cors v1.9.0 // indirect
github.com/rs/cors v1.10.1 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
Expand Down Expand Up @@ -301,11 +302,11 @@ require (
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
github.com/urfave/cli/v2 v2.25.7 // indirect
github.com/urfave/cli/v2 v2.27.5 // indirect
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
github.com/x448/float16 v0.8.4 // indirect
github.com/xlab/treeprint v1.2.0 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
github.com/zondax/hid v0.9.2 // indirect
github.com/zondax/ledger-go v0.14.3 // indirect
Expand Down
Loading

0 comments on commit eea3b70

Please sign in to comment.