Skip to content

Commit

Permalink
Vault 20270 docker test raft wal (#24463)
Browse files Browse the repository at this point in the history
* adding a migration test from boltdb to raftwal and back
adding a migration test using snapshot restore

* feedback
  • Loading branch information
hghaf099 authored Jan 17, 2024
1 parent 6071268 commit 1bb29b3
Show file tree
Hide file tree
Showing 2 changed files with 394 additions and 0 deletions.
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

0 comments on commit 1bb29b3

Please sign in to comment.