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
7 files
+ 66
26
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -340,7+340,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+375,7 @@
case 'profile':
self._assert_service(url, attributes)
case 'service':
assert "IP" in attributes
assert "PORT" in attributes
assert "0.TYPE/DOIPServiceInfo" in attributes
attributes = json.loads(attributes["0.TYPE/DOIPServiceInfo"])["attributes"]
assert "ipAddress" in attributes
assert "port" in attributes
# 'Private' helper methods to check syntactical correctness of attributes
Loading