-
Notifications
You must be signed in to change notification settings - Fork 5
commit for BugFix#1 challenge #2
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions
34
API/docs/postman/F2F-BugFix of get flight status latest data.postman_collection.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "83b6c426-6768-4287-ba5b-d7f7fe020d4f", | ||
"name": "F2F-BugFix of get flight status latest data", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "Get flight details by shipment number (200)", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "" | ||
}, | ||
"url": { | ||
"raw": "http://localhost:8080/v1/flight/PNH015420", | ||
"protocol": "http", | ||
"host": [ | ||
"localhost" | ||
], | ||
"port": "8080", | ||
"path": [ | ||
"v1", | ||
"flight", | ||
"PNH015420" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Panalpina Bugfix#1 verfiication | ||
|
||
The fix is only for backend the verification document explains only aboout how to verify the backend service. | ||
|
||
|
||
#Apply patch | ||
|
||
Skip this test if already done. | ||
|
||
git am > 0001-commit-for-BugFix-1-challenge.patch | ||
sah2ed marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
#Setup backend: | ||
|
||
update the below properties in application.properties. | ||
|
||
fxml3.username=UCtURaPR | ||
fxml3.password=9d1f7723d5165ac5d9151c8b966176982aea8eca | ||
fxml3.url.prefix=https://flightxml.flightaware.com/json/FlightXML3/ | ||
|
||
setup the backend document by following the steps in $cd API/docs/README.md file. | ||
|
||
|
||
#Bug 1: | ||
|
||
By looking at the stacktrace, there is a mismatch in the response json. I fixed by checking for the not null condition. | ||
|
||
Import the $cd API/docs/postman/F2F-BugFix of get flight status latest data.postman_collection into postman. | ||
|
||
Execute the Get flight details by shipment number (200) with any value parameter by replacing the value with `PNH015420`. You will get the result. | ||
|
||
Please refer the screenshots. | ||
|
||
|
||
 | ||
|
||
|
||
 | ||
|
||
|
||
|
||
#Bug 2: | ||
|
||
The debug log is enabled. Refer the screenshot. | ||
|
||
|
||
 | ||
|
||
#Bug 3: | ||
|
||
By looking at the console of browser, the error is because of max request limit reached. There is no code fix required. It has to do with business deciding on the maximum request can be buy from google maps. | ||
|
||
You have exceeded your request quota for this API. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.