diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 458c907e48c795e0b0a114ce8cb103ea025fa5e2..449c565ac6ad35ed34e1feca4eb819110ed5327c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,11 +10,11 @@ variables: POSTGRES_DB: testdatabase POSTGRES_USER: tester POSTGRES_PASSWORD: somepass - GDECORE_DB_HOST: postgres - GDECORE_DB: ${POSTGRES_DB} - GDECORE_USER: ${POSTGRES_USER} - GDECORE_PASSWORD: ${POSTGRES_PASSWORD} - GDECORE_SOURCEID: 1 + GDEIMPORTER_DB_HOST: postgres + GDEIMPORTER_DB: ${POSTGRES_DB} + GDEIMPORTER_USER: ${POSTGRES_USER} + GDEIMPORTER_PASSWORD: ${POSTGRES_PASSWORD} + GDEIMPORTER_SOURCEID: 1 cache: paths: diff --git a/tests/conftest.py b/tests/conftest.py index 51a0b07f3763d7c0024a48f69daa506b3f152f49..a6db227d9eaf28b8b69ea6863e1bb7f73eb54df6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -40,13 +40,13 @@ def test_db(): def init_test_db(): """Populates the test database.""" - if "GDECORE_DB_HOST" in os.environ: # When running the CI pipeline + if "GDEIMPORTER_DB_HOST" in os.environ: # When running the CI pipeline db_built_up_config = { - "host": os.environ.get("GDECORE_DB_HOST"), - "dbname": os.environ.get("GDECORE_DB"), + "host": os.environ.get("GDEIMPORTER_DB_HOST"), + "dbname": os.environ.get("GDEIMPORTER_DB"), "port": "", - "username": os.environ.get("GDECORE_USER"), - "password": os.environ.get("GDECORE_PASSWORD"), + "username": os.environ.get("GDEIMPORTER_USER"), + "password": os.environ.get("GDEIMPORTER_PASSWORD"), } # Create Database instance and establish the connection and cursor