Skip to content

Commit

Permalink
Pin RabbitMQ and Cassandra docker image versions (#12174) (#12205)
Browse files Browse the repository at this point in the history
* Work around rabbitmq regression with UserInfo.Tags in rabbitmq 3.9: use v3.8 docker image in tests.

* Also pin cassandra docker image version to 3.11 (4.00 was making tests fail)
  • Loading branch information
ncabatoff committed Jul 30, 2021
1 parent 24c9176 commit a4293a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion builtin/logical/rabbitmq/backend_test.go
Expand Up @@ -37,7 +37,7 @@ func prepareRabbitMQTestContainer(t *testing.T) (func(), string) {

runner, err := docker.NewServiceRunner(docker.RunOptions{
ImageRepo: "rabbitmq",
ImageTag: "3-management",
ImageTag: "3.8-management",
ContainerName: "rabbitmq",
Ports: []string{"15672/tcp"},
})
Expand Down
4 changes: 2 additions & 2 deletions plugins/database/cassandra/cassandra_test.go
Expand Up @@ -17,7 +17,7 @@ import (

func getCassandra(t *testing.T, protocolVersion interface{}) (*Cassandra, func()) {
host, cleanup := cassandra.PrepareTestContainer(t,
cassandra.Version("latest"),
cassandra.Version("3.11"),
cassandra.CopyFromTo(insecureFileMounts),
)

Expand Down Expand Up @@ -139,7 +139,7 @@ func TestCreateUser(t *testing.T) {
for name, test := range tests {
t.Run(name, func(t *testing.T) {
host, cleanup := cassandra.PrepareTestContainer(t,
cassandra.Version("latest"),
cassandra.Version("3.11"),
cassandra.CopyFromTo(insecureFileMounts),
)
defer cleanup()
Expand Down

0 comments on commit a4293a0

Please sign in to comment.