Mercurial > hg > orthanc-tests
changeset 82:91e2ed032f96
fix test
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 21 Jun 2016 16:33:42 +0200 |
parents | 5920954287dd |
children | 3f2170efa8d2 |
files | GenerateConfigurationForTests.py |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/GenerateConfigurationForTests.py Wed May 25 17:08:40 2016 +0200 +++ b/GenerateConfigurationForTests.py Tue Jun 21 16:33:42 2016 +0200 @@ -43,6 +43,11 @@ parser.add_argument('--plugins', help = 'Add a path to a folder containing plugins') +parser.add_argument('--dicom', + type = int, + default = 4242, + help = 'DICOM port of the Orthanc server') + args = parser.parse_args() @@ -75,6 +80,7 @@ config = f.read() config = re.sub(r'("DicomAet"\s*:)\s*".*?"', r'\1 "ORTHANC"', config) +config = re.sub(r'("DicomPort"\s*:)\s*.*?,', r'\1 %d,' % args.dicom, config) config = re.sub(r'("RemoteAccessAllowed"\s*:)\s*false', r'\1 true', config) config = re.sub(r'("AuthenticationEnabled"\s*:)\s*false', r'\1 true', config) config = re.sub(r'("DicomAssociationCloseDelay"\s*:)\s*[0-9]*', r'\1 0', config) @@ -89,6 +95,9 @@ # Enable case-insensitive PN (the default on versions <= 0.8.6) config = re.sub(r'("CaseSensitivePN"\s*:)\s*true', r'\1 false', config) +config = re.sub(r'("AllowFindSopClassesInStudy"\s*:)\s*false', r'\1 true', config) + + if args.plugins != None: config = re.sub(r'("Plugins"\s*:\s*\[)', r'\1 "%s"' % args.plugins, config)