Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /home/losaped/projects/s7/icargo/pkg/icargo/client_test.go:73: request:
- POST /s7stage/webservices/standard/admin/accesscontrol HTTP/1.1
- Host: icargo.ibsplc.aero
- Connection: close
- Content-Type: text/xml; charset="utf-8"
- Soapaction: http://www.ibsplc.com/icargo/services/AdminAccessControlService#login
- User-Agent: gowsdl/0.1
- icargo-identitytoken: aWNTZXNzaW9uSWQ6SFhQZnVnJTJCUU1INGFzclBzOCUyQnlHa09DY0FuYWpmNU5nWHdWTWpPa1duWHBoNFB1YnpaeU05JTJCTm8xJTJGTnNvQ1FzQU5vTGpnUGZ1Q05JJTBEJTBBajdINm9XODFkQSUzRCUzRA==
- <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>
- response:
- HTTP/1.1 200 OK
- Connection: close
- Content-Type: text/xml; charset=UTF-8
- Date: Sat, 21 Sep 2019 03:35:05 GMT
- Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/1.0.2k
- Set-Cookie: JSESSIONID=sw5R4yycb2OizZWWE8LE91MwGdesJIpeqVIvf3H1Y28E_Xo7lUyf!1698811620; path=/
- Vary: Accept-Encoding
- <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>
- /home/losaped/projects/s7/icargo/pkg/icargo/client_test.go:94: request:
- POST /s7stage/webservices/external/capacity/booking/standard HTTP/1.1
- Host: icargo.ibsplc.aero
- Connection: close
- Content-Type: text/xml; charset="utf-8"
- Soapaction: http://www.ibsplc.com/icargo/services/CapacityBookingService/listFlightInformation
- User-Agent: gowsdl/0.1
- icargo-identitytoken: LnGxfkj6DJRcy76o1DuSWyDdseiKyZAKRbWai4q9ljNN16SnUMQimmp%2BE4ufo1T%2Fd9y5BGLkkuhO%0AJZm9%2FR8YoA%3D%3D
- <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>
- response:
- HTTP/1.1 302 Moved Temporarily
- Connection: close
- Content-Type: text/html
- Date: Sat, 21 Sep 2019 03:35:07 GMT
- Location: http://icargo.ibsplc.aero/s7stage/loginFlow;jsessionid=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620
- Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/1.0.2k
- Set-Cookie: JSESSIONID=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620; path=/
- Vary: Accept-Encoding
- <html><head><title>302 Moved Temporarily</title></head>
- <body bgcolor="#FFFFFF">
- <p>This document you requested has moved temporarily.</p>
- <p>It's now at <a href="http://icargo.ibsplc.aero/s7stage/loginFlow;jsessionid=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620">http://icargo.ibsplc.aero/s7stage/loginFlow;jsessionid=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620</a>.</p>
- </body></html>
- request:
- GET /s7stage/loginFlow;jsessionid=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620 HTTP/0.0
- Host: icargo.ibsplc.aero
- Content-Type: text/xml; charset="utf-8"
- Soapaction: http://www.ibsplc.com/icargo/services/CapacityBookingService/listFlightInformation
- User-Agent: gowsdl/0.1
- icargo-identitytoken: LnGxfkj6DJRcy76o1DuSWyDdseiKyZAKRbWai4q9ljNN16SnUMQimmp%2BE4ufo1T%2Fd9y5BGLkkuhO%0AJZm9%2FR8YoA%3D%3D
- response:
- HTTP/1.0 301 Moved Permanently
- Connection: Keep-Alive
- Location: https://icargo.ibsplc.aero/s7stage/loginFlow;jsessionid=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620
- Server: BigIP
- Content-Length: 0
- request:
- GET /s7stage/loginFlow;jsessionid=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620 HTTP/0.0
- Host: icargo.ibsplc.aero
- Content-Type: text/xml; charset="utf-8"
- Referer: http://icargo.ibsplc.aero/s7stage/loginFlow;jsessionid=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620
- Soapaction: http://www.ibsplc.com/icargo/services/CapacityBookingService/listFlightInformation
- User-Agent: gowsdl/0.1
- icargo-identitytoken: LnGxfkj6DJRcy76o1DuSWyDdseiKyZAKRbWai4q9ljNN16SnUMQimmp%2BE4ufo1T%2Fd9y5BGLkkuhO%0AJZm9%2FR8YoA%3D%3D
- response:
- HTTP/1.1 200 OK
- Connection: Keep-Alive
- Content-Type: text/html; charset=ISO-8859-1
- Date: Sat, 21 Sep 2019 03:35:09 GMT
- Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/1.0.2k
- Set-Cookie: JSESSIONID=tyNR4zNoA4vIQV8bxsUAP0pipOhsySckDiJFkfk3-Zx6f7m0WbgF!1698811620; path=/
- Set-Cookie: systemInfo.deviceType=COMPUTER
- Vary: Accept-Encoding
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <meta http-equiv="cache-control" content="no-cache"/>
- <meta http-equiv="expires" content="0"/>
- <meta http-equiv="pragma" content="no-cache"/>
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <title>iCargo Login</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <meta name="decorator" content="emptypanel" />
- <link href="/s7stage/css/login/default_ui.css"
- rel="stylesheet" type="text/css" />
- <script type="text/javascript">
- // - Fix for ICRD-2804 Starts..
- try{
- //check if this page is being opened inside a frame or in a new window
- if(self!=top)
- {
- window.top.window.location = "/s7stage/login.jsp";
- //loginwindowHandle=window.open("/icargo/login.jsp","_blank");
- //loginwindowHandle.opener=self;
- }
- else{
- //check if parent window is present
- if(window.opener){
- var op = window.opener;
- // Array for holding all the parent windows
- var winArray=new Array();
- winArray.push(op)
- try{
- while(op.opener){
- op=op.opener;
- winArray.push(op);
- }
- }catch(e){}
- //close all parent windows
- for(var k=0;k<winArray.length;k++){
- var win=winArray[k];
- if(win.top.window.closeNow){
- win.top.window.closeNow();
- }else{
- win.top.window.close();
- }
- }
- window.opener=null;
- }
- }
- }catch(e){}
- // - Fix for ICRD-2804 Ends..
- function appendName() {
- if(!checkIfPopupIsDisabled()){
- return false;
- }
- document.forms[0].username.value = document.forms[0].username.value.toUpperCase();
- document.forms[0].companyCode.value = document.forms[0].companyCode.value.toUpperCase();
- var userName = document.forms[0].username.value;
- var companyCode = document.forms[0].companyCode.value;
- document.forms[0].j_username.value=userName+"%@%"+companyCode;
- document.forms[0].j_username.value= document.forms[0].j_username.value.toUpperCase();
- return true;
- }
- function clearFields() {
- document.forms[0].username.value = "";
- document.forms[0].companyCode.value = "";
- document.forms[0].j_password.value = "";
- document.forms[0].j_username.value = "";
- }
- var checkurl = 'http://icargo.ibsplc.aero:80/s7stage/login.jsp';
- var kfprod = checkurl.indexOf("192.168.205.16");
- var kfstage = checkurl.indexOf("192.168.205.18");
- var kfcra = checkurl.indexOf("itcra");
- var airastana = checkurl.indexOf("airastana");
- var kcstage = checkurl.indexOf("kcstage");
- var kccra = checkurl.indexOf("kccra");
- //window.defaultStatus = checkurl;
- if(kfcra >= 1 ){window.defaultStatus="KF CRA";}
- if(kfstage >= 1){window.defaultStatus="KF STAGING";}
- if(kfprod >= 1){window.defaultStatus="KF PRODUCTION";}
- if(kccra >= 1 ){window.defaultStatus="KC CRA";}
- if(kcstage >= 1){window.defaultStatus="KC STAGING";}
- if(airastana >= 1){window.defaultStatus="KC PRODUCTION";}
- </script>
- </head>
- <body id="bodyStyle">
- <div class="login_layout">
- <div class="login_banner">
- <div class="logo_banner">
- <!--img src="images/login/vi_logo.png" /-->
- <span class="airline_logo"></span>
- <P>The Next generation Cargo System</P>
- </div>
- </div>
- <div class="grey_box">
- <div class="left">
- <h6>iCargo - The Next Generation Cargo Management System</h6>
- <ul><li>Fully integrated - end-to-end electronic processing platform�for air cargo management</li>
- <li>Decluttered IT environment � One time data capture, save time and effort</li>
- <li>New generation technology � flexible, secure and reliable</li>
- <li>Fully web based � Easy to deploy and distribute, no client installation</li>
- <li>Innovation� enabler � easier to adapt to emerging technologies and tools</li>
- </ul>
- </div>
- <div class="right">
- <form method="post" action="j_security_check"><input type="hidden"
- name="j_username" />
- <p>User Name</p>
- <input autocomplete="off" type="text"
- style="text-transform : uppercase;"
- name="username" value="" />
- <p>Password</p>
- <input autocomplete="off" type="password"
- name="j_password" value="" />
- <p>Company Code</p>
- <input autocomplete="off" type="text"
- style="text-transform : uppercase;"
- name="companyCode" value="" />
- <p>
- <input type="submit" name="btOk"
- value="Login" class="login_button" />
- <input type="button" name="btCancel" value="Clear"
- onclick="clearFields();" class="login_button" /></p>
- </form>
- </div>
- </div>
- </div>
- <div class="login_footer">
- <div class="line_divider_top"> </div>
- <div class="left" >
- <div style="float:left;"><p><img src="images/login/ibs_logo.png" /></p></div><div style="float:left;margin-top:5px;"><p>© 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>
- </div>
- <div class="right">
- <p><span>Powered by</span> <img src="images/login/iCargoLOGO.png" /></p>
- </div>
- <div class="line_divider"> </div>
- </div>
- <script>
- function putLoginPageInCorrectWindow(){
- /*if(self==top){
- if(top.opener){
- top.opener.location=self.location;
- var aw = screen.availWidth;
- var ah = screen.availHeight;
- top.opener.resizeTo(aw,ah);
- top.opener.moveTo(0,0);
- top.opener.focus();
- self.close();
- }
- }else{
- top.location = self.location;
- }*/
- if(!checkBrowserVersion()){
- return;
- }
- }
- /**
- Function that checks the browser version
- **/
- function checkBrowserVersion(){
- if(window.navigator.appVersion.indexOf("IE 5.") != -1){
- document.getElementById('popupimageDiv').style.visibility='visible'
- document.getElementById('informationDiv').style.visibility='visible'
- document.forms[0].btOk.disabled=true;
- document.getElementById('informationDiv').innerHTML='<b>The application is supported only on Internet Explorer 6 <br> or higher. </b> Please upgrade to IE 6 or 7 to continue...';
- return false;
- }
- return true;
- }
- /**
- function that checks if Popups are disabled
- **/
- function checkIfPopupIsDisabled(){
- var popUpsBlocked = false;
- var popupWin = window.open('','','width=0,height=0,left=-500,top=-500,scrollbars=0,status=0');
- if(popupWin) {
- popupWin.close();
- } else {
- popUpsBlocked = true;
- }
- if(popUpsBlocked){
- document.getElementById('popupimageDiv').style.visibility='visible'
- document.getElementById('informationDiv').style.visibility='visible'
- document.forms[0].btOk.disabled=true;
- document.getElementById('informationDiv').innerHTML='<b> Popups are blocked</b><br> Please turn off the popup blocker to continue...'
- return false;
- }
- return true;
- }
- function maximizeWin() {
- if (window.screen) {
- var aw = screen.availWidth;
- var ah = screen.availHeight;
- window.moveTo(0, 0);
- window.resizeTo(aw, ah);
- }
- }
- function toUpper(field) {
- field.value = field.value.toUpperCase();
- }
- window.onload=putLoginPageInCorrectWindow;
- maximizeWin();
- document.forms[0].username.focus();
- document.forms[0].onsubmit = appendName;
- </script>
- </body>
- </html>
- /home/losaped/projects/s7/icargo/pkg/icargo/client_test.go:95: expected element type <Envelope> but have <html>
- FAIL
- FAIL bitbucket.org/s7cargo/icargo/pkg/icargo 5.368s
- Error: Tests failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement