aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMicha? Jagie??o <michal.jagiello@t-mobile.pl>2023-01-16 12:29:39 +0000
committerMicha? Jagie??o <michal.jagiello@t-mobile.pl>2023-01-16 12:29:39 +0000
commita805ee54d2727f3d269d960e3801b4c53551565e (patch)
tree426764fe83cf6313f7b04e94afdc892ff1056df4 /tests
parentb7948cee800b2e7b09065148cc326c5a35867550 (diff)
Revert "Archive and delete SDC Resources"
This reverts commit b7948cee800b2e7b09065148cc326c5a35867550. Reason for revert: Failing tests Issue-ID: INT-2193 Change-Id: I3a968c6c7ce34d930d782c128de1be86811aaadf Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_sdc_element.py13
-rwxr-xr-xtests/test_service.py4
2 files changed, 1 insertions, 16 deletions
diff --git a/tests/test_sdc_element.py b/tests/test_sdc_element.py
index 8cfb907..88bcd8f 100644
--- a/tests/test_sdc_element.py
+++ b/tests/test_sdc_element.py
@@ -107,16 +107,3 @@ def test_exists_versions(mock_vsp_created, mock_get_all):
sdc_el2._identifier = "123"
mock_get_all.return_value = [sdc_el1, sdc_el2]
assert sdc_el1.exists()
-
-@mock.patch.object(SdcElement, "send_message")
-def test_delete(mock_send_message):
- vsp = Vsp("test_vsp")
- vsp.identifier = "test_vsp"
- vsp.delete()
- mock_send_message.assert_called_once()
-
- mock_send_message.reset_mock()
- vendor = Vendor("test_vendor")
- vendor.identifier = "test_vendor"
- vendor.delete()
- mock_send_message.assert_called_once()
diff --git a/tests/test_service.py b/tests/test_service.py
index 3e3ec94..7606ed2 100755
--- a/tests/test_service.py
+++ b/tests/test_service.py
@@ -15,7 +15,6 @@
from os import path
from pathlib import Path
-from tempfile import TemporaryDirectory
from unittest import mock
from unittest.mock import MagicMock, PropertyMock
import shutil
@@ -532,8 +531,7 @@ def test_get_tosca_bad_csart(requests_mock):
requests_mock.get(
'https://sdc.api.be.simpledemo.onap.org:30204/sdc/v1/catalog/services/12/toscaModel',
content=file_content)
- with TemporaryDirectory() as tempdir:
- svc.get_tosca(tempdir)
+ svc.get_tosca('directory')
assert not path.exists('/tmp/tosca_files')