Mercurial > hg > orthanc-tests
annotate GenerateConfigurationForTests.py @ 403:e08e15befa0c
test sync POST to /archive
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 02 Jun 2021 17:42:20 +0200 |
parents | 3c15eadd941a |
children | 19154b57d0ae |
rev | line source |
---|---|
3 | 1 #!/usr/bin/python |
2 | |
3 # Orthanc - A Lightweight, RESTful DICOM Store | |
73 | 4 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
3 | 5 # Department, University Hospital of Liege, Belgium |
363
79ce0f7a9714
upgrade to year 2021
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
337
diff
changeset
|
6 # Copyright (C) 2017-2021 Osimis S.A., Belgium |
3 | 7 # |
8 # This program is free software: you can redistribute it and/or | |
9 # modify it under the terms of the GNU General Public License as | |
10 # published by the Free Software Foundation, either version 3 of the | |
11 # License, or (at your option) any later version. | |
12 # | |
13 # This program is distributed in the hope that it will be useful, but | |
14 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 # General Public License for more details. | |
17 # | |
18 # You should have received a copy of the GNU General Public License | |
19 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
20 | |
21 | |
22 import argparse | |
23 import os | |
24 import re | |
25 import socket | |
26 import subprocess | |
27 import sys | |
87
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
28 import json |
101
71bca28a4645
remove the dependency upon installing Orthanc to generate the default configuration file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
100
diff
changeset
|
29 import urllib |
71bca28a4645
remove the dependency upon installing Orthanc to generate the default configuration file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
100
diff
changeset
|
30 |
3 | 31 |
32 ## | |
33 ## Parse the command-line arguments | |
34 ## | |
35 | |
36 parser = argparse.ArgumentParser(description = 'Generate the configuration file for the ' + | |
37 'instance of Orthanc to be checked against the integration tests.') | |
38 | |
39 parser.add_argument('--target', | |
40 default = 'IntegrationTestsConfiguration.json', | |
41 help = 'Configuration file to generate') | |
42 | |
43 parser.add_argument('--force', | |
44 help = 'Overwrite the file even if it already exists', | |
45 action = 'store_true') | |
46 | |
380
b9adc7d06347
update tests following removal of dicom-as-json attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
363
diff
changeset
|
47 parser.add_argument('--compression', |
b9adc7d06347
update tests following removal of dicom-as-json attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
363
diff
changeset
|
48 help = 'Enable storage compression', |
b9adc7d06347
update tests following removal of dicom-as-json attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
363
diff
changeset
|
49 action = 'store_true') |
b9adc7d06347
update tests following removal of dicom-as-json attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
363
diff
changeset
|
50 |
31 | 51 parser.add_argument('--plugins', |
52 help = 'Add a path to a folder containing plugins') | |
53 | |
82 | 54 parser.add_argument('--dicom', |
55 type = int, | |
56 default = 4242, | |
57 help = 'DICOM port of the Orthanc server') | |
58 | |
3 | 59 args = parser.parse_args() |
60 | |
61 | |
62 ## | |
63 ## Check whether the file can be overwritten | |
64 ## | |
65 | |
66 if os.path.exists(args.target) and not args.force: | |
67 print(""" | |
68 WARNING: The file %s will be overwritten! | |
69 | |
70 Are you sure ["yes" to go on]?""" % args.target) | |
71 | |
72 if sys.stdin.readline().strip() != 'yes': | |
73 print('Aborting...') | |
74 exit(0) | |
75 | |
76 | |
77 ## | |
78 ## Generate the configuration file | |
79 ## | |
80 | |
81 | |
82 # Retrieve the IP address of the localhost | |
83 ip = socket.gethostbyname(socket.gethostname()) | |
84 | |
101
71bca28a4645
remove the dependency upon installing Orthanc to generate the default configuration file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
100
diff
changeset
|
85 |
71bca28a4645
remove the dependency upon installing Orthanc to generate the default configuration file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
100
diff
changeset
|
86 # Download the content of the default configuration file |
71bca28a4645
remove the dependency upon installing Orthanc to generate the default configuration file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
100
diff
changeset
|
87 with open(args.target, 'w') as f: |
319 | 88 url = 'https://hg.orthanc-server.com/orthanc/raw-file/default/OrthancServer/Resources/Configuration.json' |
89 #url = 'https://hg.orthanc-server.com/orthanc/raw-file/default/Resources/Configuration.json' | |
286
b55a7cb5ee02
change url to get configuration.json
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
270
diff
changeset
|
90 #url = 'https://bitbucket.org/sjodogne/orthanc/raw/default/Resources/Configuration.json' |
101
71bca28a4645
remove the dependency upon installing Orthanc to generate the default configuration file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
100
diff
changeset
|
91 http = urllib.urlopen(url) |
71bca28a4645
remove the dependency upon installing Orthanc to generate the default configuration file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
100
diff
changeset
|
92 if http.getcode() != 200: |
71bca28a4645
remove the dependency upon installing Orthanc to generate the default configuration file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
100
diff
changeset
|
93 raise Exception('Cannot download: %s' % url) |
71bca28a4645
remove the dependency upon installing Orthanc to generate the default configuration file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
100
diff
changeset
|
94 |
71bca28a4645
remove the dependency upon installing Orthanc to generate the default configuration file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
100
diff
changeset
|
95 f.write(http.read()) |
71bca28a4645
remove the dependency upon installing Orthanc to generate the default configuration file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
100
diff
changeset
|
96 |
3 | 97 |
98 with open(args.target, 'r') as f: | |
87
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
99 # Remove the C++-style comments |
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
100 nocomment = re.sub('//.*$', '', f.read(), 0, re.MULTILINE) |
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
101 |
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
102 # Remove the C-style comments |
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
103 nocomment = re.sub('/\*.*?\*/', '', nocomment, 0, re.DOTALL | re.MULTILINE) |
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
104 |
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
105 config = json.loads(nocomment) |
3 | 106 |
224
f5414254ccaa
test_bitbucket_issue_113
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
212
diff
changeset
|
107 config['DefaultEncoding'] = 'Utf8' |
95
a807a4699eb4
testing of metadata SopClassUid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
92
diff
changeset
|
108 config['AllowFindSopClassesInStudy'] = False |
87
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
109 config['AuthenticationEnabled'] = True |
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
110 config['DicomAet'] = 'ORTHANC' |
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
111 config['DicomAssociationCloseDelay'] = 0 |
188
7d585263808b
new test: test_queries_hierarchy
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
187
diff
changeset
|
112 config['DicomModalities'] = { |
7d585263808b
new test: test_queries_hierarchy
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
187
diff
changeset
|
113 'orthanctest' : [ 'ORTHANCTEST', ip, 5001 ], |
7d585263808b
new test: test_queries_hierarchy
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
187
diff
changeset
|
114 'self' : [ 'ORTHANC', '127.0.0.1', 4242 ] |
7d585263808b
new test: test_queries_hierarchy
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
187
diff
changeset
|
115 } |
87
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
116 config['DicomPort'] = args.dicom |
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
117 config['HttpCompressionEnabled'] = False |
139 | 118 config['LogExportedResources'] = True |
232
f2af7bdc9bf8
tests for transfers accelerator
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
224
diff
changeset
|
119 config['OrthancPeers'] = { |
f2af7bdc9bf8
tests for transfers accelerator
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
224
diff
changeset
|
120 'peer' : [ 'http://%s:%d/' % (ip, 5000), 'alice', 'orthanctest' ], |
f2af7bdc9bf8
tests for transfers accelerator
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
224
diff
changeset
|
121 'transfers-bidirectional' : { |
f2af7bdc9bf8
tests for transfers accelerator
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
224
diff
changeset
|
122 'Url' : 'http://localhost:8042/', |
f2af7bdc9bf8
tests for transfers accelerator
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
224
diff
changeset
|
123 'RemoteSelf' : 'transfers-bidirectional', |
f2af7bdc9bf8
tests for transfers accelerator
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
224
diff
changeset
|
124 'Username' : 'alice', |
f2af7bdc9bf8
tests for transfers accelerator
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
224
diff
changeset
|
125 'Password' : 'orthanctest' |
f2af7bdc9bf8
tests for transfers accelerator
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
224
diff
changeset
|
126 }, |
f2af7bdc9bf8
tests for transfers accelerator
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
224
diff
changeset
|
127 'transfers-simple' : { |
f2af7bdc9bf8
tests for transfers accelerator
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
224
diff
changeset
|
128 'Url' : 'http://localhost:8042/', |
f2af7bdc9bf8
tests for transfers accelerator
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
224
diff
changeset
|
129 'Username' : 'alice', |
f2af7bdc9bf8
tests for transfers accelerator
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
224
diff
changeset
|
130 'Password' : 'orthanctest' |
328
8a462f9c5a97
test_store_compressed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
319
diff
changeset
|
131 }, |
8a462f9c5a97
test_store_compressed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
319
diff
changeset
|
132 'self' : { |
329 | 133 'Url' : 'http://127.0.0.1:8042/', |
328
8a462f9c5a97
test_store_compressed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
319
diff
changeset
|
134 'Username' : 'alice', |
8a462f9c5a97
test_store_compressed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
319
diff
changeset
|
135 'Password' : 'orthanctest' |
232
f2af7bdc9bf8
tests for transfers accelerator
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
224
diff
changeset
|
136 } |
f2af7bdc9bf8
tests for transfers accelerator
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
224
diff
changeset
|
137 } |
87
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
138 config['RegisteredUsers'] = { 'alice' : 'orthanctest' } |
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
139 config['RemoteAccessAllowed'] = True |
173 | 140 config['OverwriteInstances'] = True |
180
fcb0c14dadb8
increasing JobsHistorySize
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
173
diff
changeset
|
141 config['JobsHistorySize'] = 1000 |
185
d4a5e4143d68
fixing value of SynchronousCMove
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
180
diff
changeset
|
142 config['SynchronousCMove'] = False |
187 | 143 config['MediaArchiveSize'] = 1 |
212 | 144 config['SaveJobs'] = False |
257 | 145 config['ExecuteLuaEnabled'] = True |
263
a2719263fd04
test_study_series_find_inconsistency
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
260
diff
changeset
|
146 config['HttpTimeout'] = 2 |
335
96718de2f29c
simplification and fix of test_incoming_findscu
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
329
diff
changeset
|
147 config['SyncStorageArea'] = False # For tests to run more quickly |
337
ec13ace43bde
trying webdav tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
335
diff
changeset
|
148 config['WebDavEnabled'] = True |
ec13ace43bde
trying webdav tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
335
diff
changeset
|
149 config['WebDavDeleteAllowed'] = True |
ec13ace43bde
trying webdav tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
335
diff
changeset
|
150 config['WebDavUploadAllowed'] = True |
380
b9adc7d06347
update tests following removal of dicom-as-json attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
363
diff
changeset
|
151 config['StorageCompression'] = args.compression |
391
227d9a932467
testing revisions in metadata
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
380
diff
changeset
|
152 config['CheckRevisions'] = True |
337
ec13ace43bde
trying webdav tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
335
diff
changeset
|
153 |
205 | 154 del config['KeepAlive'] |
88
47a3d6c08413
easier dicomweb setup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
87
diff
changeset
|
155 |
87
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
156 config['Dictionary'] = { |
90
afbac3eb28a5
integration tests of worklists
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
88
diff
changeset
|
157 '00e1,10c2' : [ 'UI', 'PET-CT Multi Modality Name', 1, 1, 'ELSCINT1' ], |
235
9929e4af2b7a
test_bitbucket_issue_140
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
232
diff
changeset
|
158 '7053,1003' : [ 'ST', 'Original Image Filename', 1, 1, 'Philips PET Private Group' ], |
270
082f35cb4459
test_bitbuck_issue_168
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
263
diff
changeset
|
159 '4321,1012' : [ 'LO', 'RadioButton3', 1, 1, 'RadioLogic' ], # For issue 140 |
082f35cb4459
test_bitbuck_issue_168
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
263
diff
changeset
|
160 '0009,1001' : [ 'DS', 'Abnormality score', 1, 1, 'Lunit' ], # For issue 168 |
082f35cb4459
test_bitbuck_issue_168
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
263
diff
changeset
|
161 '0009,0010' : [ 'LO', 'Private data element', 1, 1, 'Lunit' ], # For issue 168 |
87
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
162 } |
3 | 163 |
270
082f35cb4459
test_bitbuck_issue_168
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
263
diff
changeset
|
164 config['DefaultPrivateCreator'] = 'Lunit' # For issue 168 |
082f35cb4459
test_bitbuck_issue_168
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
263
diff
changeset
|
165 |
88
47a3d6c08413
easier dicomweb setup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
87
diff
changeset
|
166 config['DicomWeb'] = { |
90
afbac3eb28a5
integration tests of worklists
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
88
diff
changeset
|
167 'Servers' : { |
afbac3eb28a5
integration tests of worklists
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
88
diff
changeset
|
168 'sample' : [ |
afbac3eb28a5
integration tests of worklists
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
88
diff
changeset
|
169 'http://localhost:8042/dicom-web/', |
afbac3eb28a5
integration tests of worklists
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
88
diff
changeset
|
170 'alice', |
afbac3eb28a5
integration tests of worklists
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
88
diff
changeset
|
171 'orthanctest' |
88
47a3d6c08413
easier dicomweb setup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
87
diff
changeset
|
172 ] |
47a3d6c08413
easier dicomweb setup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
87
diff
changeset
|
173 } |
47a3d6c08413
easier dicomweb setup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
87
diff
changeset
|
174 } |
47a3d6c08413
easier dicomweb setup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
87
diff
changeset
|
175 |
90
afbac3eb28a5
integration tests of worklists
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
88
diff
changeset
|
176 config['Worklists'] = { |
afbac3eb28a5
integration tests of worklists
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
88
diff
changeset
|
177 'Enable': True, |
afbac3eb28a5
integration tests of worklists
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
88
diff
changeset
|
178 'Database': os.path.abspath(os.path.join(os.path.dirname(__file__), './Database/Worklists/Working')), |
afbac3eb28a5
integration tests of worklists
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
88
diff
changeset
|
179 } |
afbac3eb28a5
integration tests of worklists
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
88
diff
changeset
|
180 |
99
37430f7430e3
config to test the PostgreSQL plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
95
diff
changeset
|
181 config['PostgreSQL'] = { |
37430f7430e3
config to test the PostgreSQL plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
95
diff
changeset
|
182 'EnableIndex' : True, |
37430f7430e3
config to test the PostgreSQL plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
95
diff
changeset
|
183 'EnableStorage' : True, |
37430f7430e3
config to test the PostgreSQL plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
95
diff
changeset
|
184 'Host' : 'localhost', |
37430f7430e3
config to test the PostgreSQL plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
95
diff
changeset
|
185 'Port' : 5432, |
37430f7430e3
config to test the PostgreSQL plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
95
diff
changeset
|
186 'Database' : 'orthanctest', |
37430f7430e3
config to test the PostgreSQL plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
95
diff
changeset
|
187 'Username' : 'postgres', |
395
3c15eadd941a
added explicit db parameters
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
391
diff
changeset
|
188 'Password' : 'postgres', |
3c15eadd941a
added explicit db parameters
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
391
diff
changeset
|
189 'Lock' : False, |
3c15eadd941a
added explicit db parameters
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
391
diff
changeset
|
190 'IndexConnectionsCount' : 5, |
3c15eadd941a
added explicit db parameters
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
391
diff
changeset
|
191 'MaximumConnectionRetries' : 7, |
99
37430f7430e3
config to test the PostgreSQL plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
95
diff
changeset
|
192 } |
37430f7430e3
config to test the PostgreSQL plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
95
diff
changeset
|
193 |
140 | 194 config['MySQL'] = { |
195 'EnableIndex' : True, | |
196 'EnableStorage' : True, | |
197 'Host' : 'localhost', | |
198 'Port' : 3306, | |
199 'Database' : 'orthanctest', | |
200 'Username' : 'root', | |
201 'Password' : 'root', | |
153 | 202 'UnixSocket' : '', |
395
3c15eadd941a
added explicit db parameters
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
391
diff
changeset
|
203 'Lock' : False, |
3c15eadd941a
added explicit db parameters
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
391
diff
changeset
|
204 'IndexConnectionsCount' : 5, |
3c15eadd941a
added explicit db parameters
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
391
diff
changeset
|
205 'MaximumConnectionRetries' : 7, |
140 | 206 } |
207 | |
90
afbac3eb28a5
integration tests of worklists
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
88
diff
changeset
|
208 |
88
47a3d6c08413
easier dicomweb setup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
87
diff
changeset
|
209 |
13 | 210 # Enable case-insensitive PN (the default on versions <= 0.8.6) |
87
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
211 config['CaseSensitivePN'] = False |
82 | 212 |
31 | 213 if args.plugins != None: |
87
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
214 config['Plugins'] = [ args.plugins ] |
31 | 215 |
3 | 216 with open(args.target, 'wt') as f: |
87
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
217 f.write(json.dumps(config, indent = True, sort_keys = True)) |
4b24faec842b
test_reconstruct_json2 + test_private_tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
82
diff
changeset
|
218 f.write('\n') |