Commit 4fe36f3e authored by Cecilia Nievas's avatar Cecilia Nievas
Browse files

Fixed naming of the CI test database

parent e75002f6
Pipeline #42276 failed with stage
in 2 minutes and 23 seconds
......@@ -10,11 +10,11 @@ variables:
POSTGRES_DB: testdatabase
POSTGRES_USER: tester
POSTGRES_PASSWORD: somepass
GDEIMPORTER_DB_HOST: postgres
GDEIMPORTER_DB: ${POSTGRES_DB}
GDEIMPORTER_USER: ${POSTGRES_USER}
GDEIMPORTER_PASSWORD: ${POSTGRES_PASSWORD}
GDEIMPORTER_SOURCEID: 1
GDECORE_DB_HOST: postgres
GDECORE_DB: ${POSTGRES_DB}
GDECORE_USER: ${POSTGRES_USER}
GDECORE_PASSWORD: ${POSTGRES_PASSWORD}
GDECORE_SOURCEID: 1
cache:
paths:
......
......@@ -40,13 +40,13 @@ def test_db():
def init_test_db():
"""Populates the test database."""
if "GDEIMPORTER_DB_HOST" in os.environ: # When running the CI pipeline
if "GDECORE_DB_HOST" in os.environ: # When running the CI pipeline
db_built_up_config = {
"host": os.environ.get("GDEIMPORTER_DB_HOST"),
"dbname": os.environ.get("GDEIMPORTER_DB"),
"host": os.environ.get("GDECORE_DB_HOST"),
"dbname": os.environ.get("GDECORE_DB"),
"port": "",
"username": os.environ.get("GDEIMPORTER_USER"),
"password": os.environ.get("GDEIMPORTER_PASSWORD"),
"username": os.environ.get("GDECORE_USER"),
"password": os.environ.get("GDECORE_PASSWORD"),
}
# Create Database instance and establish the connection and cursor
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment