diff options
author | Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> | 2024-02-06 15:01:49 +0100 |
---|---|---|
committer | Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> | 2024-02-06 15:01:49 +0100 |
commit | 1404b9e8f3da4181da66f957b2a99a5c4430544e (patch) | |
tree | c28b4eaa85b5a867d0fe406b732a377428c6d9dd | |
parent | 3229032969a25304e3428a16cc416177aa73e046 (diff) |
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 <lukasz.rajewski@t-mobile.pl>
Change-Id: Id322472a72235715d75566f3389b9cdc6857f654
-rw-r--r-- | src/onaptests/steps/instantiate/sdnc_service.py | 8 |
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: |