diff GenerateConfigurationForTests.py @ 11:c660a64ce2dd

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 18 Jun 2015 14:18:49 +0200
parents 2dbba2e6aa4b
children 7b69a561f4d3
line wrap: on
line diff
--- a/GenerateConfigurationForTests.py	Thu Jun 18 13:38:32 2015 +0200
+++ b/GenerateConfigurationForTests.py	Thu Jun 18 14:18:49 2015 +0200
@@ -75,8 +75,10 @@
 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'("RegisteredUsers"\s*:)\s*{', r'\1 { "alice" : "orthanctest"', config)
-config = re.sub(r'("DicomModalities"\s*:)\s*{', r'\1 { "orthanc" : [ "%s", "%s", %d ]' % 
+config = re.sub(r'("DicomModalities"\s*:)\s*{', r'\1 { "orthanctest" : [ "%s", "%s", %d ]' % 
                 ('ORTHANCTEST', ip, 5001), config)
+config = re.sub(r'("OrthancPeers"\s*:)\s*{', r'\1 { "peer" : [ "http://%s:%d/", "%s", "%s" ]' % 
+                (ip, 5000, 'alice', 'orthanctest'), config)
 
 with open(args.target, 'wt') as f:
     f.write(config)