Skip to content

Commit

Permalink
Explicitly set username and password
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-ince committed Oct 21, 2024
1 parent ec9db4a commit 727b987
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ def gds_version(driver: neo4j.Driver) -> str:

@pytest.fixture(scope="module")
def neo4j():
testcontainers.neo4j.Neo4jContainer.NEO4J_USER = "neo4j"
testcontainers.neo4j.Neo4jContainer.NEO4J_ADMIN_PASSWORD = "password"

container = (
testcontainers.neo4j.Neo4jContainer(os.getenv("NEO4J_IMAGE", "neo4j:5-enterprise"))
.with_volume_mapping(os.getenv("GDS_LICENSE_FILE", "/tmp/gds.license"), "/licenses/gds.license")
Expand All @@ -31,6 +34,8 @@ def neo4j():
.with_env("NEO4J_gds_arrow_listen__address", "0.0.0.0")
.with_exposed_ports(7687, 7474, 8491)
)
container.NEO4J_USER = "neo4j"
container.NEO4J_ADMIN_PASSWORD = "password"
container.start()

yield container
Expand Down

0 comments on commit 727b987

Please sign in to comment.