diff options
author | pawel.denst <pawel.denst@external.t-mobile.pl> | 2023-08-31 13:57:59 +0000 |
---|---|---|
committer | pawel.denst <pawel.denst@external.t-mobile.pl> | 2023-09-01 09:29:30 +0000 |
commit | da29da250e5badd022c1dfb977c2d8b91f8837c8 (patch) | |
tree | 433e17e9e0d1e905e6f58bd16942a42790e25c8c /src/onaptests/configuration | |
parent | 190b7b8ca15a545ec83424bc2367dab954780f32 (diff) |
Improve-CPS-sanity-test
Improve CPS sanity test
Issue-ID: INT-2263
Signed-off-by: pawel.denst <pawel.denst@external.t-mobile.pl>
Change-Id: I64c54920d1c70c5aa8befb058402fe234eaab1e8
Diffstat (limited to 'src/onaptests/configuration')
-rw-r--r-- | src/onaptests/configuration/basic_cps_settings.py | 35 |
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" |