# HG changeset patch # User Sebastien Jodogne # Date 1620370985 -7200 # Node ID f454fe86061b7cb3f9de9e10612b0516b355515c # Parent dd519677974d6707dc81ea257c45ee519383b096 dicom tls: test_anonymous diff -r dd519677974d -r f454fe86061b Tests/CheckDicomTls.py --- a/Tests/CheckDicomTls.py Thu May 06 16:53:08 2021 +0200 +++ b/Tests/CheckDicomTls.py Fri May 07 09:03:05 2021 +0200 @@ -100,6 +100,7 @@ 'RegisteredUsers' : { 'alice' : 'orthanctest' }, + 'DicomTlsRemoteCertificateRequired' : False, # New in Orthanc 1.9.3 })) exit(0) @@ -202,6 +203,19 @@ self.assertEqual(1, DoPost(ORTHANC, '/modalities/self/store', u) ['InstancesCount']) + + def test_anonymous(self): + # Fails on Orthanc <= 1.9.2 + # https://book.orthanc-server.com/faq/dicom-tls.html#secure-tls-connections-without-certificate + subprocess.check_call([ + FindExecutable('echoscu'), + ORTHANC['Server'], + str(ORTHANC['DicomPort']), + '-aec', 'ORTHANC', + '--anonymous-tls', + '+cf', 'dicom-tls-a.crt', + ], stderr = FNULL) + try: print('\nStarting the tests...')