1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
import json
from pathlib import Path
from onaptests.utils.resources import get_resource_location
from .settings import * # noqa
CLEANUP_FLAG = True
ANCHOR_DATA = json.dumps(
{
"bookstore": {
"bookstore-name": "Chapters",
"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_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"
SCHEMA_SET_FILE = Path(get_resource_location("templates/artifacts/cps/bookstore.yang"))
SERVICE_NAME = "Basic CPS test"
SERVICE_DETAILS = "Validation of the most important CPS REST API requests"
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"
CHECK_POSTGRESQL = False
|