Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Nov 28, 2024
1 parent ad4a031 commit 4fcf525
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Languages
nodejs 18.6.0
yarn 1.22.19
golang 1.21.5
golang 1.23.3
python 3.9.13

# Tools
Expand Down
11 changes: 9 additions & 2 deletions integration-tests/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import (
"github.com/google/uuid"
"github.com/lib/pq"
"github.com/rs/zerolog/log"
"gopkg.in/guregu/null.v4"

ctfconfig "github.com/smartcontractkit/chainlink-testing-framework/lib/config"
"github.com/smartcontractkit/chainlink-testing-framework/lib/k8s/environment"
"github.com/smartcontractkit/chainlink-testing-framework/lib/k8s/pkg/helm/chainlink"
Expand Down Expand Up @@ -100,10 +102,15 @@ func New(testConfig *testconfig.TestConfig) *Common {
func (c *Common) Default(t *testing.T, namespacePrefix string) (*Common, error) {
productName := "data-feedsv2.0"
nsLabels, err := environment.GetRequiredChainLinkNamespaceLabels(productName, "soak")
require.NoError(o.t, err, "Error creating required chain.link labels for namespace")
if err != nil {
return nil, err
}

workloadPodLabels, err := environment.GetRequiredChainLinkWorkloadAndPodLabels(productName, "soak")
require.NoError(o.t, err, "Error creating required chain.link labels for workloads and pods")
if err != nil {
return nil, err
}

c.TestEnvDetails.K8Config = &environment.Config{
NamespacePrefix: fmt.Sprintf("starknet-%s", namespacePrefix),
TTL: c.TestEnvDetails.TestDuration,
Expand Down
4 changes: 1 addition & 3 deletions integration-tests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ module github.com/smartcontractkit/chainlink-starknet/integration-tests

go 1.23

toolchain go1.23.3

require (
github.com/NethermindEth/juno v0.3.1
github.com/NethermindEth/starknet.go v0.7.1-0.20240401080518-34a506f3cfdb
Expand All @@ -24,6 +22,7 @@ require (
github.com/testcontainers/testcontainers-go v0.34.0
go.uber.org/zap v1.27.0
golang.org/x/text v0.19.0
gopkg.in/guregu/null.v4 v4.0.0
)

require (
Expand Down Expand Up @@ -490,7 +489,6 @@ require (
google.golang.org/grpc v1.65.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
gopkg.in/guregu/null.v4 v4.0.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
Expand Down
6 changes: 6 additions & 0 deletions ops/devnet/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ func (m Chart) GetVersion() string {
return m.HelmProps.Version
}

func (m Chart) GetLabels() map[string]string {
return map[string]string{
"chain.link/component": "starknet-validator",
}
}

func (m Chart) ExportData(e *environment.Environment) error {
devnetLocalHTTP, err := e.Fwd.FindPort("starknet-dev:0", "starknetdev", "http").As(client.LocalConnection, client.HTTP)
if err != nil {
Expand Down

0 comments on commit 4fcf525

Please sign in to comment.