mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Pin MongoDB test container images pre-v6 (#16880)
v6 was released in the last 24h, and our tests fail to connect to the db when v6 is used. Using v6 needs investigating, but for now I'm pinning to the last known good version.
This commit is contained in:
@@ -57,7 +57,7 @@ func TestBackend_basic(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
cleanup, connURI := mongodb.PrepareTestContainer(t, "latest")
|
||||
cleanup, connURI := mongodb.PrepareTestContainer(t, "5.0.10")
|
||||
defer cleanup()
|
||||
connData := map[string]interface{}{
|
||||
"uri": connURI,
|
||||
@@ -81,7 +81,7 @@ func TestBackend_roleCrud(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
cleanup, connURI := mongodb.PrepareTestContainer(t, "latest")
|
||||
cleanup, connURI := mongodb.PrepareTestContainer(t, "5.0.10")
|
||||
defer cleanup()
|
||||
connData := map[string]interface{}{
|
||||
"uri": connURI,
|
||||
@@ -107,7 +107,7 @@ func TestBackend_leaseWriteRead(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
cleanup, connURI := mongodb.PrepareTestContainer(t, "latest")
|
||||
cleanup, connURI := mongodb.PrepareTestContainer(t, "5.0.10")
|
||||
defer cleanup()
|
||||
connData := map[string]interface{}{
|
||||
"uri": connURI,
|
||||
|
||||
Reference in New Issue
Block a user