Commit 4192ee01 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

NBI component:

- Fix CI/CD pipeline
parent 6b4421d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+3 −3
Original line number Diff line number Diff line
@@ -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)
@@ -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
+1 −0
Original line number Diff line number Diff line
@@ -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: