From e22b61ab9d2b69775949e3c04d23a38b9c3b0849 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Mon, 5 Dec 2022 11:34:20 -0500 Subject: [PATCH] use external IP in digital ocean --- test/e2e/pkg/infra/digitalocean/digitalocean.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/pkg/infra/digitalocean/digitalocean.go b/test/e2e/pkg/infra/digitalocean/digitalocean.go index f5bd0d2e8..3fbadc964 100644 --- a/test/e2e/pkg/infra/digitalocean/digitalocean.go +++ b/test/e2e/pkg/infra/digitalocean/digitalocean.go @@ -34,11 +34,11 @@ func (p Provider) CreateNode(ctx context.Context, n *e2e.Node) error { return nil } func (p Provider) StartTendermint(ctx context.Context, n *e2e.Node) error { - return e2essh.Exec(p.SSHConfig, fmt.Sprintf("%s:%d", n.InternalIP, sshPort), fmt.Sprintf("systemctl start %s", testappName)) + return e2essh.Exec(p.SSHConfig, fmt.Sprintf("%s:%d", n.ExternalIP, sshPort), fmt.Sprintf("systemctl start %s", testappName)) } func (p Provider) TerminateTendermint(ctx context.Context, n *e2e.Node) error { - return e2essh.Exec(p.SSHConfig, fmt.Sprintf("%s:%d", n.InternalIP, sshPort), fmt.Sprintf("systemctl -s SIGTERM %s", testappName)) + return e2essh.Exec(p.SSHConfig, fmt.Sprintf("%s:%d", n.ExternalIP, sshPort), fmt.Sprintf("systemctl -s SIGTERM %s", testappName)) } func (p Provider) KillTendermint(ctx context.Context, n *e2e.Node) error { - return e2essh.Exec(p.SSHConfig, fmt.Sprintf("%s:%d", n.InternalIP, sshPort), fmt.Sprintf("systemctl -s SIGKILL %s", testappName)) + return e2essh.Exec(p.SSHConfig, fmt.Sprintf("%s:%d", n.ExternalIP, sshPort), fmt.Sprintf("systemctl -s SIGKILL %s", testappName)) }