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 ################################################################################
18 "$schema": "http://json-schema.org/draft-07/schema#",
19 "$id": "http://example.com/root.json",
21 "title": "The Root Schema",
32 "$id": "#/properties/local",
34 "title": "The Local Schema",
40 "$id": "#/properties/local/properties/host",
42 "title": "The Host Schema",
52 "$id": "#/properties/logger",
54 "title": "The Logger Schema",
60 "$id": "#/properties/logger/properties/level",
62 "title": "The Level Schema",
71 "$id": "#/properties/rmr",
73 "title": "The Rmr Schema",
83 "$id": "#/properties/rmr/properties/protPort",
85 "title": "The Protport Schema",
93 "$id": "#/properties/rmr/properties/maxSize",
95 "title": "The Maxsize Schema",
102 "$id": "#/properties/rmr/properties/numWorkers",
104 "title": "The Numworkers Schema",
111 "$id": "#/properties/rmr/properties/rxMessages",
113 "title": "The Rxmessages Schema",
115 "$id": "#/properties/rmr/properties/rxMessages/items",
117 "title": "The Items Schema",
123 "RIC_SUB_DEL_FAILURE",
130 "$id": "#/properties/rmr/properties/txMessages",
132 "title": "The Txmessages Schema",
134 "$id": "#/properties/rmr/properties/txMessages/items",
136 "title": "The Items Schema",
141 "RIC_SGNB_ADDITION_REQ",
142 "RIC_SGNB_ADDITION_ACK",
143 "RIC_SGNB_ADDITION_REJECT",
144 "RIC_SGNB_MOD_REQUEST",
145 "RIC_SGNB_MOD_REQUEST_ACK",
146 "RIC_SGNB_MOD_REQUEST_REJECT",
147 "RIC_SGNB_MOD_REQUIRED",
148 "RIC_SGNB_MOD_CONFIRM",
149 "RIC_SGNB_MOD_REFUSE",
150 "RIC_SGNB_RECONF_COMPLETE",
151 "RIC_SGNB_RELEASE_REQUEST",
152 "RIC_SGNB_RELEASE_CONFIRM",
153 "RIC_SGNB_RELEASE_REQUIRED",
154 "RIC_SGNB_RELEASE_REQUEST_ACK",
155 "RIC_SECONDARY_RAT_DATA_USAGE_REPORT",
156 "RIC_SN_STATUS_TRANSFER",
158 "RIC_UE_CONTEXT_RELEASE"
166 "$id": "#/properties/db",
168 "title": "The Db Schema",
176 "$id": "#/properties/db/properties/host",
178 "title": "The Host Schema",
186 "$id": "#/properties/db/properties/port",
188 "title": "The Port Schema",
195 "$id": "#/properties/db/properties/namespaces",
197 "title": "The Namespaces Schema",
199 "$id": "#/properties/db/properties/namespaces/items",
201 "title": "The Items Schema",
213 "$id": "#/properties/controls",
215 "title": "The Controls Schema",
225 "$id": "#/properties/controls/properties/active",
227 "title": "The Active Schema",
234 "$id": "#/properties/controls/properties/requestorId",
236 "title": "The Requestorid Schema",
243 "$id": "#/properties/controls/properties/ranFunctionId",
245 "title": "The Ranfunctionid Schema",
252 "$id": "#/properties/controls/properties/ricActionId",
254 "title": "The Ricactionid Schema",
261 "$id": "#/properties/controls/properties/interfaceId",
263 "title": "The Interfaceid Schema",
269 "$id": "#/properties/controls/properties/interfaceId/properties/globalENBId",
271 "title": "The Globalenbid Schema",
278 "$id": "#/properties/controls/properties/interfaceId/properties/globalENBId/properties/plmnId",
280 "title": "The Plmnid Schema",
288 "$id": "#/properties/controls/properties/interfaceId/properties/globalENBId/properties/eNBId",
290 "title": "The Enbid Schema",
303 "$id": "#/properties/metrics",
305 "title": "The Metrics Schema",
307 "$id": "#/properties/metrics/items",
309 "title": "The Items Schema",
319 "$id": "#/properties/metrics/items/properties/objectName",
321 "title": "The Objectname Schema",
324 "UEEventStreamingCounters"
329 "$id": "#/properties/metrics/items/properties/objectInstance",
331 "title": "The Objectinstance Schema",
334 "SgNBAdditionRequest"
339 "$id": "#/properties/metrics/items/properties/name",
341 "title": "The Name Schema",
344 "SgNBAdditionRequest"
349 "$id": "#/properties/metrics/items/properties/type",
351 "title": "The Type Schema",
359 "$id": "#/properties/metrics/items/properties/description",
361 "title": "The Description Schema",
364 "The total number of SG addition request events processed"
375 "xapp_name": "test_xapp",
380 "registry": "test_repo",
384 "command": "test command"
389 "registry": "test2_repo",
390 "name": "test2_name",
393 "command": "test2 command"
404 "namespaces": ["sdl", "rnib"]
419 "protPort": "tcp:4560",
426 "RIC_SUB_DEL_FAILURE",
432 "RIC_SGNB_ADDITION_REQ",
433 "RIC_SGNB_ADDITION_ACK",
434 "RIC_SGNB_ADDITION_REJECT",
435 "RIC_SGNB_MOD_REQUEST",
436 "RIC_SGNB_MOD_REQUEST_ACK",
437 "RIC_SGNB_MOD_REQUEST_REJECT",
438 "RIC_SGNB_MOD_REQUIRED",
439 "RIC_SGNB_MOD_CONFIRM",
440 "RIC_SGNB_MOD_REFUSE",
441 "RIC_SGNB_RELEASE_REQUEST",
442 "RIC_SGNB_RELEASE_CONFIRM",
443 "RIC_SGNB_RELEASE_REQUIRED",
444 "RIC_SGNB_RELEASE_REQUEST_ACK",
445 "RIC_SGNB_RECONF_COMPLETE",
446 "RIC_UE_CONTEXT_RELEASE",
448 "RIC_SECONDARY_RAT_DATA_USAGE_REPORT",
449 "RIC_SN_STATUS_TRANSFER"
454 "objectName": "UEEventStreamingCounters",
455 "objectInstance": "SgNBAdditionRequest",
456 "name": "SgNBAdditionRequest",
458 "description": "The total number of SG addition request events processed"
461 "objectName": "UEEventStreamingCounters",
462 "objectInstance": "SgNBAdditionRequestAcknowledge",
463 "name": "SgNBAdditionRequestAcknowledge",
465 "description": "The total number of SG addition request acknowledge events processed"
468 "objectName": "UEEventStreamingCounters",
469 "objectInstance": "SgNBAdditionRequestReject",
470 "name": "SgNBAdditionRequestReject",
472 "description": "The total number of SG addition request reject events processed"
475 "objectName": "UEEventStreamingCounters",
476 "objectInstance": "SgNBModificationRequest",
477 "name": "SgNBModificationRequest",
479 "description": "The total number of SG modification request events processed"
482 "objectName": "UEEventStreamingCounters",
483 "objectInstance": "SgNBModificationRequestAcknowledge",
484 "name": "SgNBModificationRequestAcknowledge",
486 "description": "The total number of SG modification request acknowledge events processed"
489 "objectName": "UEEventStreamingCounters",
490 "objectInstance": "SgNBModificationRequestReject",
491 "name": "SgNBModificationRequestReject",
493 "description": "The total number of SG modification request reject events processed"
496 "objectName": "UEEventStreamingCounters",
497 "objectInstance": "SgNBModificationRequired",
498 "name": "SgNBModificationRequired",
500 "description": "The total number of SG modification required events processed"
503 "objectName": "UEEventStreamingCounters",
504 "objectInstance": "SgNBModificationConfirm",
505 "name": "SgNBModificationConfirm",
507 "description": "The total number of SG modification confirm events processed"
510 "objectName": "UEEventStreamingCounters",
511 "objectInstance": "SgNBModificationRefuse",
512 "name": "SgNBModificationRefuse",
514 "description": "The total number of SG modification refuse events processed"
517 "objectName": "UEEventStreamingCounters",
518 "objectInstance": "SgNBReleaseRequest",
519 "name": "SgNBReleaseRequest",
521 "description": "The total number of SG release request events processed"
524 "objectName": "UEEventStreamingCounters",
525 "objectInstance": "SgNBReleaseRequestAcknowledge",
526 "name": "SgNBReleaseRequestAcknowledge",
528 "description": "The total number of SG release request acknowledge events processed"
531 "objectName": "UEEventStreamingCounters",
532 "objectInstance": "SgNBReleaseRequestReject",
533 "name": "SgNBReleaseRequestReject",
535 "description": "The total number of SG release request reject events processed"
538 "objectName": "UEEventStreamingCounters",
539 "objectInstance": "SgNBReleaseRequired",
540 "name": "SgNBReleaseRequired",
542 "description": "The total number of SG release required events processed"
545 "objectName": "UEEventStreamingCounters",
546 "objectInstance": "SgNBReleasenConfirm",
547 "name": "SgNBReleasenConfirm",
549 "description": "The total number of SG release confirm events processed"
552 "objectName": "UEEventStreamingCounters",
553 "objectInstance": "SgNBReconfigurationComplete",
554 "name": "SgNBReconfigurationComplete",
556 "description": "The total number of SG reconfiguration complete events processed"
559 "objectName": "UEEventStreamingCounters",
560 "objectInstance": "UEContextRelease",
561 "name": "UEContextRelease",
563 "description": "The total number of SG UE context release events processed"
566 "objectName": "UEEventStreamingCounters",
567 "objectInstance": "RRCTransfer",
568 "name": "RRCTransfer",
570 "description": "The total number of SG RRC transfers events processed"
573 "objectName": "UEEventStreamingCounters",
574 "objectInstance": "SNStatusTransfer",
575 "name": "SNStatusTransfer",
577 "description": "The total number of SG SN status transfers events processed"
580 "objectName": "UEEventStreamingCounters",
581 "objectInstance": "SecondaryRATDataUsageReport",
582 "name": "SecondaryRATDataUsageReport",
584 "description": "The total number of SG secondary RAT data usage reports events processed"
587 "objectName": "RMRCounters",
588 "objectInstance": "Transmitted",
589 "name": "Transmitted",
591 "description": "The total number of RMR messages transmited"
594 "objectName": "RMRCounters",
595 "objectInstance": "Received",
598 "description": "The total number of RMR messages received"
601 "objectName": "RMRCounters",
602 "objectInstance": "TransmitError",
603 "name": "TransmitError",
605 "description": "The total number of RMR messages transmission errors"
608 "objectName": "RMRCounters",
609 "objectInstance": "ReceiveError",
610 "name": "ReceiveError",
612 "description": "The total number of RMR messages receive errors"
615 "objectName": "SDLounters",
616 "objectInstance": "Stored",
619 "description": "The total number of stored SDL transactions"
622 "objectName": "SDLounters",
623 "objectInstance": "StoreError",
624 "name": "StoreError",
626 "description": "The total number of SDL store errors"
631 mock_json_body_url = {
632 'config-file.json_url': 'http://0.0.0.0:8080/config-file.json',
633 'schema.json_url': 'http://0.0.0.0:8080/schema.json'
637 "config-file.json": config_file,
638 "schema.json": schema_file
641 helm_repo_index_response={'apiVersion': 'v1',
646 'created': '2020-03-12T19:10:17.178396719Z',
647 'description': 'test xApp Helm Chart',
648 'digest': 'd77dfb3f008e5174e90d79bfe982ef85b5dc5930141f6a1bd9995b2fa35',
650 'urls':['charts/test-1.0.0.tgz'],
654 'generated': '2020-03-16T16:54:44Z',