Skip to content
Snippets Groups Projects
Commit 4192ee01 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

NBI component:

- Fix CI/CD pipeline
parent 6b4421d8
No related branches found
No related tags found
3 merge requests!346Draft: support for restconf protocol,!345Draft: support ipinfusion devices via netconf,!286Resolve "(CTTC) Implement integration test between E2E-IP-Optical SDN Controllers"
......@@ -39,7 +39,7 @@ spec:
#- containerPort: 9192
env:
- name: LOG_LEVEL
value: "INFO"
value: "DEBUG"
- name: FLASK_ENV
value: "production" # change to "development" if developing
- name: IETF_NETWORK_RENDERER
......
......@@ -55,9 +55,7 @@ wait_for_environment_variables([
get_env_var_name(ServiceNameEnum.SERVICE, ENVVAR_SUFIX_SERVICE_PORT_GRPC),
])
BIND_ADDRESS = get_http_bind_address()
BIND_PORT = get_service_port_http(ServiceNameEnum.NBI)
BASE_URL = get_service_baseurl_http(ServiceNameEnum.NBI) or ''
BASE_URL = get_service_baseurl_http(ServiceNameEnum.NBI) or ''
nbi_app = NbiApplication(base_url=BASE_URL)
register_health_probes(nbi_app)
......@@ -79,6 +77,8 @@ app = nbi_app.get_flask_app()
if __name__ == '__main__':
# Only used to run it locally during development stage;
# otherwise, app is directly launched by gunicorn.
BIND_ADDRESS = get_http_bind_address()
BIND_PORT = get_service_port_http(ServiceNameEnum.NBI)
nbi_app._sio.run(
app, host=BIND_ADDRESS, port=BIND_PORT,
debug=True, use_reloader=False
......
......@@ -78,6 +78,7 @@ def test_scenario_kpi_values_created(
We short k KPI descriptors to test.
"""
response = monitoring_client.GetKpiDescriptorList(Empty())
assert len(response.kpi_descriptor_list) >= 2
kpi_descriptors = random.choices(response.kpi_descriptor_list, k=2)
for kpi_descriptor in kpi_descriptors:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment