Mercurial > hg > orthanc-tests
changeset 351:429cc9d03610
test access to the configuration of one single peer or modality
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 03 Dec 2020 10:43:41 +0100 |
parents | 8c072000d7ef |
children | 3d406c0261fc |
files | Tests/Tests.py |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Tests/Tests.py Thu Nov 05 15:47:50 2020 +0100 +++ b/Tests/Tests.py Thu Dec 03 10:43:41 2020 +0100 @@ -1412,6 +1412,11 @@ self.assertRaises(Exception, lambda: DoPut(_REMOTE, '/modalities/toto', [ "STORESCP", "localhost", 2000, 'InvalidManufacturerName' ])) self.assertTrue('store' in DoGet(_REMOTE, '/modalities/toto')) self.assertTrue('store' in DoGet(_REMOTE, '/modalities/tata')) + + # New in Orthanc 1.8.1 + self.assertTrue('configuration' in DoGet(_REMOTE, '/modalities/tata')) + self.assertEqual(modalitiesReadback['tata'], DoGet(_REMOTE, '/modalities/tata/configuration')) + DoDelete(_REMOTE, '/modalities/toto') DoDelete(_REMOTE, '/modalities/tata') self.assertRaises(Exception, lambda: DoGet(_REMOTE, '/modalities/toto')) @@ -1457,6 +1462,11 @@ self.assertRaises(Exception, lambda: DoPut(_REMOTE, '/peers/toto', [ 'http://localhost:8042/', 'a', 'b', 'c' ])) self.assertTrue('store' in DoGet(_REMOTE, '/peers/toto')) self.assertTrue('store' in DoGet(_REMOTE, '/peers/tata')) + + # New in Orthanc 1.8.1 + self.assertTrue('configuration' in DoGet(_REMOTE, '/peers/tata')) + self.assertEqual(peersReadback['tata'], DoGet(_REMOTE, '/peers/tata/configuration')) + DoDelete(_REMOTE, '/peers/toto') DoDelete(_REMOTE, '/peers/tata') self.assertRaises(Exception, lambda: DoGet(_REMOTE, '/peers/toto'))