Pin RabbitMQ and Cassandra docker image versions (#12174)

* 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)
This commit is contained in:
Nick Cabatoff 2021-07-27 14:45:32 +02:00 committed by GitHub
parent 2573cc3230
commit a83a629ae2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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"},
})

View file

@ -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),
)
@ -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()