aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/configuration/basic_cps_settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/onaptests/configuration/basic_cps_settings.py')
-rw-r--r--src/onaptests/configuration/basic_cps_settings.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/onaptests/configuration/basic_cps_settings.py b/src/onaptests/configuration/basic_cps_settings.py
index e359f65..896469e 100644
--- a/src/onaptests/configuration/basic_cps_settings.py
+++ b/src/onaptests/configuration/basic_cps_settings.py
@@ -31,6 +31,32 @@ ANCHOR_DATA = json.dumps(
}
}
)
+
+ANCHOR_DATA_2 = json.dumps(
+ {
+ "bookstore": {
+ "bookstore-name": "Chapters_2",
+ "categories": [{
+ "code": 1,
+ "name": "SciFi",
+ "books": [{
+ "title": "2001: A Space Odyssey",
+ "price": 5
+ }, {
+ "title": "Dune",
+ "price": 5
+ }]
+ }, {
+ "code": 2,
+ "name": "Kids",
+ "books": [{
+ "title": "Matilda"
+ }]
+ }]
+ }
+ }
+)
+
ANCHOR_NAME = "basic-cps-test-anchor"
DATASPACE_NAME = "basic-cps-test-dataspace"
SCHEMA_SET_NAME = "basic-cps-test-schema-set"
@@ -38,3 +64,12 @@ SCHEMA_SET_FILE = Path(get_resource_location("templates/artifacts/cps/bookstore.
SERVICE_NAME = "Basic CPS test"
SERVICE_COMPONENTS = "CPS"
+QUERY_1 = "/bookstore/categories[@code='1']/books"
+QUERY_2 = "//categories[@code='1']/books[@price=5 and @title='Dune']"
+QUERY_3 = "//bookstore"
+SECRET_NAME = "onap-cps-core-pg-user-creds"
+DATABASE = "cpsdb"
+DB_PRIMARY_HOST = "cps-core-pg-primary"
+DB_PORT = 5432
+DB_LOGIN = "login"
+DB_PASSWORD = "password"