From: Lukasz Rajewski Date: Tue, 6 Feb 2024 14:01:49 +0000 (+0100) Subject: Fixed wrong names of settings in sdnc service X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F41%2F137141%2F1;p=testsuite%2Fpythonsdk-tests.git 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 --- 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: