From 93da1351f5a8e870735f507a74147560c827b179 Mon Sep 17 00:00:00 2001 From: shabs2020 Date: Fri, 19 Feb 2021 15:50:17 +0100 Subject: Improve code coverage of Acumos-DCAE adapter Adding and modifying unit test scripts to increase code coverage of the Acumos-DCAE adapter Issue-ID: DCAEGEN2-2633 Signed-off-by: shabs2020 Change-Id: I22e752d8ce33373b3326757594445e0288874b35 Signed-off-by: shabs2020 --- adapter/acumos/tests/test_fed.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'adapter/acumos/tests/test_fed.py') diff --git a/adapter/acumos/tests/test_fed.py b/adapter/acumos/tests/test_fed.py index 6119976..c5400a3 100644 --- a/adapter/acumos/tests/test_fed.py +++ b/adapter/acumos/tests/test_fed.py @@ -172,3 +172,8 @@ def test_aoconversion(mock_schemas, tmpdir, monkeypatch): monkeypatch.setattr(requests, 'patch', _mockwww(_mockpatchdata)) aoc_scanner.scan(config) aoc_scanner.scan(config) + + +def test__derefconfig(): + config_path = get_test_file('config.yaml') + assert aoc_scanner._derefconfig('@' + config_path) == 'dcaeurl: https://git.onap.org/dcaegen2/platform/plain/mod' -- cgit 1.2.3-korg