12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-10-28T07:42:23.496540 #1] INFO -- : Skipping file ./src/onapsdk/sdc/vl.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 15
def __init__(self, name: str, version: str = None, sdc_values: Dict[str, str] = None):
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.496666 #1] INFO -- : Skipping file ./src/onapsdk/sdc/pnf.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 32
def __init__(self, name: str = None, version: str = None, vendor: Vendor = None, # pylint: disable=too-many-arguments
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.508339 #1] INFO -- : Skipping file ./src/onapsdk/sdc/category_management.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 26
def __init__(self, name: str) -> None:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.508976 #1] INFO -- : Skipping file ./src/onapsdk/sdc/service.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 34
name: str
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.520057 #1] INFO -- : Skipping file ./src/onapsdk/sdc/vfc.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 15
def __init__(self, name: str, version: str = None, sdc_values: Dict[str, str] = None):
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.520602 #1] INFO -- : Skipping file ./src/onapsdk/sdc/sdc_element.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 19
def __init__(self, name: str = None) -> None:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.531682 #1] INFO -- : Skipping file ./src/onapsdk/sdc/properties.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 15
unique_id: str
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.532325 #1] INFO -- : Skipping file ./src/onapsdk/sdc/vsp.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 35
def __init__(self, name: str = None, package: BinaryIO = None,
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.543503 #1] INFO -- : Skipping file ./src/onapsdk/sdc/sdc_resource.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 33
def __init__(self, name: str = None, version: str = None, # pylint: disable=too-many-arguments
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.544102 #1] INFO -- : Skipping file ./src/onapsdk/sdc/vf.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 35
def __init__(self, name: str = None, version: str = None, sdc_values: Dict[str, str] = None, # pylint: disable=too-many-arguments
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.555033 #1] INFO -- : Skipping file ./src/onapsdk/sdc/__init__.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 21
server: str = "SDC"
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.555548 #1] INFO -- : Skipping file ./src/onapsdk/sdc/vendor.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 28
def __init__(self, name: str = None):
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.566450 #1] INFO -- : Skipping file ./src/onapsdk/sdc/component.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 17
created_from_csar: bool
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.567113 #1] INFO -- : Skipping file ./src/onapsdk/aai/service_design_and_creation.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 13
def __init__(self, service_id: str, service_description: str, resource_version: str) -> None:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.578040 #1] INFO -- : Skipping file ./src/onapsdk/aai/cloud_infrastructure/cloud_region.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 22
name: str
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.578528 #1] INFO -- : Skipping file ./src/onapsdk/aai/cloud_infrastructure/tenant.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 10
cloud_region: "CloudRegion",
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.589667 #1] INFO -- : Skipping file ./src/onapsdk/aai/cloud_infrastructure/geo_region.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 14
geo_region_id: str,
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.601199 #1] INFO -- : Skipping file ./src/onapsdk/aai/cloud_infrastructure/complex.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 17
physical_location_id: str,
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.602173 #1] INFO -- : Skipping file ./src/onapsdk/aai/bulk.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 19
action: str
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.613034 #1] INFO -- : Skipping file ./src/onapsdk/aai/aai_element.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 25
related_to: str
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.624760 #1] INFO -- : Skipping file ./src/onapsdk/aai/network/site_resource.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 13
site_resource_id: str,
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.636134 #1] INFO -- : Skipping file ./src/onapsdk/aai/business/pnf.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 15
service_instance: "ServiceInstance",
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.636745 #1] INFO -- : Skipping file ./src/onapsdk/aai/business/platform.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 13
def __init__(self, name: str, resource_version: str) -> None:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.647565 #1] INFO -- : Skipping file ./src/onapsdk/aai/business/vf_module.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 13
vnf_instance: "VnfInstance",
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.648122 #1] INFO -- : Skipping file ./src/onapsdk/aai/business/line_of_business.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 13
def __init__(self, name: str, resource_version: str) -> None:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.658904 #1] INFO -- : Skipping file ./src/onapsdk/aai/business/network.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 12
service_instance: "ServiceInstance",
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.659491 #1] INFO -- : Skipping file ./src/onapsdk/aai/business/customer.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 18
cloud_owner: str = None
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.670809 #1] INFO -- : Skipping file ./src/onapsdk/aai/business/vnf.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 19
service_instance: "ServiceInstance",
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.671375 #1] INFO -- : Skipping file ./src/onapsdk/aai/business/project.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 13
def __init__(self, name: str, resource_version: str) -> None:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.682450 #1] INFO -- : Skipping file ./src/onapsdk/aai/business/service.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 21
service_subscription: "ServiceSubscription",
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.693799 #1] INFO -- : Skipping file ./src/onapsdk/aai/business/sp_partner.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 13
def __init__(self, sp_partner_id: str, resource_version: str, url: str = None, # pylint: disable=too-many-arguments, too-many-locals
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.696928 #1] INFO -- : Skipping file ./src/onapsdk/aai/business/instance.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 12
resource_version: str = None,
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.711103 #1] INFO -- : Skipping file ./src/onapsdk/aai/business/owning_entity.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 15
def __init__(self, name: str, owning_entity_id: str, resource_version: str) -> None:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.722373 #1] INFO -- : Skipping file ./src/onapsdk/msb/esr.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 12
base_url = f"{MSB.base_url}/api/aai-esr-server/v1/vims"
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.722919 #1] INFO -- : Skipping file ./src/onapsdk/msb/multicloud.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 12
base_url = f"{MSB.base_url}/api/multicloud/v1"
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.735125 #1] INFO -- : Skipping file ./src/onapsdk/msb/k8s/definition.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 13
base_url = f"{MSB.base_url}/api/multicloud-k8s/v1/v1/rb/definition"
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.745246 #1] INFO -- : Skipping file ./src/onapsdk/msb/k8s/instance.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 14
def __init__(self, request: dict) -> None:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.746579 #1] INFO -- : Skipping file ./src/onapsdk/msb/k8s/connectivity_info.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 10
url = f"{MSB.base_url}{api_version}/connectivity-info"
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.757824 #1] INFO -- : Skipping file ./src/onapsdk/nbi/nbi.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 26
def is_status_ok(cls) -> bool:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.769098 #1] INFO -- : Skipping file ./src/onapsdk/cds/cds_element.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 17
_url: str = settings.CDS_URL
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.779348 #1] INFO -- : Skipping file ./src/onapsdk/cds/blueprint.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 26
tosca_meta_file_version: str
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.780432 #1] INFO -- : Skipping file ./src/onapsdk/cds/blueprint_model.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 17
blueprint_model_id: str,
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.790550 #1] INFO -- : Skipping file ./src/onapsdk/cds/data_dictionary.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 15
logger: Logger = getLogger(__name__)
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.791802 #1] INFO -- : Skipping file ./src/onapsdk/cds/blueprint_processor.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 14
load_model_type: bool = True,
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.807955 #1] INFO -- : Skipping file ./src/onapsdk/sdnc/sdnc_element.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 16
def get_guis(cls) -> GuiItem:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.818475 #1] INFO -- : Skipping file ./src/onapsdk/sdnc/preload.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 16
headers: Dict[str, str] = headers_sdnc_creator(SdncElement.headers)
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.830945 #1] INFO -- : Skipping file ./src/onapsdk/utils/mixins.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 26
def completed(self) -> bool:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.841498 #1] INFO -- : Skipping file ./src/onapsdk/utils/gui.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 12
url: str
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.842642 #1] INFO -- : Skipping file ./src/onapsdk/utils/configuration.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 8
def tosca_path() -> str:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.852797 #1] INFO -- : Skipping file ./src/onapsdk/utils/__init__.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 9
def get_zulu_time_isoformat() -> str:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.853990 #1] INFO -- : Skipping file ./src/onapsdk/utils/headers_creator.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 13
def headers_sdc_creator(base_header: Dict[str, str],
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.864285 #1] INFO -- : Skipping file ./src/onapsdk/utils/jinja.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 8
def jinja_env() -> Environment:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.865370 #1] INFO -- : Skipping file ./src/onapsdk/utils/tosca_file_handler.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 17
def get_parameter_from_yaml(parameter: str, config_file: str):
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.875616 #1] INFO -- : Skipping file ./src/onapsdk/dmaap/dmaap_service.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 15
_url: str = settings.DMAAP_URL
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.887028 #1] INFO -- : Skipping file ./src/onapsdk/dmaap/dmaap.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 16
get_all_events_url = f"{dmaap_url}/events"
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.888173 #1] INFO -- : Skipping file ./src/onapsdk/ves/ves_service.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 16
_url: str = settings.VES_URL
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.898549 #1] INFO -- : Skipping file ./src/onapsdk/ves/ves.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 18
event_endpoint_url: str = "{}/eventListener/{}"
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.909900 #1] INFO -- : Skipping file ./src/onapsdk/clamp/clamp_element.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 17
name: str = "CLAMP"
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.910963 #1] INFO -- : Skipping file ./src/onapsdk/clamp/loop_instance.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 22
def __init__(self, template: str, name: str, details: dict) -> None:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.932477 #1] INFO -- : Skipping file ./src/onapsdk/vid/vid.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 19
def __init__(self, name: str) -> None:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.943964 #1] INFO -- : Skipping file ./src/onapsdk/onap_service.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 54
ph_dict: Dict[str, Any] = field(default_factory=dict)
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.951250 #1] INFO -- : Skipping file ./src/onapsdk/so/so_element.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 25
name: str = None
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.955189 #1] INFO -- : Skipping file ./src/onapsdk/so/so_db_adapter.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 19
identity_id: str
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.962613 #1] INFO -- : Skipping file ./src/onapsdk/so/deletion.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 18
def send_request(cls, instance: "AaiResource", a_la_carte: bool = True) -> "Deletion":
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.974232 #1] INFO -- : Skipping file ./src/onapsdk/so/instantiation.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 29
request_method: str
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.993715 #1] INFO -- : Skipping file ./src/onapsdk/cps/schemaset.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 20
name: str
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:23.994344 #1] INFO -- : Skipping file ./src/onapsdk/exceptions.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 25
message: Optional[str] = None,
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:24.004953 #1] INFO -- : Skipping file ./src/onapsdk/cps/dataspace.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 14
def __init__(self, name: str) -> None:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:24.005641 #1] INFO -- : Skipping file ./src/onapsdk/cps/anchor.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 15
def __init__(self, name: str, schema_set: "SchemaSet") -> None:
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:24.017238 #1] INFO -- : Skipping file ./src/onapsdk/cps/cps_element.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 11
_url: str = settings.CPS_URL
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:24.028148 #1] INFO -- : Skipping file ./src/onapsdk/configuration/global_settings.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 43
AAI_GUI_SERVICE = f"{AAI_GUI_URL}/services/aai/webapp/index.html#/browse"
^
SyntaxError: invalid syntax
I, [2024-10-28T07:42:24.029397 #1] INFO -- : Skipping file ./src/onapsdk/configuration/loader.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 24
def __init__(self) -> None:
^
SyntaxError: invalid syntax
|
INFO: Java 1.8.0_111-internal Oracle Corporation (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: 236 files indexed
ERROR: Unable to parse file: /code/src/onapsdk/sdc/pnf.py
ERROR: Parse error at line 46 column 17:
44: __init__(sdc_values=sdc_values, version=version, properties=properties,
45: inputs=inputs, category=category, subcategory=subcategory)
--> self.name: str = name or "ONAP-test-PNF"
47: self.vendor: Vendor = vendor
48: self.vsp: Vsp = vsp
49:
50: def create(self) -
ERROR: Unable to parse file: /code/src/onapsdk/sdc/category_management.py
ERROR: Parse error at line 34 column 28:
24:
25:
26: def __init__(self, name: str) -> None:
27: """Service category initialization.
28:
29: Args:
30: name (str): Service category name.
31:
32: """
33: super().__init__(name)
--> self.normalized_name: str = None
35: self.unique_id: str = None
36: self.icons: List[str] = None
37: self.subcategories: List[
ERROR: Unable to parse file: /code/src/onapsdk/sdc/service.py
ERROR: Parse error at line 34 column 8:
26: onapsdk.utils.headers_creator import headers_sdc_creator, headers_sdc_artifact_upload
27: from onapsdk.utils.jinja import jinja_env
28:
29:
30: @dataclass
31: class VfModule:
32: """VfModule dataclass."""
33:
--> name: str
35: group_type: str
36: model_name: str
37: model_version_id: str
38: model_invariant_uuid: str
39: model_version: str
40: model_customization_id: str
41: properties: Iterator
ERROR: Unable to parse file: /code/src/onapsdk/sdc/sdc_element.py
ERROR: Parse error at line 22 column 35:
19: self, name: str = None) -> None:
20: """Initialize the object."""
21: super().__init__(name=name)
--> self.human_readable_version: Optional[str] = None
23:
24: def _get_item_details(self) -> Dict[str, Any]:
25: """
26: Get item details.
27:
28: Returns:
29: Dict[str, Any]: the description of the item
30:
31: """
32: if self.
ERROR: Unable to parse file: /code/src/onapsdk/sdc/properties.py
ERROR: Parse error at line 15 column 13:
5:
6: from typing import Any, Dict, List, Optional
7:
8: from onapsdk.exceptions import ParameterError
9:
10:
11: @dataclass
12: class Input:
13: """Property input dataclass."""
14:
--> unique_id: str
16: input_type: str
17: name: str
18: sdc_resource: "SdcResource"
19: _default_value: Optional[Any] = field(repr=False, default=
ERROR: Unable to parse file: /code/src/onapsdk/sdc/vsp.py
ERROR: Parse error at line 45 column 23:
35: None, package: BinaryIO = None,
36: vendor: Vendor = None):
37: """
38: Initialize vsp object.
39:
40: Args:
41: name (optional): the name of the vsp
42:
43: """
44: super().__init__()
--> self._csar_uuid: str = None
46: self._vendor: Vendor = vendor or None
47: self.name: str = name or "ONAP-test-VSP"
48: self.package = package
ERROR: Unable to parse file: /code/src/onapsdk/sdc/sdc_resource.py
ERROR: Parse error at line 39 column 27:
35: ,
36: category: str = None, subcategory: str = None):
37: """Initialize the object."""
38: super().__init__(name)
--> self.version_filter: str = version
40: self._unique_uuid: str = None
41: self._unique_identifier: str = None
42: self._resource_type: str = "resources"
43: self
ERROR: Unable to parse file: /code/src/onapsdk/sdc/vf.py
ERROR: Parse error at line 54 column 17:
52: __init__(sdc_values=sdc_values, version=version, properties=properties,
53: inputs=inputs, category=category, subcategory=subcategory)
--> self.name: str = name or "ONAP-test-VF"
55: self.vsp: Vsp = vsp
56: self._vendor: Vendor = vendor
57:
58: @property
59: def vendor(
ERROR: Unable to parse file: /code/src/onapsdk/sdc/__init__.py
ERROR: Parse error at line 21 column 10:
15: utils.jinja import jinja_env
16: from onapsdk.utils.gui import GuiItem, GuiList
17:
18: class SDC(OnapService, ABC):
19: """Mother Class of all SDC elements."""
20:
--> server: str = "SDC"
22: base_front_url = settings.SDC_FE_URL
23: base_back_url = settings.SDC_BE_URL
24:
25: def __init__(self, name: str = None) ->
ERROR: Unable to parse file: /code/src/onapsdk/sdc/vendor.py
ERROR: Parse error at line 37 column 17:
26: headers)
27:
28: def __init__(self, name: str = None):
29: """
30: Initialize vendor object.
31:
32: Args:
33: name (optional): the name of the vendor
34:
35: """
36: super().__init__()
--> self.name: str = name or "Generic-Vendor"
38:
39: def onboard(self) -> None:
40: """Onboard the vendor in SDC."""
41: if not self.status:
42: self
ERROR: Unable to parse file: /code/src/onapsdk/sdc/component.py
ERROR: Parse error at line 17 column 21:
7:
8:
9: from onapsdk.sdc.properties import ComponentProperty
10: from onapsdk.utils.jinja import jinja_env
11:
12:
13: @dataclass
14: class Component:
15: """Component dataclass."""
16:
--> created_from_csar: bool
18: actual_component_uid: str
19: unique_id: str
20: normalized_name: str
21: name: str
22: origin_type: str
23: customization_uuid: str
24: component_uid: str
ERROR: Unable to parse file: /code/src/onapsdk/aai/service_design_and_creation.py
ERROR: Parse error at line 73 column 25:
61:
62: def get_all(cls,
63: service_id: str = None,
64: service_description: str = None) -> Iterator["Service"]:
65: """Services iterator.
66:
67: Stand-in for service model definitions.
68:
69: Returns:
70: Iterator[Service]: Service
71:
72: """
--> filter_parameters: dict = cls.filter_none_key_values(
74: {"service-id": service_id, "service-description": service_description}
75: )
76: url: str = (f"{cls.get_all_url()}?{urlencode(filter_parameters)}")
77: for service in cls
ERROR: Unable to parse file: /code/src/onapsdk/aai/cloud_infrastructure/cloud_region.py
ERROR: Parse error at line 22 column 8:
10: .aai_element import AaiResource, Relationship
11: from .complex import Complex
12: from .tenant import Tenant
13:
14:
15: @dataclass
16: class AvailabilityZone:
17: """Availability zone.
18:
19: A collection of compute hosts/pservers
20: """
21:
--> name: str
23: hypervisor_type: str
24: operational_status: str = None
25: resource_version: str = None
26:
27:
28: @dataclass
29: class EsrSystemInfo:
30: """Persist common address information of external systems."""
31:
ERROR: Unable to parse file: /code/src/onapsdk/aai/cloud_infrastructure/tenant.py
ERROR: Parse error at line 28 column 25:
12: str,
13: tenant_context: str = None,
14: resource_version: str = None):
15: """Tenant object initialization.
16:
17: Tenant object represents A&AI Tenant resource.
18:
19: Args:
20: cloud_region (str): Cloud region object
21: tenant_id (str): Unique Tenant ID
22: tenant_name (str): Tenant name
23: tenant_context (str, optional): Tenant context. Defaults to None.
24: resource_version (str, optional): Tenant resource version. Defaults to None.
25:
26: """
27: super().__init__()
--> self.cloud_region: "CloudRegion" = cloud_region
29: self.tenant_id: str = tenant_id
30: self.name: str = tenant_name
31: self.context: str = tenant_context
32: self
ERROR: Unable to parse file: /code/src/onapsdk/aai/cloud_infrastructure/geo_region.py
ERROR: Parse error at line 24 column 17:
19: geo_region_function: str = "",
20: data_owner: str = "",
21: data_source: str = "",
22: data_source_version: str = "",
23: resource_version: str = "",
--> ) -> None:
25: """Geo region init.
26:
27: Args:
28: geo_region_id (str): UUID, key for geo-region object.
29: geo_region_name (str, optional): Name of geo-region. Defaults to "".
30: geo_region_type (str, optional): Type of geo-region. Defaults to "".
31: geo_region_role (str, optional): Role of geo-region. Defaults to "".
32: geo_region_function (str, optional): Function of geo-region. Defaults to "".
33: data_owner (str, optional): Identifies the entity that is responsible managing
34: this inventory object. Defaults to "".
35: data_source (str, optional): Identifies the upstream source of the data.
36: Defaults to "".
37: data_source_version (str, optional): Identifies the version of
38: the upstream source. Defaults to "".
39: resource_version (str, optional): Resource version. Defaults to "".
40:
41: """
42: super().__init__()
43: self.geo_region_id: str = geo_region_id
44: self.geo_region_name: str
ERROR: Unable to parse file: /code/src/onapsdk/aai/cloud_infrastructure/complex.py
ERROR: Parse error at line 68 column 17:
37: : str = "",
38: data_source_version: str = "") -> None:
39: """Complex object initialization.
40:
41: Args:
42: name (str): complex name
43: physical_location_id (str): complex ID
44: data_center_code (str, optional): complex data center code. Defaults to "".
45: identity_url (str, optional): complex identity url. Defaults to "".
46: resource_version (str, optional): complex resource version. Defaults to "".
47: physical_location_type (str, optional): complex physical location type. Defaults to "".
48: street1 (str, optional): complex address street part one. Defaults to "".
49: street2 (str, optional): complex address street part two. Defaults to "".
50: city (str, optional): complex address city. Defaults to "".
51: state (str, optional): complex address state. Defaults to "".
52: postal_code (str, optional): complex address postal code. Defaults to "".
53: country (str, optional): complex address country. Defaults to "".
54: region (str, optional): complex address region. Defaults to "".
55: latitude (str, optional): complex geographical location latitude. Defaults to "".
56: longitude (str, optional): complex geographical location longitude. Defaults to "".
57: elevation (str, optional): complex elevation. Defaults to "".
58: lata (str, optional): complex lata. Defaults to "".
59: timezone (str, optional): the time zone where the complex is located. Defaults to "".
60: data_owner (str, optional): Identifies the entity that is responsible managing this
61: inventory object. Defaults to "".
62: data_source (str, optional): Identifies the upstream source of the data. Defaults to "".
63: data_source_version (str, optional): Identifies the version of the upstream source.
64: Defaults to "".
65:
66: """
67: super().__init__()
--> self.name: str = name
69: self.physical_location_id: str = physical_location_id
70: self.data_center_code: str = data_center_code
71: self.identity_url: str = identity_url
72: self
ERROR: Unable to parse file: /code/src/onapsdk/aai/bulk.py
ERROR: Parse error at line 19 column 10:
9: configuration import settings
10: from onapsdk.utils.jinja import jinja_env
11:
12: from .aai_element import AaiElement
13:
14:
15: @dataclass
16: class AaiBulkRequest:
17: """Class to store information about a request to be sent in A&AI bulk request."""
18:
--> action: str
20: uri: str
21: body: Dict[Any, Any]
22:
23:
24: @dataclass
25: class AaiBulkResponse:
26: """Class to store A&AI bulk response."""
27:
28: action: str
ERROR: Unable to parse file: /code/src/onapsdk/aai/aai_element.py
ERROR: Parse error at line 25 column 14:
12: onapsdk.utils.gui import GuiItem, GuiList
13:
14: from onapsdk.exceptions import RelationshipNotFound, ResourceNotFound
15:
16:
17: @dataclass
18: class Relationship:
19: """Relationship class.
20:
21: A&AI elements could have relationship with other A&AI elements.
22: Relationships are represented by this class objects.
23: """
24:
--> related_to: str
26: related_link: str
27: relationship_data: List[Dict[str, str]]
28: relationship_label: str = ""
29: related_to_property: List[Dict
ERROR: Unable to parse file: /code/src/onapsdk/aai/network/site_resource.py
ERROR: Parse error at line 63 column 29:
27: : str = "",
28: resource_version: str = "") -> None:
29: """Site resource object init.
30:
31: Args:
32: site_resource_id (str): Uniquely identifies this site-resource by id.
33: site_resource_name (str, optional): Store the name of this site-resource.
34: Defaults to "".
35: description (str, optional): Store the description of this site-resource.
36: Defaults to "".
37: site_resource_type (str, optional): Store the type of this site-resource.
38: Defaults to "".
39: role (str, optional): Store the role of this site-resource. Defaults to "".
40: generated_site_id (str, optional): Store the generated-site-id of this site-resource.
41: Defaults to "".
42: selflink (str, optional): Store the link to get more information for this object.
43: Defaults to "".
44: operational_status (str, optional): Store the operational-status for this object.
45: Defaults to "".
46: model_customization_id (str, optional): Store the model-customization-id
47: for this object. Defaults to "".
48: model_invariant_id (str, optional): The ASDC model id for this resource or
49: service model. Defaults to "".
50: model_version_id (str, optional): The ASDC model version for this resource or service
51: model. Defaults to "".
52: data_owner (str, optional): Identifies the entity that is responsible managing
53: this inventory object. Defaults to "".
54: data_source (str, optional): Identifies the upstream source of the data.
55: Defaults to "".
56: data_source_version (str, optional): Identifies the version of the upstream source.
57: Defaults to "".
58: resource_version (str, optional): Used for optimistic concurrency. Must be empty on
59: create, valid on update and delete. Defaults to "".
60:
61: """
62: super().__init__()
--> self.site_resource_id: str = site_resource_id
64: self.site_resource_name: str = site_resource_name
65: self.description: str = description
66: self.site_resource_type: str = site_resource_type
67: self
ERROR: Unable to parse file: /code/src/onapsdk/aai/business/pnf.py
ERROR: Parse error at line 102 column 29:
44: -> None:
45: """Pnf instance object initialization.
46:
47: Args:
48: service_instance (ServiceInstance): Service instance object
49: pnf_name (str): unique name of Physical Network Function
50: in_maint (bool): Used to indicate whether or not this object is in maintenance mode
51: (maintenance mode = True). This field (in conjunction with prov_status)
52: is used to suppress alarms and vSCL on VNFs/VMs.
53: selflink (str, optional): URL to endpoint where AAI can get more details.
54: Defaults to None.
55: pnf_id (str, optional): id of pnf. Defaults to None.
56: equip_type (str, optional): Equipment type. Source of truth should define valid values.
57: Defaults to None.
58: equip_vendor (str, optional): Equipment vendor. Source of truth should define
59: valid values. Defaults to None.
60: equip_model (str, optional): Equipment model. Source of truth should define
61: valid values. Defaults to None.
62: management_option (str, optional): identifier of managed customer. Defaults to None.
63: orchestration_status (str, optional): Orchestration status of this pnf.
64: Defaults to None.
65: ipaddress_v4_oam (str, optional): ipv4-oam-address with new naming
66: convention for IP addresses. Defaults to None.
67: sw_version (str, optional): sw-version is the version of SW for the hosted
68: application on the PNF. Defaults to None.
69: frame_id (str, optional): ID of the physical frame (relay rack) where pnf is installed.
70: Defaults to None.
71: serial_number (str, optional): Serial number of the device. Defaults to None.
72: ipaddress_v4_loopback_0 (str, optional): IPV4 Loopback 0 address. Defaults to None.
73: ipaddress_v6_loopback_0 (str, optional): IPV6 Loopback 0 address. Defaults to None.
74: ipaddress_v4_aim (str, optional): IPV4 AIM address. Defaults to None.
75: ipaddress_v6_aim (str, optional): IPV6 AIM address. Defaults to None.
76: ipaddress_v6_oam (str, optional): IPV6 OAM address. Defaults to None.
77: inv_status (str, optional): CANOPI's inventory status. Only set with values exactly
78: as defined by CANOPI. Defaults to None.
79: resource_version (str, optional): Used for optimistic concurrency.
80: Must be empty on create, valid on update and delete. Defaults to None.
81: prov_status (str, optional): Prov Status of this device (not under canopi control)
82: Valid values [PREPROV/NVTPROV/PROV]. Defaults to None.
83: nf_role (str, optional): Nf Role is the role performed by this instance in the network.
84: Defaults to None.
85: admin_status (str, optional): admin Status of this PNF. Defaults to None.
86: operational_status (str, optional): Store the operational-status for this object.
87: Defaults to None.
88: model_customization_id (str, optional): Store the model-customization-id
89: for this object. Defaults to None.
90: model_invariant_id (str, optional): The ASDC model id for this resource model.
91: Defaults to None.
92: model_version_id (str, optional): The ASDC model version for this resource model.
93: Defaults to None.
94: pnf_ipv4_address (str, optional): This is the IP address (IPv4) for the PNF itself.
95: This is the IPv4 address that the PNF iself can be accessed at. Defaults to None.
96: pnf_ipv6_address (str, optional): This is the IP address (IPv6) for the PNF itself.
97: This is the IPv6 address that the PNF iself can be accessed at. Defaults to None.
98: """
99: super().__init__(resource_version=resource_version,
100: model_invariant_id=model_invariant_id,
101: model_version_id=model_version_id)
--> self.service_instance: "ServiceInstance" = service_instance
103: self.pnf_name: str = pnf_name
104: self.in_maint: bool = in_maint
105: self.selflink: Optional[str] =
ERROR: Unable to parse file: /code/src/onapsdk/aai/business/platform.py
ERROR: Parse error at line 21 column 17:
13: (self, name: str, resource_version: str) -> None:
14: """Platform object initialization.
15:
16: Args:
17: name (str): Platform name
18: resource_version (str): resource version
19: """
20: super().__init__()
--> self.name: str = name
22: self.resource_version: str = resource_version
23:
24: def __repr__(self) -> str:
25: """Platform object representation.
26:
27: Returns:
28: str: Platform object representation
29:
30: """
31: return f"Platform(name={self.name})"
32:
ERROR: Unable to parse file: /code/src/onapsdk/aai/business/vf_module.py
ERROR: Parse error at line 67 column 25:
29: -> None:
30: """Vf module initialization.
31:
32: Args:
33: vnf_instance (VnfInstance): VnfInstance
34: vf_module_id (str): Unique ID of vf-module
35: is_base_vf_module (bool): used to indicate whether or not this object is base vf module
36: automated_assignment (bool): ndicates whether vf-module assignment was done via
37: automation or manually
38: vf_module_name (str, optional): Name of vf-module. Defaults to None.
39: heat_stack_id (str, optional): Heat stack id corresponding to this instance.
40: Defaults to None.
41: orchestration_status (str, optional): orchestration status of this vf-module,
42: mastered by MSO. Defaults to None.
43: resource_version (str, optional): Used for optimistic concurrency.
44: Must be empty on create, valid on update and delete. Defaults to None.
45: model_invariant_id (str, optional): the ASDC model id for this resource or
46: service model. Defaults to None.
47: model_version_id (str, optional): the ASDC model version for this resource or
48: service model. Defaults to None.
49: persona_model_version (str, optional): the ASDC model version for this resource or
50: service model. Defaults to None.
51: model_customization_id (str, optional): captures the id of all the configuration
52: used to customize the resource for the service. Defaults to None.
53: widget_model_id (str, optional): the ASDC data dictionary widget model.
54: This maps directly to the A&AI widget. Defaults to None.
55: widget_model_version (str, optional): the ASDC data dictionary version of
56: the widget model. This maps directly to the A&AI version of the widget.
57: Defaults to None.
58: contrail_service_instance_fqdn (str, optional): the Contrail unique ID
59: for a service-instance. Defaults to None.
60: module_index (int, optional): the index will track the number of modules
61: of a given type that have been deployed in a VNF, starting with 0,
62: and always choosing the lowest available digit. Defaults to None.
63: selflink (str, optional): Path to the controller object. Defaults to None.
64: """
65: super().__init__(resource_version=resource_version, model_version_id=model_version_id,
66: model_invariant_id=model_invariant_id)
--> self.vnf_instance: "VnfInstance" = vnf_instance
68: self.vf_module_id: str = vf_module_id
69: self.is_base_vf_module: bool = is_base_vf_module
70: self.automated_assignment: bool = automated_assignment
71: self
ERROR: Unable to parse file: /code/src/onapsdk/aai/business/line_of_business.py
ERROR: Parse error at line 21 column 17:
13: (self, name: str, resource_version: str) -> None:
14: """Line of business object initialization.
15:
16: Args:
17: name (str): Line of business name
18: resource_version (str): resource version
19: """
20: super().__init__()
--> self.name: str = name
22: self.resource_version: str = resource_version
23:
24: @property
25: def url(self) -> str:
26: """Line of business's url.
27:
28: Returns:
29: str: Resource's url
30:
31: """
32:
ERROR: Unable to parse file: /code/src/onapsdk/aai/business/network.py
ERROR: Parse error at line 94 column 29:
39: = None):
40: """Network instance object initialization.
41:
42: Args:
43: service_instance (ServiceInstance): Service instance object
44: network_id (str): Network ID, should be uuid. Unique across A&AI.
45: is_bound_to_vpn (bool): Set to true if bound to VPN
46: is_provider_network (bool): boolean indicatating whether or not network
47: is a provider network.
48: is_shared_network (bool): boolean indicatating whether
49: or not network is a shared network.
50: is_external_network (bool): boolean indicatating whether
51: or not network is an external network.
52: network_name (str, optional): Name of the network, governed by some naming convention.
53: Defaults to None.
54: network_type (str, optional): Type of the network. Defaults to None.
55: network_role (str, optional): Role the network. Defaults to None.
56: network_technology (str, optional): Network technology. Defaults to None.
57: neutron_network_id (str, optional): Neutron network id of this Interface.
58: Defaults to None.
59: service_id (str, optional): Unique identifier of service from ASDC.
60: Does not strictly map to ASDC services. Defaults to None.
61: network_role_instance (str, optional): network role instance. Defaults to None.
62: resource_version (str, optional): Used for optimistic concurrency.
63: Must be empty on create, valid on update and delete. Defaults to None.
64: orchestration_status (str, optional): Orchestration status of this VNF,
65: mastered by MSO. Defaults to None.
66: heat_stack_id (str, optional): Heat stack id corresponding to this instance,
67: managed by MSO. Defaults to None.
68: mso_catalog_key (str, optional): Corresponds to the SDN-C catalog id used to
69: configure this VCE. Defaults to None.
70: contrail_network_fqdn (str, optional): Contrail FQDN for the network. Defaults to None.
71: model_invariant_id (str, optional): the ASDC model id for this resource
72: or service model. Defaults to None.
73: model_version_id (str, optional): the ASDC model version for this resource
74: or service model. Defaults to None.
75: persona_model_version (str, optional): the ASDC model version for this resource
76: or service model. Defaults to None.
77: model_customization_id (str, optional): captures the id of all the configuration
78: used to customize the resource for the service. Defaults to None.
79: widget_model_id (str, optional): the ASDC data dictionary widget model.
80: This maps directly to the A&AI widget. Defaults to None.
81: widget_model_version (str, optional): the ASDC data dictionary version of
82: the widget model. This maps directly to the A&AI version of the widget.
83: Defaults to None.
84: physical_network_name (str, optional): Name associated with the physical network.
85: Defaults to None.
86: selflink (str, optional): Path to the controller object. Defaults to None.
87: operational_status (str, optional): Indicator for whether the resource is considered
88: operational. Defaults to None.
89: is_trunked (bool, optional): Trunked network indication. Defaults to None.
90: """
91: super().__init__(resource_version=resource_version,
92: model_version_id=model_version_id,
93: model_invariant_id=model_invariant_id)
--> self.service_instance: "ServiceInstance" = service_instance
95: self.network_id: str = network_id
96: self.is_bound_to_vpn: bool = is_bound_to_vpn
97: self.is_provider_network: bool = is_provider_network
98: self
ERROR: Unable to parse file: /code/src/onapsdk/aai/business/customer.py
ERROR: Parse error at line 18 column 15:
9: AaiResource, Relationship
10: from ..cloud_infrastructure.cloud_region import CloudRegion
11: from .service import ServiceInstance
12:
13:
14: @dataclass
15: class ServiceSubscriptionCloudRegionTenantData:
16: """Dataclass to store cloud regions and tenants data for service subscription."""
17:
--> cloud_owner: str = None
19: cloud_region_id: str = None
20: tenant_id: str = None
21:
22:
23: @dataclass
24: class ServiceSubscription(AaiResource):
25: """Service subscription class."""
ERROR: Unable to parse file: /code/src/onapsdk/aai/business/vnf.py
ERROR: Parse error at line 165 column 29:
68: -> None:
69: """Vnf instance object initialization.
70:
71: Args:
72: vnf_id (str): Unique id of VNF. This is unique across the graph.
73: vnf_type (str): String capturing type of vnf, that was intended to identify
74: the ASDC resource. This field has been overloaded in service-specific ways and
75: clients should expect changes to occur in the future to this field as ECOMP
76: matures.
77: in_maint (bool): used to indicate whether or not this object is in maintenance mode
78: (maintenance mode = true). This field (in conjunction with prov-status)
79: is used to suppress alarms and vSCL on VNFs/VMs.
80: is_closed_loop_disabled (bool): used to indicate whether closed loop function is
81: enabled on this node
82: vnf_name (str, optional): Name of VNF. Defaults to None.
83: service_id (str, optional): Unique identifier of service, does not necessarily map to
84: ASDC service models. Defaults to None.
85: regional_resource_zone (str, optional): Regional way of organizing pservers, source of
86: truth should define values. Defaults to None.
87: prov_status (str, optional): Trigger for operational monitoring of this resource by
88: Service Assurance systems. Defaults to None.
89: operational_status (str, optional): Indicator for whether the resource is considered
90: operational. Valid values are in-service-path and out-of-service-path.
91: Defaults to None.
92: equipment_role (str, optional): Client should send valid enumerated value.
93: Defaults to None.
94: orchestration_status (str, optional): Orchestration status of this VNF, used by MSO.
95: Defaults to None.
96: vnf_package_name (str, optional): vnf package name. Defaults to None.
97: vnf_discriptor_name (str, optional): vnf discriptor name. Defaults to None.
98: job_id (str, optional): job id corresponding to vnf. Defaults to None.
99: heat_stack_id (str, optional): Heat stack id corresponding to this instance,
100: managed by MSO. Defaults to None.
101: mso_catalog_key (str, optional): Corresponds to the SDN-C catalog id used to
102: configure this VCE. Defaults to None.
103: management_option (str, optional): identifier of managed customer. Defaults to None.
104: ipv4_oam_address (str, optional): Address tail-f uses to configure generic-vnf,
105: also used for troubleshooting and is IP used for traps generated by generic-vnf.
106: Defaults to None.
107: ipv4_loopback0_address (str, optional): v4 Loopback0 address. Defaults to None.
108: nm_lan_v6_address (str, optional): v6 Loopback address. Defaults to None.
109: management_v6_address (str, optional): v6 management address. Defaults to None.
110: vcpu (int, optional): number of vcpus ordered for this instance of VNF,
111: used for VNFs with no vservers/flavors, to be used only by uCPE. Defaults to None.
112: vcpu_units (str, optional): units associated with vcpu, used for VNFs with no
113: vservers/flavors, to be used only by uCPE. Defaults to None.
114: vmemory (int, optional): number of GB of memory ordered for this instance of VNF,
115: used for VNFs with no vservers/flavors, to be used only by uCPE. Defaults to None.
116: vmemory_units (str, optional): units associated with vmemory, used for VNFs with
117: no vservers/flavors, to be used only by uCPE. Defaults to None.
118: vdisk (int, optional): number of vdisks ordered for this instance of VNF,
119: used for VNFs with no vservers/flavors, to be used only uCPE. Defaults to None.
120: vdisk_units (str, optional): units associated with vdisk, used for VNFs with
121: no vservers/flavors, to be used only by uCPE. Defaults to None.
122: nshd (int, optional): number of associated SHD in vnf. Defaults to None.
123: nvm (int, optional): number of vms in vnf. Defaults to None.
124: nnet (int, optional): number of network in vnf. Defaults to None.
125: resource_version (str, optional): Used for optimistic concurrency.
126: Must be empty on create, valid on update and delete. Defaults to None.
127: encrypted_access_flag (bool, optional): indicates whether generic-vnf access uses SSH.
128: Defaults to None.
129: model_invariant_id (str, optional): the ASDC model id for this resource or
130: service model. Defaults to None.
131: model_version_id (str, optional): the ASDC model version for this resource or
132: service model. Defaults to None.
133: persona_model_version (str, optional): the ASDC model version for this resource or
134: service model. Defaults to None.
135: model_customization_id (str, optional): captures the id of all the configuration used
136: to customize the resource for the service. Defaults to None.
137: widget_model_id (str, optional): the ASDC data dictionary widget model. This maps
138: directly to the A&AI widget. Defaults to None.
139: widget_model_version (str, optional): the ASDC data dictionary version of
140: the widget model.This maps directly to the A&AI version of the widget.
141: Defaults to None.
142: as_number (str, optional): as-number of the VNF. Defaults to None.
143: regional_resource_subzone (str, optional): represents sub zone of the rr plane.
144: Defaults to None.
145: nf_type (str, optional): Generic description of the type of NF. Defaults to None.
146: nf_function (str, optional): English description of Network function that
147: the specific VNF deployment is providing. Defaults to None.
148: nf_role (str, optional): role in the network that this model will be providing.
149: Defaults to None.
150: nf_naming_code (str, optional): string assigned to this model used for naming purposes.
151: Defaults to None.
152: selflink (str, optional): Path to the controller object. Defaults to None.
153: ipv4_oam_gateway_address (str, optional): Gateway address. Defaults to None.
154: ipv4_oam_gateway_address_prefix_length (int, optional): Prefix length for oam-address.
155: Defaults to None.
156: vlan_id_outer (int, optional): Temporary location for S-TAG to get to VCE.
157: Defaults to None.
158: nm_profile_name (str, optional): Network Management profile of this VNF.
159: Defaults to None.
160:
161: """
162: super().__init__(resource_version=resource_version,
163: model_invariant_id=model_invariant_id,
164: model_version_id=model_version_id)
--> self.service_instance: "ServiceInstance" = service_instance
166: self.vnf_id: str = vnf_id
167: self.vnf_type: str = vnf_type
168: self.in_maint: bool = in_maint
169: self
ERROR: Unable to parse file: /code/src/onapsdk/aai/business/project.py
ERROR: Parse error at line 21 column 17:
13: (self, name: str, resource_version: str) -> None:
14: """Project object initialization.
15:
16: Args:
17: name (str): Project name
18: resource_version (str): resource version
19: """
20: super().__init__()
--> self.name: str = name
22: self.resource_version: str = resource_version
23:
24: @classmethod
25: def get_all(cls) -> Iterator["Project"]:
26:
ERROR: Unable to parse file: /code/src/onapsdk/aai/business/service.py
ERROR: Parse error at line 86 column 33:
42: -> None:
43: """Service instance object initialization.
44:
45: Args:
46: service_subscription (ServiceSubscription): service subscription which is belongs to
47: instance_id (str): Uniquely identifies this instance of a service
48: instance_name (str, optional): This field will store a name assigned to
49: the service-instance. Defaults to None.
50: service_type (str, optional): String capturing type of service. Defaults to None.
51: service_role (str, optional): String capturing the service role. Defaults to None.
52: environment_context (str, optional): This field will store the environment context
53: assigned to the service-instance. Defaults to None.
54: workload_context (str, optional): This field will store the workload context assigned to
55: the service-instance. Defaults to None.
56: created_at (str, optional): Create time of Network Service. Defaults to None.
57: updated_at (str, optional): Last update of Network Service. Defaults to None.
58: description (str, optional): Short description for service-instance. Defaults to None.
59: model_invariant_id (str, optional): The ASDC model id for this resource or
60: service model. Defaults to None.
61: model_version_id (str, optional): The ASDC model version for this resource or
62: service model. Defaults to None.
63: persona_model_version (str, optional): The ASDC model version for this resource or
64: service model. Defaults to None.
65: widget_model_id (str, optional): The ASDC data dictionary widget model. This maps
66: directly to the A&AI widget. Defaults to None.
67: widget_model_version (str, optional): The ASDC data dictionary version of the widget
68: model. This maps directly to the A&AI version of the widget. Defaults to None.
69: bandwith_total (str, optional): Indicates the total bandwidth to be used for this
70: service. Defaults to None.
71: vhn_portal_url (str, optional): URL customers will use to access the vHN Portal.
72: Defaults to None.
73: service_instance_location_id (str, optional): An identifier that customers assign to
74: the location where this service is being used. Defaults to None.
75: resource_version (str, optional): Used for optimistic concurrency. Must be empty on
76: create, valid on update and delete. Defaults to None.
77: selflink (str, optional): Path to the controller object. Defaults to None.
78: orchestration_status (str, optional): Orchestration status of this service.
79: Defaults to None.
80: input_parameters (str, optional): String capturing request parameters from SO to
81: pass to Closed Loop. Defaults to None.
82: """
83: super().__init__(resource_version=resource_version,
84: model_invariant_id=model_invariant_id,
85: model_version_id=model_version_id)
--> self.service_subscription: "ServiceSubscription" = service_subscription
87: self.instance_id: str = instance_id
88: self.instance_name: str = instance_name
89: self.service_type: str = service_type
90: self
ERROR: Unable to parse file: /code/src/onapsdk/aai/business/sp_partner.py
ERROR: Parse error at line 35 column 26:
15: : str = None,
16: model_version_id: str = None) -> None:
17: """Sp partner object initialization.
18:
19: Args:
20: sp_partner_id (str): Uniquely identifies this sp-partner by id
21: resource_version (str): resource version
22: url (str, optional): Store the URL of this sp-partner. Defaults to None
23: callsource (str, optional): Store the callsource of this sp-partner. Defaults to None
24: operational_status (str, optional): Store the operational-status of this sp-partner.
25: Defaults to None
26: model_customization_id (str, optional): Store the model-customization-id
27: of this sp-partner. Defaults to None
28: model_invariant_id (str, optional): The ASDC model id for this sp-partner model.
29: Defaults to None
30: model_version_id (str, optional): The ASDC model version for this sp-partner model.
31: Defaults to None
32:
33: """
34: super().__init__()
--> self.sp_partner_id: str = sp_partner_id
36: self.resource_version: str = resource_version
37: self.sp_partner_url: Optional[str] = url
38: self.callsource: Optional[
ERROR: Unable to parse file: /code/src/onapsdk/aai/business/instance.py
ERROR: Parse error at line 26 column 29:
13: : str = None,
14: model_version_id: str = None) -> None:
15: """Instance initialization.
16:
17: Args:
18: resource_version (str, optional): Used for optimistic concurrency.
19: Must be empty on create, valid on update and delete. Defaults to None.
20: model_invariant_id (str, optional): The ASDC model id for this resource or
21: service model. Defaults to None.
22: model_version_id (str, optional): The ASDC model version for this resource or
23: service model. Defaults to None.
24: """
25: super().__init__()
--> self.resource_version: str = resource_version
27: self.model_invariant_id: str = model_invariant_id
28: self.model_version_id: str = model_version_id
29:
30: @abstractmethod
31: def delete(self,
ERROR: Unable to parse file: /code/src/onapsdk/aai/business/owning_entity.py
ERROR: Parse error at line 24 column 17:
15: : str, owning_entity_id: str, resource_version: str) -> None:
16: """Owning entity object initialization.
17:
18: Args:
19: name (str): Owning entity name
20: owning_entity_id (str): owning entity ID
21: resource_version (str): resource version
22: """
23: super().__init__()
--> self.name: str = name
25: self.owning_entity_id: str = owning_entity_id
26: self.resource_version: str = resource_version
27:
28: def __repr__(self) -> str
ERROR: Unable to parse file: /code/src/onapsdk/msb/k8s/definition.py
ERROR: Parse error at line 24 column 20:
15: (self, rb_name: str,
16: rb_version: str) -> None:
17: """Definition-Base object initialization.
18:
19: Args:
20: rb_name (str): Definition name
21: rb_version (str): Definition version
22: """
23: super().__init__()
--> self.rb_name: str = rb_name
25: self.rb_version: str = rb_version
26:
27: @property
28: def url(self) -> str:
29: """URL address for Definition Based calls.
30:
31: Returns:
32: str: URL to RB Definition
33:
34: """
35:
ERROR: Unable to parse file: /code/src/onapsdk/msb/k8s/instance.py
ERROR: Parse error at line 26 column 28:
12: """Instantiation Request class."""
13:
14: def __init__(self, request: dict) -> None:
15: """Request object initialization.
16:
17: Args:
18: cloud_region_id (str): Cloud region ID
19: profile_name (str): Name of profile
20: rb_name (str): Definition name
21: rb_version (str): Definition version
22: override_values (dict): Optional parameters
23: labels (dict): Optional labels
24: """
25: super().__init__()
--> self.cloud_region_id: str = request["cloud-region"]
27: self.profile_name: str = request["profile-name"]
28: self.rb_name: str = request["rb-name"]
29:
ERROR: Unable to parse file: /code/src/onapsdk/msb/k8s/connectivity_info.py
ERROR: Parse error at line 25 column 28:
13: : str,
14: other_connectivity_list: dict,
15: kubeconfig: str) -> None:
16: """Connectivity-info object initialization.
17:
18: Args:
19: cloud_region_id (str): Cloud region ID
20: cloud_owner (str): Cloud owner name
21: other_connectivity_list (dict): Optional other connectivity list
22: kubeconfig (str): kubernetes cluster kubeconfig
23: """
24: super().__init__()
--> self.cloud_region_id: str = cloud_region_id
26: self.cloud_owner: str = cloud_owner
27: self.other_connectivity_list: dict = other_connectivity_list
28: self.kubeconfig: str = kubeconfig
29:
30:
ERROR: Unable to parse file: /code/src/onapsdk/nbi/nbi.py
ERROR: Parse error at line 69 column 22:
54: : str,
55: version: str,
56: lifecycle_status: str) -> None:
57: """Service specification object initialization.
58:
59: Args:
60: unique_id (str): Unique ID
61: name (str): Service specification name
62: invariant_uuid (str): Invariant UUID
63: category (str): Category
64: distribution_status (str): Service distribution status
65: version (str): Service version
66: lifecycle_status (str): Service lifecycle status
67: """
68: super().__init__()
--> self.unique_id: str = unique_id
70: self.name: str = name
71: self.invariant_uuid: str = invariant_uuid
72: self.category: str = category
73: self
ERROR: Unable to parse file: /code/src/onapsdk/cds/cds_element.py
ERROR: Parse error at line 17 column 8:
6: onapsdk.onap_service import OnapService
7: from onapsdk.utils.gui import GuiItem, GuiList
8:
9: class CdsElement(OnapService, ABC):
10: """Base CDS class.
11:
12: Stores url to CDS API (edit if you want to use other) and authentication tuple
13: (username, password).
14: """
15:
16:
--> _url: str = settings.CDS_URL
18: auth: tuple = settings.CDS_AUTH
19:
20: @classmethod
21: def get_guis(cls) -> GuiItem:
22: """Retrieve the status of the CDS GUIs.
23:
24: Only one GUI is referenced for CDS: CDS UI
25:
26: Return the list of GUIs
27: """
ERROR: Unable to parse file: /code/src/onapsdk/cds/blueprint.py
ERROR: Parse error at line 26 column 27:
16: , ParameterError, ValidationError
17:
18: from .cds_element import CdsElement
19: from .data_dictionary import DataDictionary, DataDictionarySet
20:
21:
22: @dataclass
23: class CbaMetadata:
24: """Class to hold CBA metadata values."""
25:
--> tosca_meta_file_version: str
27: csar_version: str
28: created_by: str
29: entry_definitions: str
30: template_name: str
31: template_version: str
32: template_tags: str
33:
34:
35: @dataclass
ERROR: Unable to parse file: /code/src/onapsdk/cds/data_dictionary.py
ERROR: Parse error at line 15 column 10:
5: getLogger, Logger
6:
7: from onapsdk.exceptions import FileError, ValidationError
8:
9: from .cds_element import CdsElement
10:
11:
12: class DataDictionary(CdsElement):
13: """Data dictionary class."""
14:
--> logger: Logger = getLogger(__name__)
16:
17: def __init__(self, data_dictionary_json: dict, fix_schema: bool = True) -> None:
18: """Initialize data dictionary.
19:
20: Args:
21: data_dictionary_json (dict): data dictionary json
22: fix_schema (bool, optional): determines if data dictionary should be fixed if
23: the invalid schema is detected. Fixing can raise ValidationError if
24: dictionary is invalid. Defaults to True.
25:
26: """
ERROR: Unable to parse file: /code/src/onapsdk/sdnc/preload.py
ERROR: Parse error at line 16 column 11:
7: headers_creator import headers_sdnc_creator
8: from onapsdk.utils.jinja import jinja_env
9:
10: from .sdnc_element import SdncElement
11:
12:
13: class Preload(SdncElement):
14: """Preload base class."""
15:
--> headers: Dict[str, str] = headers_sdnc_creator(SdncElement.headers)
17:
18:
19: class PreloadInformation(Preload):
20: """Preload information."""
21:
22: def __init__(self
ERROR: Unable to parse file: /code/src/onapsdk/utils/mixins.py
ERROR: Parse error at line 80 column 20:
59: def wait_for_finish(self, timeout: float = None) -> bool:
60: """Wait until object task is finished.
61:
62: It uses time.sleep with WAIT_FOR_SLEEP_TIME value as a parameter to
63: wait unitl request is finished (object's finished property is
64: equal to True).
65:
66: It runs another process to control time of the function. If process timed out
67: TimeoutError is going to be raised.
68:
69: Args:
70: timeout(float, optional): positive number, wait at most timeout seconds
71:
72: Raises:
73: TimeoutError: Raised when function timed out
74:
75: Returns:
76: bool: True if object's task is successfully completed, False otherwise
77:
78: """
79: self._logger.debug(f"Wait until {self.__class__.__name__} task is not finished")
--> return_value: Value = Value(c_bool)
81: wait_for_process: Process = Process(target=self._wait_for_finish, args=(return_value,))
82: try:
ERROR: Unable to parse file: /code/src/onapsdk/utils/gui.py
ERROR: Parse error at line 12 column 7:
4: """Definition of GUI objects."""
5: from dataclasses import dataclass
6: from typing import List
7:
8: @dataclass
9: class GuiItem:
10: """Class for keeping track of a GUI."""
11:
--> url: str
13: status: int
14:
15: @dataclass
16: class GuiList:
17: """Class to list all the GUIs."""
18:
19: guilist: List[GuiItem]
20:
21: def add(self,
ERROR: Unable to parse file: /code/src/onapsdk/dmaap/dmaap_service.py
ERROR: Parse error at line 15 column 8:
3: """Base VES module."""
4:
5: from onapsdk.configuration import settings
6: from onapsdk.onap_service import OnapService
7:
8:
9: class DmaapService(OnapService):
10: """Base DMAAP class.
11:
12: Stores url to DMAAP API (edit if you want to use other).
13: """
14:
--> _url: str = settings.DMAAP_URL
16: EOF
ERROR: Unable to parse file: /code/src/onapsdk/ves/ves_service.py
ERROR: Parse error at line 16 column 8:
3: """Base VES module."""
4:
5: from onapsdk.configuration import settings
6: from onapsdk.onap_service import OnapService
7:
8:
9: class VesService(OnapService):
10: """Base VES class.
11:
12: Stores url to VES API (edit if you want to use other) and authentication tuple
13: (username, password).
14: """
15:
--> _url: str = settings.VES_URL
17: EOF
ERROR: Unable to parse file: /code/src/onapsdk/ves/ves.py
ERROR: Parse error at line 18 column 22:
7: requests
8:
9: from onapsdk.ves.ves_service import VesService
10:
11: ACTION = "Send event to Ves"
12: POST_HTTP_METHOD = "POST"
13:
14:
15: class Ves(VesService):
16: """Ves library provides functions for sending events to VES."""
17:
--> event_endpoint_url: str = "{}/eventListener/{}"
19: event_batch_endpoint_url: str = "{}/eventListener/{}/eventBatch"
20:
21: @classmethod
22: def send_event(cls,
23: version: str,
24: json_event: str,
25: basic_auth: Dict
ERROR: Unable to parse file: /code/src/onapsdk/clamp/clamp_element.py
ERROR: Parse error at line 17 column 8:
8: exceptions import ResourceNotFound
9: from onapsdk.utils.headers_creator import headers_clamp_creator
10:
11:
12: class Clamp(Onap):
13: """Mother Class of all CLAMP elements."""
14:
15:
16: _base_url = settings.CLAMP_URL
--> name: str = "CLAMP"
18: headers = headers_clamp_creator(Onap.headers)
19:
20: @classmethod
21: def base_url(cls) -> str:
22: """Give back the base url of Clamp."""
23:
ERROR: Unable to parse file: /code/src/onapsdk/vid/vid.py
ERROR: Parse error at line 28 column 17:
19: , name: str) -> None:
20: """VID resource object initialization.
21:
22: Args:
23: name (str): Resource name
24: """
25: warn("VID is deprecated and shouldn't be used! "
26: "It's not a part of the ONAP release since Istanbul.")
27: super().__init__()
--> self.name: str = name
29:
30: @classmethod
31: def get_create_url(cls) -> str:
32: """Resource url.
33:
34: Used to create resources
35:
36: Returns:
37: str: Url used for resource creation
38:
39: """
40: raise NotImplementedError
41:
42: @classmethod
43: def
ERROR: Unable to parse file: /code/src/onapsdk/onap_service.py
ERROR: Parse error at line 54 column 15:
25: disable_warnings(urllib3.exceptions.InsecureRequestWarning)
26:
27:
28: class OnapService(ABC):
29: """
30: Mother Class of all ONAP services.
31:
32: An important attribute when inheriting from this class is `_jinja_env`.
33: it allows to fetch simply jinja templates where they are.
34: by default jinja engine will look for templates in `templates` directory of
35: the package.
36: See in Examples to see how to use.
37:
38: Attributes:
39: server (str): nickname of the server we send the request. Used in logs
40: strings. For example, 'SDC' is the nickame for SDC server.
41: headers (Dict[str, str]): the headers dictionnary to use.
42: proxy (Dict[str, str]): the proxy configuration if needed.
43: permanent_headers (Optional[Dict[str, str]]): optional dictionary of
44: headers which could be set by the user and which are **always**
45: added into sended request. Unlike the `headers`, which could be
46: overrided on `send_message` call these headers are constant.
47:
48: """
49:
50: @dataclass
51: class PermanentHeadersCollection:
52: """Collection to store permanent headers."""
53:
--> ph_dict: Dict[str, Any] = field(default_factory=dict)
55: ph_call: List[Callable] = field(default_factory=list)
56:
57: def
ERROR: Unable to parse file: /code/src/onapsdk/so/so_element.py
ERROR: Parse error at line 25 column 8:
18: .tosca_file_handler import get_modules_list_from_tosca_file
19: from onapsdk.utils.gui import GuiItem, GuiList
20:
21: @dataclass
22: class SoElement(OnapService):
23: """Mother Class of all SO elements."""
24:
--> name: str = None
26: _server: str = "SO"
27: base_url = settings.SO_URL
28: api_version = settings.SO_API_VERSION
29: _status: str = None
30:
31: @
ERROR: Unable to parse file: /code/src/onapsdk/so/so_db_adapter.py
ERROR: Parse error at line 19 column 15:
11: onapsdk.utils.headers_creator import headers_so_creator, headers_so_catelog_db_creator
12: from onapsdk.utils.jinja import jinja_env
13:
14:
15: @dataclass
16: class IdentityService:
17: """Class to store identity service details."""
18:
--> identity_id: str
20: url: str = "http://1.2.3.4:5000/v2.0"
21: mso_id: str = "onapsdk_user"
22: mso_pass: str = "mso_pass_onapsdk"
23: project_domain_name: str = "NULL"
24: user_domain_name: str
ERROR: Unable to parse file: /code/src/onapsdk/so/instantiation.py
ERROR: Parse error at line 29 column 18:
19: utils.headers_creator import headers_so_creator
20: from onapsdk.configuration import settings
21:
22: from .so_element import OrchestrationRequest
23:
24:
25: @dataclass
26: class Operation:
27: """Operation class with data about method and suffix for VnfOperation."""
28:
--> request_method: str
30: request_suffix: str
31:
32:
33: class VnfOperation(Operation):
34: """Class to store possible operations' data for vnfs (request method and suffix)."""
35:
36: UPDATE = Operation("PUT", "")
37: HEALTHCHECK = Operation
ERROR: Unable to parse file: /code/src/onapsdk/exceptions.py
ERROR: Parse error at line 40 column 34:
36: message:
37: super().__init__(message)
38: else:
39: super().__init__()
--> self._response_status_code: int = response_status_code if response_status_code else 0
41:
42: @property
43: def response_status_code(self) -> int:
44: """Response status code property.
45:
46: Returns:
47: int: Response status code. If not set, returns 0
48:
49: """
50: return self._response_status_code
ERROR: Unable to parse file: /code/src/onapsdk/cps/schemaset.py
ERROR: Parse error at line 20 column 8:
5:
6:
7: from .cps_element import CpsElement
8:
9: if TYPE_CHECKING:
10: from .dataspace import Dataspace
11:
12:
13: @dataclass
14: class SchemaSetModuleReference:
15: """Schema set module reference dataclass.
16:
17: Stores all information about module reference.
18: """
19:
--> name: str
21: namespace: str
22: revision: str
23:
24:
25: class SchemaSet(CpsElement):
26: """Schema set class."""
27:
28: def __init__(self,
29: name: str
ERROR: Unable to parse file: /code/src/onapsdk/cps/dataspace.py
ERROR: Parse error at line 22 column 17:
12: """CPS dataspace class."""
13:
14: def __init__(self, name: str) -> None:
15: """Initialize dataspace object.
16:
17: Args:
18: name (str): Dataspace name
19:
20: """
21: super().__init__()
--> self.name: str = name
23:
24: def __repr__(self) -> str:
25: """Human readable representation of the object.
26:
27: Returns:
28: str: Human readable string
29:
30: """
31: return f"Dataspace(name={self.name})"
32:
33: @property
34: def url(self
ERROR: Unable to parse file: /code/src/onapsdk/cps/anchor.py
ERROR: Parse error at line 24 column 17:
15: (self, name: str, schema_set: "SchemaSet") -> None:
16: """Initialise CPS anchor object.
17:
18: Args:
19: name (str): Anchor name
20: schema_set (SchemaSet): Schema set
21:
22: """
23: super().__init__()
--> self.name: str = name
25: self.schema_set: "SchemaSet" = schema_set
26:
27: def __repr__(self) -> str:
28: """Human readable representation of the object.
29:
30: Returns:
31: str: Human readable string
32:
33: """
34: return f"Anchor(name={self.name}, "
35: f"schema set={self.schema_set.name}, "
ERROR: Unable to parse file: /code/src/onapsdk/cps/cps_element.py
ERROR: Parse error at line 11 column 8:
2: """ONAP SDK CPS element module."""
3:
4: from onapsdk.configuration import settings
5: from onapsdk.onap_service import OnapService
6:
7:
8: class CpsElement(OnapService):
9: """Mother Class of all CPS elements."""
10:
--> _url: str = settings.CPS_URL
12: auth: tuple = settings.CPS_AUTH
13: EOF
ERROR: Unable to parse file: /code/src/onapsdk/configuration/loader.py
ERROR: Parse error at line 39 column 26:
15: """Settings loader class.
16:
17: Load global settings and optionally load
18: custom settings by importing the module
19: stored in ONAP_PYTHON_SDK_SETTINGS environment
20: variable.
21: The module has to be uder PYTHONPATH.
22: """
23:
24: def __init__(self) -> None:
25: """Load settings.
26:
27: Load global settings and optionally load custom one.
28:
29: Raises:
30: ModuleError: If ONAP_PYTHON_SDK_SETTINGS environment variable
31: is set and module can't be imported.
32:
33: """
34: self._settings = {}
35:
36:
37: self.filter_and_set(global_settings)
38:
--> settings_env_value: str = os.environ.get(SETTINGS_ENV)
40: if settings_env_value:
41:
42: try:
43: module = importlib.import_module(settings_env_value)
44:
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.697s
INFO: Final Memory: 6M/295M
INFO: ------------------------------------------------------------------------
|