Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shyammohankanojia/02cc4c0116b5bca36a5cabaa57f54e81 to your computer and use it in GitHub Desktop.
Save shyammohankanojia/02cc4c0116b5bca36a5cabaa57f54e81 to your computer and use it in GitHub Desktop.
DIFF TESTS
Request
===============================================================================================
<Request xmlns="http://www.thermeon.com/webXG/xml/webxml/" referenceNumber="BER20170710114922_0008592" version="2.2500">
  <ResRates>
    <Pickup locationCode="ORX51" dateTime="2017-10-31T14:40:00"></Pickup>
    <Return locationCode="ORX51" dateTime="10000-01-01T00:00:00"></Return>
    <CorpRateID>CTR-NET003</CorpRateID>
    <EstimateType>3</EstimateType>
  </ResRates>
</Request>

Differences
===============================================================================================
[/Response/ResRates/Messages/Message/Text]
Tugboat: (string) "INVALID RETURN DATE                                         (1344)"
WebXML:  (string) "INVALID RETURN DATE"

Tugboat Response
===============================================================================================
Status Code:  200
<Response xmlns="http://www.thermeon.com/webXG/xml/webxml/" regardingReferenceNumber="COMPARETEST-20170712_100607-tugboat" version="2.2500" webxg_id="b9f9d812-66e9-11e7-b5e1-d772f6da1c0c">
  <ResRates success="false">
    <Messages>
      <Message number="1344" type="Error">
        <Text>INVALID RETURN DATE                                         (1344)</Text>
      </Message>
    </Messages>
    <Count>0</Count>
  </ResRates>
</Response>

webXML Response
===============================================================================================
Status Code:  200
<Response xmlns="http://www.thermeon.com/webXG/xml/webxml/" regardingReferenceNumber="COMPARETEST-20170712_100607-webXML" version="2.2500" webxg_id="b9eb222c-66e9-11e7-85b0-7fd6174848dc">
  <ResRates success="false">
    <Messages>
      <Message number="1344" type="Error">
        <Text>INVALID RETURN DATE                                         (1344)</Text>
      </Message>
    </Messages>
    <Count>0</Count>
  </ResRates>
</Response>

2017/07/12 15:36:07 Reading request file 2017-07-10T10:49:22.626Z-nw2yAHyyTYualVR8HRsXJg.xml
2017/07/12 15:36:07 Error creating pasture. Haystack will not be checked. Error: 2 error(s) occurred:

* Cassandra cluster addresses is missing
* Cassandra keyspace is missing
2017/07/12 15:36:07 Making request to webXML...
2017/07/12 15:36:07 Making request to tugboat...
[]�[32mstring�[0m{
  �[31m�[1m"�[0m�[31mBasic Y2FydHdsOiRpRzZEYTIq�[0m�[31m�[1m"�[0m,
}
[]�[32mstring�[0m{
  �[31m�[1m"�[0m�[31mBasic Y2FydHdsOiRpRzZEYTIq�[0m�[31m�[1m"�[0m,
}
2017/07/12 15:36:09 Could not find rates in response
2017/07/12 15:36:09 Got response from webXML
2017/07/12 15:36:09 Could not find rates in response
2017/07/12 15:36:09 Got response from tugboat
Request
===============================================================================================
<Request xmlns="http://www.thermeon.com/webXG/xml/webxml/" referenceNumber="BER20170710114922_0008592" version="2.2500">
  <ResRates>
    <Pickup locationCode="ORX51" dateTime="2017-10-31T14:40:00"></Pickup>
    <Return locationCode="ORX51" dateTime="10000-01-01T00:00:00"></Return>
    <CorpRateID>CTR-DISTFR</CorpRateID>
    <EstimateType>3</EstimateType>
  </ResRates>
</Request>

Differences
===============================================================================================
[/Response/ResRates/Messages/Message/Text]
Tugboat: (string) "INVALID RETURN DATE                                         (1344)"
WebXML:  (string) "INVALID RETURN DATE"

Tugboat Response
===============================================================================================
Status Code:  200
<Response xmlns="http://www.thermeon.com/webXG/xml/webxml/" regardingReferenceNumber="COMPARETEST-20170712_100610-tugboat" version="2.2500" webxg_id="bad26722-66e9-11e7-af0e-bb82566634a3">
  <ResRates success="false">
    <Messages>
      <Message number="1344" type="Error">
        <Text>INVALID RETURN DATE                                         (1344)</Text>
      </Message>
    </Messages>
    <Count>0</Count>
  </ResRates>
</Response>

webXML Response
===============================================================================================
Status Code:  200
<Response xmlns="http://www.thermeon.com/webXG/xml/webxml/" regardingReferenceNumber="COMPARETEST-20170712_100610-webXML" version="2.2500" webxg_id="bb5682aa-66e9-11e7-be4a-e0192701cf07">
  <ResRates success="false">
    <Messages>
      <Message number="1344" type="Error">
        <Text>INVALID RETURN DATE                                         (1344)</Text>
      </Message>
    </Messages>
    <Count>0</Count>
  </ResRates>
</Response>

2017/07/12 15:36:09 Reading request file 2017-07-10T10:49:22.674Z-_y27jMIDQzC9FibxAHgBsg.xml
2017/07/12 15:36:10 Error creating pasture. Haystack will not be checked. Error: 2 error(s) occurred:

* Cassandra cluster addresses is missing
* Cassandra keyspace is missing
2017/07/12 15:36:10 Making request to webXML...
2017/07/12 15:36:10 Making request to tugboat...
[]�[32mstring�[0m{
  �[31m�[1m"�[0m�[31mBasic Y2FydHdsOiRpRzZEYTIq�[0m�[31m�[1m"�[0m,
}
[]�[32mstring�[0m{
  �[31m�[1m"�[0m�[31mBasic Y2FydHdsOiRpRzZEYTIq�[0m�[31m�[1m"�[0m,
}
2017/07/12 15:36:11 Could not find rates in response
2017/07/12 15:36:11 Got response from tugboat
2017/07/12 15:36:12 Could not find rates in response
2017/07/12 15:36:12 Got response from webXML
Request
===============================================================================================
<Request xmlns="http://www.thermeon.com/webXG/xml/webxml/" referenceNumber="YTT20170710114947_0010529" version="2.2500">
  <ResRates>
    <Pickup locationCode="ORX51" dateTime="2017-07-21T18:00:00"></Pickup>
    <Return locationCode="ORX51" dateTime="2017-07-22T18:00:00"></Return>
    <CorpRateID>CTR-DISTFR</CorpRateID>
    <EstimateType>3</EstimateType>
  </ResRates>
</Request>

Differences
===============================================================================================
[/Response/ResRates/Messages/Message/[0]/-number]
Tugboat: (string) "1812"
WebXML:  (string) "1830"

[/Response/ResRates/Messages/Message/[0]/-type]
Tugboat: (string) "Error"
WebXML:  (string) "Warning"

[/Response/ResRates/Messages/Message/[0]/Text]
Tugboat: (string) "NO VALID VOUCHER RATE FOUND"
WebXML:  (string) "BEFORE/AFTER-HOURS RETURN. DROPBOX AVAILABLE."

[/Response/ResRates/Messages/Message/[1]/-number]
Tugboat: (string) "1830"
WebXML:  (string) "1812"

[/Response/ResRates/Messages/Message/[1]/-type]
Tugboat: (string) "Warning"
WebXML:  (string) "Error"

[/Response/ResRates/Messages/Message/[1]/Text]
Tugboat: (string) "BEFORE/AFTER-HOURS RETURN. DROPBOX AVAILABLE."
WebXML:  (string) "NO VALID VOUCHER RATE FOUND"

Tugboat Response
===============================================================================================
Status Code:  200
<Response regardingReferenceNumber="COMPARETEST-20170712_101027-tugboat" webxg_id="2c95ba2d-bfb7-4b26-9120-8a3c8cc1f618" version="2.2500" xmlns="http://www.thermeon.com/webXG/xml/webxml/">
  <ResRates success="false">
    <Messages>
      <Message number="1812" type="Error">
        <Text>NO VALID VOUCHER RATE FOUND</Text>
      </Message>
      <Message number="1830" type="Warning">
        <Text>BEFORE/AFTER-HOURS RETURN. DROPBOX AVAILABLE.</Text>
      </Message>
      <Message number="2708" type="Info">
        <Text>STOPSELL: STOPSELL RULE ENCOUNTERED - PLEASE CHECK DETAIL</Text>
      </Message>
      <Message number="1378" type="Info">
        <Text>RATE CODE CHANGED</Text>
      </Message>
    </Messages>
    <Count>0</Count>
  </ResRates>
</Response>

webXML Response
===============================================================================================
Status Code:  200
<Response xmlns="http://www.thermeon.com/webXG/xml/webxml/" regardingReferenceNumber="COMPARETEST-20170712_101027-webXML" version="2.2500" webxg_id="54b3a964-66ea-11e7-8ce6-3aab5acd59cc">
  <ResRates success="false">
    <Messages>
      <Message number="1830" type="Warning">
        <Text>BEFORE/AFTER-HOURS RETURN. DROPBOX AVAILABLE.               (1830)</Text>
      </Message>
      <Message number="1812" type="Error">
        <Text>NO VALID VOUCHER RATE FOUND                                 (1812)</Text>
      </Message>
      <Message number="2708" type="Info">
        <Text>STOPSELL: STOPSELL RULE ENCOUNTERED - PLEASE CHECK DETAIL   (2708)</Text>
      </Message>
      <Message number="1378" type="Info">
        <Text>RATE CODE CHANGED                                           (1378)</Text>
      </Message>
    </Messages>
    <Count>0</Count>
  </ResRates>
</Response>

2017/07/12 15:40:27 Reading request file 2017-07-10T10:49:47.947Z-AOr0A-RVTmaJvrWZU3JEqQ.xml
2017/07/12 15:40:27 Error creating pasture. Haystack will not be checked. Error: 2 error(s) occurred:

* Cassandra cluster addresses is missing
* Cassandra keyspace is missing
2017/07/12 15:40:27 Making request to webXML...
2017/07/12 15:40:27 Making request to tugboat...
[]�[32mstring�[0m{
  �[31m�[1m"�[0m�[31mBasic Y2FydHdsOiRpRzZEYTIq�[0m�[31m�[1m"�[0m,
}
[]�[32mstring�[0m{
  �[31m�[1m"�[0m�[31mBasic Y2FydHdsOiRpRzZEYTIq�[0m�[31m�[1m"�[0m,
}
2017/07/12 15:40:28 Could not find rates in response
2017/07/12 15:40:28 Got response from tugboat
2017/07/12 15:40:29 Could not find rates in response
2017/07/12 15:40:29 Got response from webXML
@skldt
Copy link

skldt commented Jul 13, 2017

@shyammohankanojia Looks like there's an issue with your setup somewhere - either in the ArgoEndpoints environment variable used to start Tugboat, or in the setup of the tunnels. You shouldn't get lines such as Tugboat: (string) "INVALID RETURN DATE (1344)" for Tugboat+Argo since Tugboat+Argo doesn't return that number at the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment