Skip to content

Commit

Permalink
Feature/commit init no evm lf tests (#1470)
Browse files Browse the repository at this point in the history
This PR tests https://github.com/smartcontractkit/ccip/pull/1361/files
without changes made to integration-tests/docker/test_env/cl_node.go

---------

Co-authored-by: Patrick <[email protected]>
  • Loading branch information
lukaszcl and patrickhuie19 authored Sep 26, 2024
1 parent 6007b86 commit c5f3590
Showing 1 changed file with 10 additions and 36 deletions.
46 changes: 10 additions & 36 deletions integration-tests/docker/test_env/cl_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ type ClNode struct {
UserEmail string `json:"userEmail"`
UserPassword string `json:"userPassword"`
AlwaysPullImage bool `json:"-"`
RemoteDebugger bool `json:"-"`
t *testing.T
l zerolog.Logger
}
Expand Down Expand Up @@ -146,8 +145,6 @@ func NewClNode(networks []string, imageName, imageVersion string, nodeConfig *ch
NodeConfig: nodeConfig,
PostgresDb: pgDb,
l: log.Logger,
// TODO CCIP-3447 drill user specified config through to set RemoteDebugger
RemoteDebugger: false,
}
n.SetDefaultHooks()
for _, opt := range opts {
Expand Down Expand Up @@ -325,7 +322,7 @@ func (n *ClNode) containerStartOrRestart(restartDb bool) error {
return fmt.Errorf("%s err: %w", ErrStartCLNodeContainer, err)
}

clEndpoint, err := test_env.GetEndpointFromPort(testcontext.Get(n.t), container, "http", "6688")
clEndpoint, err := test_env.GetEndpoint(testcontext.Get(n.t), container, "http")
if err != nil {
return err
}
Expand Down Expand Up @@ -445,43 +442,20 @@ func (n *ClNode) getContainerRequest(secrets string) (
adminCredsPath := "/home/admin-credentials.txt"
apiCredsPath := "/home/api-credentials.txt"

entrypoint := []string{
"chainlink",
"-c", configPath,
"-s", secretsPath,
"node", "start", "-d",
"-p", adminCredsPath,
"-a", apiCredsPath,
}

if n.RemoteDebugger {
entrypoint = []string{
"/home/chainlink/go/bin/dlv",
"exec",
"/usr/local/bin/chainlink",
"--accept-multiclient",
"--headless",
"--listen=0.0.0.0:40000",
"--api-version=2",
"--continue",
"--",
"chainlink",
"-c", configPath,
"-s", secretsPath,
"node", "start", "-d",
"-p", adminCredsPath,
"-a", apiCredsPath,
}
}

return &tc.ContainerRequest{
Name: n.ContainerName,
AlwaysPullImage: n.AlwaysPullImage,
Image: fmt.Sprintf("%s:%s", n.ContainerImage, n.ContainerVersion),
ExposedPorts: []string{"6688/tcp", test_env.NatPortFormat("40000")},
ExposedPorts: []string{"6688/tcp"},
Env: n.ContainerEnvs,
Entrypoint: entrypoint,
Networks: append(n.Networks, "tracing"),
Entrypoint: []string{"chainlink",
"-c", configPath,
"-s", secretsPath,
"node", "start", "-d",
"-p", adminCredsPath,
"-a", apiCredsPath,
},
Networks: append(n.Networks, "tracing"),
WaitingFor: tcwait.ForHTTP("/readyz").
WithPort("6688/tcp").
WithStartupTimeout(n.StartupTimeout).
Expand Down

0 comments on commit c5f3590

Please sign in to comment.