Skip to content

Commit 33b46bd

Browse files
committed
update testcontainer
1 parent 67b007f commit 33b46bd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

sdk/python/tests/integration/feature_repos/universal/online_store/cassandra.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import time
1818
from typing import Dict
1919

20-
from testcontainers.core.container import DockerContainer
20+
from testcontainers.cassandra import CassandraContainer
2121
from testcontainers.core.waiting_utils import wait_for_logs
2222

2323
from tests.integration.feature_repos.universal.online_store_creator import (
@@ -28,8 +28,8 @@
2828
class CassandraOnlineStoreCreator(OnlineStoreCreator):
2929
def __init__(self, project_name: str, **kwargs):
3030
super().__init__(project_name)
31-
self.container = DockerContainer("library/cassandra:4.0.4").with_exposed_ports(
32-
"9042"
31+
self.container = CassandraContainer("cassandra:4.1.4").with_exposed_ports(
32+
9042
3333
)
3434

3535
def create_online_store(self) -> Dict[str, object]:

sdk/python/tests/integration/feature_repos/universal/online_store/postgres.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class PostgresOnlieStoreCreator(OnlineStoreCreator):
1111
def __init__(self, project_name: str, **kwargs):
1212
super().__init__(project_name)
1313
self.container = (
14-
PostgresContainer("postgres:latest", platform="linux/amd64")
14+
PostgresContainer("postgres:16", platform="linux/amd64")
1515
.with_exposed_ports(5432)
1616
.with_env("POSTGRES_USER", "root")
1717
.with_env("POSTGRES_PASSWORD", "test")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
"pytest-mock==1.10.4",
178178
"pytest-env",
179179
"Sphinx>4.0.0,<7",
180-
"testcontainers>=3.5,<4",
180+
"testcontainers==4.3.3",
181181
"firebase-admin>=5.2.0,<6",
182182
"pre-commit<3.3.2",
183183
"assertpy==1.1",

0 commit comments

Comments
 (0)