Commit 116c2656 authored by Carlos Natalino's avatar Carlos Natalino
Browse files

Fixing the tests to include them in the test suite.

parent 11beb01f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
#!/bin/bash

cd $(dirname $0)/src
RCFILE=~/projects/teraflow/controller/coverage/.coveragerc
COVERAGEFILE=~/projects/teraflow/controller/coverage/.coverage
RCFILE=~/teraflow/controller/coverage/.coveragerc
COVERAGEFILE=~/teraflow/controller/coverage/.coverage

# Run unitary tests and analyze coverage of code at same time

+4 −0
Original line number Diff line number Diff line
@@ -37,18 +37,22 @@ def centralized_cybersecurity_client(centralized_cybersecurity_service):
    yield _client
    _client.close()

@pytest.fixture(scope='session')
def test_notify_service_update(centralized_cybersecurity_client: CentralizedCybersecurityClient):
    service = Service()
    centralized_cybersecurity_client.NotifyServiceUpdate(service)

@pytest.fixture(scope='session')
def test_detect_attack(centralized_cybersecurity_client: CentralizedCybersecurityClient):
    request = Empty()
    centralized_cybersecurity_client.DetectAttack(request)

@pytest.fixture(scope='session')
def test_report_summarized_kpi(centralized_cybersecurity_client: CentralizedCybersecurityClient):
    kpi_list = KpiList()
    centralized_cybersecurity_client.ReportSummarizedKpi(kpi_list)

@pytest.fixture(scope='session')
def test_report_kpi(centralized_cybersecurity_client: CentralizedCybersecurityClient):
    kpi_list = KpiList()
    centralized_cybersecurity_client.ReportKpi(kpi_list)