Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.85 KB | None | 0 0
  1. /home/losaped/projects/s7/icargo/pkg/icargo/client_test.go:73: request:
  2. POST /s7stage/webservices/standard/admin/accesscontrol HTTP/1.1
  3. Host: icargo.ibsplc.aero
  4. Connection: close
  5. Content-Type: text/xml; charset="utf-8"
  6. Soapaction: http://www.ibsplc.com/icargo/services/AdminAccessControlService#login
  7. User-Agent: gowsdl/0.1
  8. icargo-identitytoken: aWNTZXNzaW9uSWQ6SFhQZnVnJTJCUU1INGFzclBzOCUyQnlHa09DY0FuYWpmNU5nWHdWTWpPa1duWHBoNFB1YnpaeU05JTJCTm8xJTJGTnNvQ1FzQU5vTGpnUGZ1Q05JJTBEJTBBajdINm9XODFkQSUzRCUzRA==
  9.  
  10. <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Header xmlns="http://schemas.xmlsoap.org/soap/envelope/"><LoginHeader xmlns="http://www.ibsplc.com/icargo/services"></LoginHeader><wsse:Security xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:Username xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">COPENRATDME</wsse:Username><wsse:Password xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">weblogic</wsse:Password></wsse:UsernameToken></wsse:Security></Header><Body xmlns="http://schemas.xmlsoap.org/soap/envelope/"><login xmlns="http://www.ibsplc.com/icargo/services/AdminAccessControlService/standard/2012/12/12_01"><request xmlns=""><userName>COPENRATDME</userName><password>weblogic</password><companyCode>S7</companyCode></request></login></Body></Envelope>
  11. response:
  12. HTTP/1.1 200 OK
  13. Connection: close
  14. Content-Type: text/xml; charset=UTF-8
  15. Date: Sat, 21 Sep 2019 03:35:05 GMT
  16. Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/1.0.2k
  17. Set-Cookie: JSESSIONID=sw5R4yycb2OizZWWE8LE91MwGdesJIpeqVIvf3H1Y28E_Xo7lUyf!1698811620; path=/
  18. Vary: Accept-Encoding
  19.  
  20. <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:loginResponse xmlns:ns2="http://www.ibsplc.com/icargo/services/AdminAccessControlService/standard/2012/12/12_01" xmlns:ns3="http://www.ibsplc.com/icargo/services" xmlns:ns4="http://www.ibsplc.com/icargo/services/types/SharedDefaultPublishService/standard/2012/12/12_01" xmlns:ns5="http://www.ibsplc.com/icargo/services/types/CapacityBookingService/2013/06/04_01"><response><sessionId>LnGxfkj6DJRcy76o1DuSWyDdseiKyZAKRbWai4q9ljNN16SnUMQimmp%2BE4ufo1T%2Fd9y5BGLkkuhO%0AJZm9%2FR8YoA%3D%3D</sessionId><language>ru</language><country>RU</country><stationCode>DME</stationCode><ownAirlineCode>S7</ownAirlineCode><airportCode>DME</airportCode><companyCode>S7</companyCode><roleGroupCode>STNAGT</roleGroupCode><userId>COPENRATDME</userId><dateFormat>dd-MMM-yyyy</dateFormat><timeFormat>HH:mm:ss</timeFormat><dateAndTimeFormat>dd-MMM-yyyy HH:mm:ss</dateAndTimeFormat><ownAirlineIdentifier>1421</ownAirlineIdentifier><defaultOfficeCode>DME</defaultOfficeCode><airportDateAndTime>21-Sep-2019 06:35:05</airportDateAndTime><timeZoneInformation><timeZoneName>Europe/Moscow</timeZoneName><bias>10800000</bias><daylightBias>0</daylightBias><daylightDay>0</daylightDay><daylightDayOfWeek>0</daylightDayOfWeek><daylightHour>0</daylightHour><daylightMilliseconds>0</daylightMilliseconds><daylightMinute>0</daylightMinute><daylightMonth>0</daylightMonth><daylightSecond>0</daylightSecond><daylightYear>0</daylightYear><standardBias>0</standardBias><standardDay>0</standardDay><standardDayOfWeek>0</standardDayOfWeek><standardHour>0</standardHour><standardMilliseconds>0</standardMilliseconds><standardMinute>0</standardMinute><standardMonth>0</standardMonth><standardSecond>0</standardSecond><standardYear>0</standardYear></timeZoneInformation></response></ns2:loginResponse></soap:Body></soap:Envelope>
  21. /home/losaped/projects/s7/icargo/pkg/icargo/client_test.go:94: request:
  22. POST /s7stage/webservices/external/capacity/booking/standard HTTP/1.1
  23. Host: icargo.ibsplc.aero
  24. Connection: close
  25. Content-Type: text/xml; charset="utf-8"
  26. Soapaction: http://www.ibsplc.com/icargo/services/CapacityBookingService/listFlightInformation
  27. User-Agent: gowsdl/0.1
  28. icargo-identitytoken: LnGxfkj6DJRcy76o1DuSWyDdseiKyZAKRbWai4q9ljNN16SnUMQimmp%2BE4ufo1T%2Fd9y5BGLkkuhO%0AJZm9%2FR8YoA%3D%3D
  29.  
  30. <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Header xmlns="http://schemas.xmlsoap.org/soap/envelope/"><LoginHeader xmlns="http://www.ibsplc.com/icargo/services"></LoginHeader><wsse:Security xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:Username xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">COPENRATDME</wsse:Username><wsse:Password xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">weblogic</wsse:Password></wsse:UsernameToken></wsse:Security></Header><Body xmlns="http://schemas.xmlsoap.org/soap/envelope/"><ListFlightInformationRequest xmlns="http://www.ibsplc.com/icargo/services/CapacityBookingService/2013/06/04_01"><FlightAvailabilityFilterType xmlns="http://www.ibsplc.com/icargo/services/types/CapacityBookingService/standard/2012/12/12_01"><destination>GOJ</destination><origin>DME</origin><flightType>CO</flightType><shippingDate>22-Jul-2019</shippingDate><flightCarrierCode>S7</flightCarrierCode><flightNumber>0005</flightNumber></FlightAvailabilityFilterType></ListFlightInformationRequest></Body></Envelope>
  31. response:
  32. HTTP/1.1 302 Moved Temporarily
  33. Connection: close
  34. Content-Type: text/html
  35. Date: Sat, 21 Sep 2019 03:35:07 GMT
  36. Location: http://icargo.ibsplc.aero/s7stage/loginFlow;jsessionid=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620
  37. Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/1.0.2k
  38. Set-Cookie: JSESSIONID=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620; path=/
  39. Vary: Accept-Encoding
  40.  
  41. <html><head><title>302 Moved Temporarily</title></head>
  42. <body bgcolor="#FFFFFF">
  43. <p>This document you requested has moved temporarily.</p>
  44. <p>It's now at <a href="http://icargo.ibsplc.aero/s7stage/loginFlow&#59;jsessionid=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620">http://icargo.ibsplc.aero/s7stage/loginFlow&#59;jsessionid=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620</a>.</p>
  45. </body></html>
  46.  
  47. request:
  48. GET /s7stage/loginFlow;jsessionid=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620 HTTP/0.0
  49. Host: icargo.ibsplc.aero
  50. Content-Type: text/xml; charset="utf-8"
  51. Soapaction: http://www.ibsplc.com/icargo/services/CapacityBookingService/listFlightInformation
  52. User-Agent: gowsdl/0.1
  53. icargo-identitytoken: LnGxfkj6DJRcy76o1DuSWyDdseiKyZAKRbWai4q9ljNN16SnUMQimmp%2BE4ufo1T%2Fd9y5BGLkkuhO%0AJZm9%2FR8YoA%3D%3D
  54.  
  55.  
  56. response:
  57. HTTP/1.0 301 Moved Permanently
  58. Connection: Keep-Alive
  59. Location: https://icargo.ibsplc.aero/s7stage/loginFlow;jsessionid=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620
  60. Server: BigIP
  61. Content-Length: 0
  62.  
  63.  
  64. request:
  65. GET /s7stage/loginFlow;jsessionid=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620 HTTP/0.0
  66. Host: icargo.ibsplc.aero
  67. Content-Type: text/xml; charset="utf-8"
  68. Referer: http://icargo.ibsplc.aero/s7stage/loginFlow;jsessionid=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620
  69. Soapaction: http://www.ibsplc.com/icargo/services/CapacityBookingService/listFlightInformation
  70. User-Agent: gowsdl/0.1
  71. icargo-identitytoken: LnGxfkj6DJRcy76o1DuSWyDdseiKyZAKRbWai4q9ljNN16SnUMQimmp%2BE4ufo1T%2Fd9y5BGLkkuhO%0AJZm9%2FR8YoA%3D%3D
  72.  
  73.  
  74. response:
  75. HTTP/1.1 200 OK
  76. Connection: Keep-Alive
  77. Content-Type: text/html; charset=ISO-8859-1
  78. Date: Sat, 21 Sep 2019 03:35:09 GMT
  79. Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/1.0.2k
  80. Set-Cookie: JSESSIONID=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620; path=/
  81. Set-Cookie: systemInfo.deviceType=COMPUTER
  82. Vary: Accept-Encoding
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95. <!DOCTYPE html>
  96. <html xmlns="http://www.w3.org/1999/xhtml">
  97.  
  98. <head>
  99. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  100. <meta http-equiv="cache-control" content="no-cache"/>
  101. <meta http-equiv="expires" content="0"/>
  102. <meta http-equiv="pragma" content="no-cache"/>
  103. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  104.  
  105.  
  106.  
  107. <title>iCargo Login</title>
  108. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  109. <meta name="decorator" content="emptypanel" />
  110. <link href="/s7stage/css/login/default_ui.css"
  111. rel="stylesheet" type="text/css" />
  112. <script type="text/javascript">
  113.  
  114. // - Fix for ICRD-2804 Starts..
  115. try{
  116.  
  117. //check if this page is being opened inside a frame or in a new window
  118. if(self!=top)
  119. {
  120.  
  121. window.top.window.location = "/s7stage/login.jsp";
  122.  
  123. //loginwindowHandle=window.open("/icargo/login.jsp","_blank");
  124. //loginwindowHandle.opener=self;
  125.  
  126. }
  127. else{
  128.  
  129. //check if parent window is present
  130. if(window.opener){
  131.  
  132. var op = window.opener;
  133.  
  134. // Array for holding all the parent windows
  135. var winArray=new Array();
  136.  
  137. winArray.push(op)
  138. try{
  139. while(op.opener){
  140. op=op.opener;
  141. winArray.push(op);
  142. }
  143. }catch(e){}
  144.  
  145. //close all parent windows
  146. for(var k=0;k<winArray.length;k++){
  147. var win=winArray[k];
  148. if(win.top.window.closeNow){
  149. win.top.window.closeNow();
  150. }else{
  151. win.top.window.close();
  152. }
  153. }
  154. window.opener=null;
  155. }
  156. }
  157. }catch(e){}
  158. // - Fix for ICRD-2804 Ends..
  159.  
  160.  
  161. function appendName() {
  162.  
  163. if(!checkIfPopupIsDisabled()){
  164. return false;
  165. }
  166.  
  167. document.forms[0].username.value = document.forms[0].username.value.toUpperCase();
  168. document.forms[0].companyCode.value = document.forms[0].companyCode.value.toUpperCase();
  169. var userName = document.forms[0].username.value;
  170. var companyCode = document.forms[0].companyCode.value;
  171. document.forms[0].j_username.value=userName+"%@%"+companyCode;
  172. document.forms[0].j_username.value= document.forms[0].j_username.value.toUpperCase();
  173. return true;
  174. }
  175.  
  176. function clearFields() {
  177. document.forms[0].username.value = "";
  178. document.forms[0].companyCode.value = "";
  179. document.forms[0].j_password.value = "";
  180. document.forms[0].j_username.value = "";
  181. }
  182.  
  183. var checkurl = 'http://icargo.ibsplc.aero:80/s7stage/login.jsp';
  184.  
  185.  
  186. var kfprod = checkurl.indexOf("192.168.205.16");
  187. var kfstage = checkurl.indexOf("192.168.205.18");
  188. var kfcra = checkurl.indexOf("itcra");
  189.  
  190. var airastana = checkurl.indexOf("airastana");
  191. var kcstage = checkurl.indexOf("kcstage");
  192. var kccra = checkurl.indexOf("kccra");
  193.  
  194. //window.defaultStatus = checkurl;
  195.  
  196.  
  197. if(kfcra >= 1 ){window.defaultStatus="KF CRA";}
  198. if(kfstage >= 1){window.defaultStatus="KF STAGING";}
  199. if(kfprod >= 1){window.defaultStatus="KF PRODUCTION";}
  200.  
  201. if(kccra >= 1 ){window.defaultStatus="KC CRA";}
  202. if(kcstage >= 1){window.defaultStatus="KC STAGING";}
  203. if(airastana >= 1){window.defaultStatus="KC PRODUCTION";}
  204.  
  205.  
  206. </script>
  207. </head>
  208.  
  209.  
  210.  
  211. <body id="bodyStyle">
  212.  
  213.  
  214.  
  215.  
  216.  
  217. <div class="login_layout">
  218. <div class="login_banner">
  219. <div class="logo_banner">
  220. <!--img src="images/login/vi_logo.png" /-->
  221. <span class="airline_logo"></span>
  222. <P>The Next generation Cargo System</P>
  223. </div>
  224. </div>
  225. <div class="grey_box">
  226. <div class="left">
  227. <h6>iCargo - The Next Generation Cargo Management System</h6>
  228. <ul><li>Fully integrated - end-to-end electronic processing platform�for air cargo management</li>
  229. <li>Decluttered IT environment � One time data capture, save time and effort</li>
  230. <li>New generation technology � flexible, secure and reliable</li>
  231. <li>Fully web based � Easy to deploy and distribute, no client installation</li>
  232. <li>Innovation� enabler � easier to adapt to emerging technologies and tools</li>
  233. </ul>
  234. </div>
  235. <div class="right">
  236. <form method="post" action="j_security_check"><input type="hidden"
  237. name="j_username" />
  238. <p>User Name</p>
  239. <input autocomplete="off" type="text"
  240. style="text-transform : uppercase;"
  241. name="username" value="" />
  242. <p>Password</p>
  243. <input autocomplete="off" type="password"
  244. name="j_password" value="" />
  245. <p>Company Code</p>
  246.  
  247. <input autocomplete="off" type="text"
  248. style="text-transform : uppercase;"
  249. name="companyCode" value="" />
  250.  
  251. <p>
  252. <input type="submit" name="btOk"
  253. value="Login" class="login_button" />
  254. &nbsp;&nbsp;<input type="button" name="btCancel" value="Clear"
  255. onclick="clearFields();" class="login_button" /></p>
  256. </form>
  257. </div>
  258. </div>
  259. </div>
  260. <div class="login_footer">
  261. <div class="line_divider_top">&nbsp;</div>
  262. <div class="left" >
  263. <div style="float:left;"><p><img src="images/login/ibs_logo.png" /></p></div><div style="float:left;margin-top:5px;"><p>&copy; 2018, IBS Software. All Rights Reserved<br/><a href="#" onclick="javascript:window.open('http://www.ibsplc.com/products/airline-cargo-services','_blank','')">http://www.ibsplc.com/products/airline-cargo-services</a></p></div>
  264. </div>
  265. <div class="right">
  266. <p><span>Powered by</span> <img src="images/login/iCargoLOGO.png" /></p>
  267. </div>
  268. <div class="line_divider">&nbsp;</div>
  269. </div>
  270.  
  271.  
  272. <script>
  273.  
  274. function putLoginPageInCorrectWindow(){
  275. /*if(self==top){
  276. if(top.opener){
  277. top.opener.location=self.location;
  278. var aw = screen.availWidth;
  279. var ah = screen.availHeight;
  280. top.opener.resizeTo(aw,ah);
  281. top.opener.moveTo(0,0);
  282. top.opener.focus();
  283. self.close();
  284. }
  285. }else{
  286. top.location = self.location;
  287. }*/
  288.  
  289. if(!checkBrowserVersion()){
  290. return;
  291. }
  292. }
  293.  
  294. /**
  295. Function that checks the browser version
  296. **/
  297.  
  298. function checkBrowserVersion(){
  299.  
  300. if(window.navigator.appVersion.indexOf("IE 5.") != -1){
  301.  
  302. document.getElementById('popupimageDiv').style.visibility='visible'
  303. document.getElementById('informationDiv').style.visibility='visible'
  304. document.forms[0].btOk.disabled=true;
  305. document.getElementById('informationDiv').innerHTML='<b>The application is supported only on Internet Explorer 6 <br>&nbsp; or higher. </b>&nbsp;Please upgrade to IE 6 or 7 to continue...';
  306. return false;
  307. }
  308. return true;
  309. }
  310.  
  311.  
  312. /**
  313. function that checks if Popups are disabled
  314. **/
  315. function checkIfPopupIsDisabled(){
  316.  
  317. var popUpsBlocked = false;
  318. var popupWin = window.open('','','width=0,height=0,left=-500,top=-500,scrollbars=0,status=0');
  319.  
  320. if(popupWin) {
  321. popupWin.close();
  322.  
  323. } else {
  324.  
  325. popUpsBlocked = true;
  326. }
  327.  
  328. if(popUpsBlocked){
  329. document.getElementById('popupimageDiv').style.visibility='visible'
  330. document.getElementById('informationDiv').style.visibility='visible'
  331. document.forms[0].btOk.disabled=true;
  332. document.getElementById('informationDiv').innerHTML='<b>&nbsp;Popups are blocked</b><br>&nbsp;&nbsp;Please turn off the popup blocker to continue...'
  333. return false;
  334. }
  335.  
  336. return true;
  337. }
  338.  
  339.  
  340.  
  341.  
  342. function maximizeWin() {
  343. if (window.screen) {
  344. var aw = screen.availWidth;
  345. var ah = screen.availHeight;
  346. window.moveTo(0, 0);
  347. window.resizeTo(aw, ah);
  348. }
  349. }
  350.  
  351. function toUpper(field) {
  352. field.value = field.value.toUpperCase();
  353. }
  354.  
  355. window.onload=putLoginPageInCorrectWindow;
  356.  
  357. maximizeWin();
  358. document.forms[0].username.focus();
  359.  
  360. document.forms[0].onsubmit = appendName;
  361.  
  362.  
  363. </script>
  364.  
  365.  
  366. </body>
  367.  
  368.  
  369.  
  370. </html>
  371.  
  372. /home/losaped/projects/s7/icargo/pkg/icargo/client_test.go:95: expected element type <Envelope> but have <html>
  373. FAIL
  374. FAIL bitbucket.org/s7cargo/icargo/pkg/icargo 5.368s
  375. Error: Tests failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement