Fixed wrong names of settings in sdnc service 41/137141/1
authorLukasz Rajewski <lukasz.rajewski@t-mobile.pl>
Tue, 6 Feb 2024 14:01:49 +0000 (15:01 +0100)
committerLukasz Rajewski <lukasz.rajewski@t-mobile.pl>
Tue, 6 Feb 2024 14:01:49 +0000 (15:01 +0100)
Fixed wrong names of settings in sdnc service

Issue-ID: TEST-395
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl>
Change-Id: Id322472a72235715d75566f3389b9cdc6857f654

src/onaptests/steps/instantiate/sdnc_service.py

index 0c10591..6d88c64 100644 (file)
@@ -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: