changeset 427:77455e156112

integration test for issue #200
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 22 Jul 2021 19:16:12 +0200
parents 47a20bc6106b
children d68dabf3d784
files Tests/Tests.py
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Wed Jul 21 10:47:09 2021 +0200
+++ b/Tests/Tests.py	Thu Jul 22 19:16:12 2021 +0200
@@ -8002,3 +8002,15 @@
 
         self.assertTrue('0008,1110' in tags1['0008,0124'][0])
         self.assertFalse('0008,1110' in tags2['0008,0124'][0])
+
+
+    def test_issue_200(self):
+        # https://groups.google.com/g/orthanc-users/c/9CTLsL-JqDw/m/2I0xgyYHBAAJ
+        # https://bugs.orthanc-server.com/show_bug.cgi?id=200
+        c = DoGet(_REMOTE, '/changes')
+        self.assertEqual(0, len(c['Changes']))
+        u = UploadInstance(_REMOTE, 'DummyCT.dcm')
+
+        for change in DoGet(_REMOTE, '/changes') ['Changes']:
+            self.assertTrue(re.match('[0-9]{8}T[0-9]{6}', change['Date']))
+            self.assertTrue(re.match('[0-9a-z]{8}-[0-9a-z]{8}-[0-9a-z]{8}-[0-9a-z]{8}', change['ID']))