Build: Fix Redis/Memcached integration tests (#64298)

* Build: Fix integration cache tests

* Allow REDIS_URL with scheme

* Reduce cache integration tests timeout to 5m

* Apply suggestion from code review

* Run redis/memcached integration tests in OSS pipelines

* Change redis image
This commit is contained in:
Sofia Papagiannaki
2023-04-05 11:55:55 +03:00
committed by GitHub
parent f69304fd50
commit caac9838d8
10 changed files with 215 additions and 57 deletions
+2 -2
View File
@@ -1144,7 +1144,7 @@ def redis_integration_tests_step():
"commands": [
"dockerize -wait tcp://redis:6379/0 -timeout 120s",
"go clean -testcache",
"go list './pkg/...' | xargs -I {} sh -c 'go test -run Integration -covermode=atomic -timeout=5m {}'",
"go test -run IntegrationRedis -covermode=atomic -timeout=2m ./pkg/...",
],
}
@@ -1159,7 +1159,7 @@ def memcached_integration_tests_step():
"commands": [
"dockerize -wait tcp://memcached:11211 -timeout 120s",
"go clean -testcache",
"go list './pkg/...' | xargs -I {} sh -c 'go test -run Integration -covermode=atomic -timeout=5m {}'",
"go test -run IntegrationMemcached -covermode=atomic -timeout=2m ./pkg/...",
],
}