Mercurial > hg > orthanc-tests
changeset 129:53d522dd4a38
added tests for ?expand in /dicom-web/servers route
author | amazy |
---|---|
date | Tue, 05 Dec 2017 13:24:01 +0100 |
parents | a9fdfcb696e6 |
children | 50cd127e5330 |
files | Plugins/DicomWeb/Run.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/DicomWeb/Run.py Tue Dec 05 12:42:26 2017 +0100 +++ b/Plugins/DicomWeb/Run.py Tue Dec 05 13:24:01 2017 +0100 @@ -191,6 +191,10 @@ self.assertEqual(1, len(DoGet(ORTHANC, '/dicom-web/servers'))) self.assertTrue('sample' in DoGet(ORTHANC, '/dicom-web/servers')) + serversReadback = DoGet(ORTHANC, '/dicom-web/servers?expand') + self.assertEqual('http://localhost:8042/dicom-web/', serversReadback['sample']['Url']) + self.assertEqual('alice', serversReadback['sample']['Username']) + sample = DoGet(ORTHANC, '/dicom-web/servers/sample') self.assertEqual(3, len(sample)) self.assertTrue('stow' in sample)