Loading manifests/nbiservice.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading src/nbi/service/app.py +3 −3 Original line number Diff line number Diff line Loading @@ -55,8 +55,6 @@ 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 '' nbi_app = NbiApplication(base_url=BASE_URL) Loading @@ -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 Loading src/tests/ofc22/tests/test_functional_create_service.py +1 −0 Original line number Diff line number Diff line Loading @@ -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: Loading Loading
manifests/nbiservice.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
src/nbi/service/app.py +3 −3 Original line number Diff line number Diff line Loading @@ -55,8 +55,6 @@ 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 '' nbi_app = NbiApplication(base_url=BASE_URL) Loading @@ -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 Loading
src/tests/ofc22/tests/test_functional_create_service.py +1 −0 Original line number Diff line number Diff line Loading @@ -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: Loading