Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of FOP_ValidateFOP #86

Merged
merged 8 commits into from
Aug 15, 2017
Merged

Conversation

bimusiek
Copy link
Collaborator

Started working on implementation of FOP_ValidateFOP.

I will test it on our system, add some documentations and then it should be ready to release. 👍

@coveralls
Copy link

coveralls commented Jul 24, 2017

Coverage Status

Coverage decreased (-0.7%) to 99.147% when pulling 0dbedcd on whatsahoy:mh/validate-fop into 533bb43 on amabnl:master.

@bimusiek
Copy link
Collaborator Author

@DerMika Any ideas why Travis fails?
Locally I am getting OK (604 tests, 5233 assertions) 😞

@DerMika
Copy link
Collaborator

DerMika commented Jul 24, 2017

The Travis build fails with a unit test on the response handler, getting unknown instead of ERR status

@DerMika
Copy link
Collaborator

DerMika commented Jul 24, 2017

Time: 23.31 seconds, Memory: 40.00MB
There was 1 failure:
1) Test\Amadeus\Client\ResponseHandler\BaseTest::testCanHandleFopValidateFopErrorResponse
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'ERR'
+'UNKNOWN'
/home/travis/build/amabnl/amadeus-ws-client/tests/Amadeus/Client/ResponseHandler/BaseTest.php:1427
FAILURES!
Tests: 604, Assertions: 5228, Failures: 1.

@bimusiek
Copy link
Collaborator Author

@DerMika I see the travis status, however I cannot reproduce locally. All tests pass on my machine :( And I made sure to parse these errors properly (based on CreateFOP)

@DerMika
Copy link
Collaborator

DerMika commented Jul 24, 2017

Posting this while on vacation by the way ;)

@bimusiek
Copy link
Collaborator Author

@DerMika GO AWAY! 🌞 GET SOME REST!

@DerMika
Copy link
Collaborator

DerMika commented Jul 24, 2017

Did you commit and push the XML sample message?

@DerMika
Copy link
Collaborator

DerMika commented Jul 24, 2017

I would also advise you to remove all personally identifiable information from your sample message.

@bimusiek
Copy link
Collaborator Author

There is only a name, I don't care about it :) Credit Card is dummy one.

I still have no clue why the tests fail on Travis. My guess is that HandlerValidateFOP is not called on Travis somehow. Could case sensitivity be an issue?

@DerMika
Copy link
Collaborator

DerMika commented Jul 24, 2017

Yes, those Travis builds are running on a Linux platform

@bimusiek
Copy link
Collaborator Author

Found the issue:

-        $result = $respHandler->analyzeResponse($sendResult, 'Fop_ValidateFOP');
+        $result = $respHandler->analyzeResponse($sendResult, 'FOP_ValidateFOP');

@coveralls
Copy link

coveralls commented Aug 14, 2017

Coverage Status

Coverage increased (+0.0009%) to 99.843% when pulling 8961f86 on whatsahoy:mh/validate-fop into 533bb43 on amabnl:master.

@bimusiek bimusiek changed the title WIP: Implementation of FOP_ValidateFOP Implementation of FOP_ValidateFOP Aug 14, 2017
@DerMika DerMika merged commit b887a7a into amabnl:master Aug 15, 2017
@DerMika
Copy link
Collaborator

DerMika commented Aug 15, 2017

Thanks a lot for your contribution!

DerMika added a commit that referenced this pull request Aug 15, 2017
@DerMika DerMika added this to the 1.5.0 milestone Aug 25, 2017
atomy pushed a commit to mlamm/amadeus-ws-client that referenced this pull request Nov 26, 2018
…rice-for-manipulated-pricing to master

* commit 'e8bf3dd13de5ed3c2a72fa77f66f77886a50ee1d':
  - fixing internal server error for manipulated price-quotes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants