Skip to content

Commit

Permalink
Changed some names
Browse files Browse the repository at this point in the history
  • Loading branch information
carl-andersson committed Feb 11, 2025
1 parent 67df2c9 commit 08faa06
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/unittesting-pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ jobs:
pip install pytest docker
- name: Run tests
env: |
TEST_USER: testuser
TEST_PASSWORD: testpassword
UNITTEST_DBUSER: unittest_username
UNITTEST_DBPASS: unittest_password
run: |
pytest fedn/tests --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
8 changes: 4 additions & 4 deletions fedn/tests/stores/helpers/database_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def mongo_config():
"mongo_config": {
"host": "localhost",
"port": port,
"username": os.environ.get("TEST_USER", "_"),
"password": os.environ.get("TEST_PASS", "_"),
"username": os.environ.get("UNITTEST_DBUSER", "_"),
"password": os.environ.get("UNITTEST_DBPASS", "_"),
}
}

Expand Down Expand Up @@ -56,8 +56,8 @@ def postgres_config():
return {
"type": "PostgreSQL",
"postgres_config": {
"username": os.environ.get("TEST_USER", "_"),
"password": os.environ.get("TEST_PASS", "_"),
"username": os.environ.get("UNITTEST_DBUSER", "_"),
"password": os.environ.get("UNITTEST_DBPASS", "_"),
"database": "fedn_db",
"host": "localhost",
"port": port
Expand Down
4 changes: 2 additions & 2 deletions fedn/tests/stores/helpers/mongo_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def start_mongodb_container():
ports={"27017/tcp": None}, # Let Docker choose an available port
name=CONTAINER_NAME,
environment={
"MONGO_INITDB_ROOT_USERNAME": os.environ.get("TEST_USER", "_"),
"MONGO_INITDB_ROOT_PASSWORD": os.environ.get("TEST_PASS", "_"),
"MONGO_INITDB_ROOT_USERNAME": os.environ.get("UNITTEST_DBUSER", "_"),
"MONGO_INITDB_ROOT_PASSWORD": os.environ.get("UNITTEST_DBPASS", "_"),
},
command="mongod"
)
Expand Down

0 comments on commit 08faa06

Please sign in to comment.