Skip to content
Snippets Groups Projects

Draft: Tests for non-purge delete

Open I. Nüske requested to merge f-delete-tests into main
2 unresolved threads
3 files
+ 16
11
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -307,8 +307,6 @@ class TestClassCreateFDOChecks: # pylint: disable=fixme
pytest.skip(f"Setup unsuccessful with Exception: {str(e)}")
pid = url.split(f"{service['url']}/fdo/")[1]
repo = service["repos"][repo['id']]
#import time
# time.sleep(10)
# If possible, check with handle system
if "handle" in repo["links"] and repo["links"]["handle"] != "":
url = repo["links"]["handle"]["url"]
@@ -340,7+338,7 @@
url : str
URL of the API endpoint of the handle system,
for example "https://hdl.handle.net/api/handles/"
pid : str
PID of the fdo to be checked, including prefix and suffix.
For example "some.prefix/eb2a7c04-8970-41bb-a36c-d5670f25d66b"
kind : str, optional = 'fdo'
@@ -375,7+373,7 @@
case 'profile':
self._assert_service(url, attributes)
case 'service':
return # ToDo: Remove as soon as the service entry on
# hdl.handle.net is updated
assert "0.TYPE/DOIPServiceInfo" in attributes
attributes = json.loads(attributes["0.TYPE/DOIPServiceInfo"])["attributes"]
attributes = json.loads(
attributes["0.TYPE/DOIPServiceInfo"])["attributes"]
assert "ipAddress" in attributes
assert "port" in attributes
Loading