aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests
diff options
context:
space:
mode:
Diffstat (limited to 'src/onaptests')
-rw-r--r--src/onaptests/steps/instantiate/sdnc_service.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/onaptests/steps/instantiate/sdnc_service.py b/src/onaptests/steps/instantiate/sdnc_service.py
index 0c10591..6d88c64 100644
--- a/src/onaptests/steps/instantiate/sdnc_service.py
+++ b/src/onaptests/steps/instantiate/sdnc_service.py
@@ -93,13 +93,13 @@ class CheckSdncDbStep(BaseSdncStep):
conn = None
try:
conn = mysql.connect(
- database=settings.DATABASE,
- host=settings.DB_PRIMARY_HOST,
- port=settings.DB_PORT,
+ database=self.SDNC_DATABASE,
+ host=settings.SDNC_DB_PRIMARY_HOST,
+ port=settings.SDNC_DB_PORT,
user=self.login,
password=self.password)
cursor = conn.cursor()
- cursor.execute(settings.QUERY)
+ cursor.execute(self.SDNC_QUERY)
except Exception as e:
raise OnapTestException("Cannot connect to SDNC Database") from e
finally: