Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vault 20270 docker test raft wal #24463

Merged
merged 4 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions sdk/helper/testcluster/docker/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,18 @@ COPY vault /bin/vault
return tag, nil
}

func (dc *DockerCluster) GetActiveClusterNode() *DockerClusterNode {
ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
defer cancel()

node, err := testcluster.WaitForActiveNode(ctx, dc)
if err != nil {
panic(fmt.Sprintf("no cluster node became active in timeout window: %v", err))
}

return dc.ClusterNodes[node]
}

/* Notes on testing the non-bridge network case:
- you need the test itself to be running in a container so that it can use
the network; create the network using
Expand Down
Loading
Loading