1 ################################################################################
2 # Copyright (c) 2020 AT&T Intellectual Property. #
4 # Licensed under the Apache License, Version 2.0 (the "License"); #
5 # you may not use this file except in compliance with the License. #
6 # You may obtain a copy of the License at #
8 # http://www.apache.org/licenses/LICENSE-2.0 #
10 # Unless required by applicable law or agreed to in writing, software #
11 # distributed under the License is distributed on an "AS IS" BASIS, #
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
13 # See the License for the specific language governing permissions and #
14 # limitations under the License. #
15 ################################################################################
17 controls_schema_file = {
18 "$schema": "http://json-schema.org/draft-07/schema#",
21 "title": "Controls Section Schema",
27 "$id": "#/controls/test",
39 "xapp_name": "test_xapp",
45 "registry": "nexus3.o-ran-sc.org:10002",
46 "name": "o-ran-sc/ric-app-mc",
49 "command": "/playpen/bin/container_start.sh"
54 "command": ["/usr/local/bin/health_ck"]
56 "initialDelaySeconds": 5,
61 "path": "ric/v1/health/alive",
64 "initialDelaySeconds": 5,
71 "container": "mcxapp",
73 "description": "http service"
77 "container": "mcxapp",
79 "description": "rmr data port for mcxapp"
83 "container": "mcxapp",
85 "description": "rmr route port for mcxapp"
107 "objectName": "UEEventStreamingCounters",
108 "objectInstance": "SgNBAdditionRequest",
109 "name": "SgNBAdditionRequest",
111 "description": "The total number of SG addition request events processed"
114 "objectName": "UEEventStreamingCounters",
115 "objectInstance": "SgNBAdditionRequestAcknowledge",
116 "name": "SgNBAdditionRequestAcknowledge",
118 "description": "The total number of SG addition request acknowledge events processed"
123 mock_json_body_url = {
124 'config-file.json_url': 'http://0.0.0.0:8080/config-file.json',
125 'controls-schema.json_url': 'http://0.0.0.0:8080/schema.json'
128 mock_json_body_url_without_controls = {
129 'config-file.json_url': 'http://0.0.0.0:8080/config-file.json'
133 "config-file.json": config_file,
134 "controls-schema.json": controls_schema_file
137 mock_json_body_without_controls = {
138 "config-file.json": config_file
140 helm_repo_index_response = {'apiVersion': 'v1',
145 'created': '2020-03-12T19:10:17.178396719Z',
146 'description': 'test xApp Helm Chart',
147 'digest': 'd77dfb3f008e5174e90d79bfe982ef85b5dc5930141f6a1bd9995b2fa35',
149 'urls': ['charts/test-1.0.0.tgz'],
153 'generated': '2020-03-16T16:54:44Z',