aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_sdc2_pnf.py6
-rw-r--r--tests/test_sdc2_service.py6
-rw-r--r--tests/test_sdc2_vf.py6
-rw-r--r--tests/test_sdc2_vl.py6
-rw-r--r--tests/test_version.py2
5 files changed, 13 insertions, 13 deletions
diff --git a/tests/test_sdc2_pnf.py b/tests/test_sdc2_pnf.py
index 07834a5..01ba3fe 100644
--- a/tests/test_sdc2_pnf.py
+++ b/tests/test_sdc2_pnf.py
@@ -253,9 +253,9 @@ def test_lifecycle_operation(mock_update, mock_send_message_json):
method, log, url = mock_send_message_json.mock_calls[0].args
data = mock_send_message_json.mock_calls[0].kwargs["data"]
assert method == "POST"
- assert log.startswith(f"Request lifecycle operation {lifecycle_operation}")
- assert url.endswith(f"sdc2/rest/v1/catalog/resources/{pnf_unique_id}/lifecycleState/{lifecycle_operation}")
- assert json.loads(data)["userRemarks"] == str(lifecycle_operation).lower()
+ assert log.startswith(f"Request lifecycle operation {lifecycle_operation.value}")
+ assert url.endswith(f"sdc2/rest/v1/catalog/resources/{pnf_unique_id}/lifecycleState/{lifecycle_operation.value}")
+ assert json.loads(data)["userRemarks"] == str(lifecycle_operation.value).lower()
mock_update.assert_called_once_with(return_dict)
diff --git a/tests/test_sdc2_service.py b/tests/test_sdc2_service.py
index 59e18b5..b189687 100644
--- a/tests/test_sdc2_service.py
+++ b/tests/test_sdc2_service.py
@@ -266,9 +266,9 @@ def test_lifecycle_operation(mock_update, mock_send_message_json):
method, log, url = mock_send_message_json.mock_calls[0].args
data = mock_send_message_json.mock_calls[0].kwargs["data"]
assert method == "POST"
- assert log.startswith(f"Request lifecycle operation {lifecycle_operation}")
- assert url.endswith(f"sdc2/rest/v1/catalog/services/{service_unique_id}/lifecycleState/{lifecycle_operation}")
- assert json.loads(data)["userRemarks"] == str(lifecycle_operation).lower()
+ assert log.startswith(f"Request lifecycle operation {lifecycle_operation.value}")
+ assert url.endswith(f"sdc2/rest/v1/catalog/services/{service_unique_id}/lifecycleState/{lifecycle_operation.value}")
+ assert json.loads(data)["userRemarks"] == str(lifecycle_operation.value).lower()
mock_update.assert_called_once_with(return_dict)
diff --git a/tests/test_sdc2_vf.py b/tests/test_sdc2_vf.py
index a5657d5..a8ce472 100644
--- a/tests/test_sdc2_vf.py
+++ b/tests/test_sdc2_vf.py
@@ -253,9 +253,9 @@ def test_lifecycle_operation(mock_update, mock_send_message_json):
method, log, url = mock_send_message_json.mock_calls[0].args
data = mock_send_message_json.mock_calls[0].kwargs["data"]
assert method == "POST"
- assert log.startswith(f"Request lifecycle operation {lifecycle_operation}")
- assert url.endswith(f"sdc2/rest/v1/catalog/resources/{vf_unique_id}/lifecycleState/{lifecycle_operation}")
- assert json.loads(data)["userRemarks"] == str(lifecycle_operation).lower()
+ assert log.startswith(f"Request lifecycle operation {lifecycle_operation.value}")
+ assert url.endswith(f"sdc2/rest/v1/catalog/resources/{vf_unique_id}/lifecycleState/{lifecycle_operation.value}")
+ assert json.loads(data)["userRemarks"] == str(lifecycle_operation.value).lower()
mock_update.assert_called_once_with(return_dict)
diff --git a/tests/test_sdc2_vl.py b/tests/test_sdc2_vl.py
index 8c7cd6b..b4e6788 100644
--- a/tests/test_sdc2_vl.py
+++ b/tests/test_sdc2_vl.py
@@ -250,9 +250,9 @@ def test_lifecycle_operation(mock_update, mock_send_message_json):
method, log, url = mock_send_message_json.mock_calls[0].args
data = mock_send_message_json.mock_calls[0].kwargs["data"]
assert method == "POST"
- assert log.startswith(f"Request lifecycle operation {lifecycle_operation}")
- assert url.endswith(f"sdc2/rest/v1/catalog/resources/{vl_unique_id}/lifecycleState/{lifecycle_operation}")
- assert json.loads(data)["userRemarks"] == str(lifecycle_operation).lower()
+ assert log.startswith(f"Request lifecycle operation {lifecycle_operation.value}")
+ assert url.endswith(f"sdc2/rest/v1/catalog/resources/{vl_unique_id}/lifecycleState/{lifecycle_operation.value}")
+ assert json.loads(data)["userRemarks"] == str(lifecycle_operation.value).lower()
mock_update.assert_called_once_with(return_dict)
diff --git a/tests/test_version.py b/tests/test_version.py
index b3c9572..19299c1 100644
--- a/tests/test_version.py
+++ b/tests/test_version.py
@@ -17,4 +17,4 @@ import onapsdk.version as version
def test_version():
"""Check version is the right one."""
- assert version.__version__ == '13.0.1'
+ assert version.__version__ == '13.0.2'