from test_support import build, run import re build('workorder') run('workorder', output_file="out.tmp") for l in open('out.tmp').readlines(): print( re.sub(r"\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d[\+\-]\d\d:\d\d", "XXXX-XX-XXTXX:XX:XXZ", l))
from test_support import exec_cmd, build, run exec_cmd('ada2wsdl', ['-q', '-Pns_rename_arr_rec_server', '-f', '-lit', '-o', 'api.wsdl', 'api.ads']) exec_cmd('wsdl2aws', ['-q', '-f', '-types', 'api', 'api.wsdl']) build('ns_rename_arr_rec_server') run('ns_rename_arr_rec_server')
from test_support import exec_cmd, build, run exec_cmd('ada2wsdl', ['-q', '-f', '-lit', '-o', 'api.wsdl', 'api.ads']) exec_cmd('wsdl2aws', ['-q', '-f', '-types', 'api', 'api.wsdl']) build('ns_rename_arr_rec_server') run('ns_rename_arr_rec_server')
from test_support import gprbuild, run gprbuild('strip_filter') run('strip_filter')
from test_support import exec_cmd, build, run import re exec_cmd('wsdl2aws', ['-q', '-f', 'gettst.wsdl']) build('dl2_server') run('dl2_server', output_file="out.tmp") # Change dateTime r1 = r'(\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ)' r2 = r'(\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d\+\d\d:\d\d)' for l in open('out.tmp').readlines(): print(re.sub(r1+r'|'+r2, "XXXX-XX-XXTXX:XX:XXZ", l))
from test_support import exec_cmd, build, run import re exec_cmd('ada2wsdl', ['-q', '-f', '-Ptest', '-o', 'test.wsdl', '-doc', '-lit', '-a', 'http://*****:*****@": print(item) # name space for item in out: if s3.match(item): print(item.strip("<> \r\n")) break for item in out:
from test_support import exec_cmd, build, run exec_cmd('ada2wsdl', ['-q', '-f', '-doc', '-lit', '-o', 'api.wsdl', 'api.ads']) exec_cmd('wsdl2aws', ['-q', '-f', '-types', 'api', 'api.wsdl']) build('ns_rename_server') run('ns_rename_server')
from test_support import exec_cmd, build, run import re exec_cmd('wsdl2aws', ['-q', '-f', 'gettst.wsdl']) build('dl2_server') run('dl2_server', output_file="out.tmp") # Change dateTime r1 = r'(\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ)' r2 = r'(\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d[\+\-]\d\d:\d\d)' for l in open('out.tmp').readlines(): print(re.sub(r1+r'|'+r2, "XXXX-XX-XXTXX:XX:XXZ", l))
from test_support import build, run import re build('workorder') run('workorder', output_file="out.tmp") for l in open('out.tmp').readlines(): print(re.sub(r"\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d([\+\-]\d\d:\d\d|Z)", "XXXX-XX-XXTXX:XX:XXZ", l))