summaryrefslogtreecommitdiffstats
path: root/adapter/acumos/tests/test_fed.py
diff options
context:
space:
mode:
authorshabs2020 <shabnam.sultana@highstreet-technologies.com>2021-02-19 15:50:17 +0100
committershabs2020 <shabnam.sultana@highstreet-technologies.com>2021-02-22 16:55:25 +0100
commit93da1351f5a8e870735f507a74147560c827b179 (patch)
treec58b5abdfe5ce9b30e9d2ba07a06cea63845d393 /adapter/acumos/tests/test_fed.py
parent1eded3b8420e0c1c72e48f00f18399b7d2142118 (diff)
Improve code coverage of Acumos-DCAE adapter1.0.4-adapter-acumos
Adding and modifying unit test scripts to increase code coverage of the Acumos-DCAE adapter Issue-ID: DCAEGEN2-2633 Signed-off-by: shabs2020 <shabnam.sultana@highstreet-technologies.com> Change-Id: I22e752d8ce33373b3326757594445e0288874b35 Signed-off-by: shabs2020 <shabnam.sultana@highstreet-technologies.com>
Diffstat (limited to 'adapter/acumos/tests/test_fed.py')
-rw-r--r--adapter/acumos/tests/test_fed.py5
1 files changed, 5 insertions, 0 deletions
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'