From 1404b9e8f3da4181da66f957b2a99a5c4430544e Mon Sep 17 00:00:00 2001 From: Lukasz Rajewski Date: Tue, 6 Feb 2024 15:01:49 +0100 Subject: Fixed wrong names of settings in sdnc service Fixed wrong names of settings in sdnc service Issue-ID: TEST-395 Signed-off-by: Lukasz Rajewski Change-Id: Id322472a72235715d75566f3389b9cdc6857f654 --- src/onaptests/steps/instantiate/sdnc_service.py | 8 ++++---- 1 file 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: -- cgit 1.2.3-korg