aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--requirements.txt1
-rw-r--r--src/onaptests/configuration/basic_cps_settings.py1
-rw-r--r--src/onaptests/scenario/basic_cps.py4
3 files changed, 5 insertions, 1 deletions
diff --git a/requirements.txt b/requirements.txt
index 73655b3..945dc90 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -7,3 +7,4 @@ jinja2>3
kubernetes>=22.6.0
setuptools==65.3.0
natural==0.2.0
+pg8000==1.30.1
diff --git a/src/onaptests/configuration/basic_cps_settings.py b/src/onaptests/configuration/basic_cps_settings.py
index 896469e..690499f 100644
--- a/src/onaptests/configuration/basic_cps_settings.py
+++ b/src/onaptests/configuration/basic_cps_settings.py
@@ -73,3 +73,4 @@ DB_PRIMARY_HOST = "cps-core-pg-primary"
DB_PORT = 5432
DB_LOGIN = "login"
DB_PASSWORD = "password"
+CHECK_POSTGRESQL = False \ No newline at end of file
diff --git a/src/onaptests/scenario/basic_cps.py b/src/onaptests/scenario/basic_cps.py
index 59ecf96..adfefb5 100644
--- a/src/onaptests/scenario/basic_cps.py
+++ b/src/onaptests/scenario/basic_cps.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
"""Basic CPS test case."""
+from onapsdk.configuration import settings
from onaptests.scenario.scenario_base import BaseStep, ScenarioBase
from onaptests.steps.onboard.cps import (CheckPostgressDataBaseConnectionStep,
QueryCpsAnchorNodeStep)
@@ -15,7 +16,8 @@ class BasicCpsStep(BaseStep):
"""
super().__init__(cleanup=BaseStep.HAS_NO_CLEANUP)
self.add_step(QueryCpsAnchorNodeStep())
- self.add_step(CheckPostgressDataBaseConnectionStep())
+ if settings.CHECK_POSTGRESQL:
+ self.add_step(CheckPostgressDataBaseConnectionStep())
@property
def description(self) -> str: