-
Notifications
You must be signed in to change notification settings - Fork 11
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
PNR_Info service #13
Open
alexkadyrov
wants to merge
31
commits into
mass-refactoring
Choose a base branch
from
refactoring-2
base: mass-refactoring
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
PNR_Info service #13
Changes from 20 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
8173691
logger
alexkadyrov 7cb307c
pnr_retrieve
alexkadyrov 6ae820c
pnr_retrieve
alexkadyrov cf6e1f6
pnr_retrieve
alexkadyrov bbecf3b
правки по дискашену
alexkadyrov c90777b
правки по дискашену
alexkadyrov cfcb2c0
правки по дискашену
alexkadyrov 074d09d
правки по дискашену
alexkadyrov 9a13392
PNR info. Segments parsing
alexkadyrov 4804268
Tests (#18)
smgladkovskiy 1eb476d
Update README.md
smgladkovskiy 1c0bdf7
PNR info. Segments parsing
alexkadyrov e924a5b
Merge branch 'mass-refactoring' into refactoring-2
alexkadyrov 6af3efe
search request
alexkadyrov 6048cf5
search request
alexkadyrov c9b4a60
search request
alexkadyrov 3a8d88e
search complete
alexkadyrov 89d0479
убрана бизнес логика, фильтры, скипы
alexkadyrov 3b955a5
cleanup
alexkadyrov 9e29012
config
alexkadyrov 69652c3
got rid of config
alexkadyrov 52b9b98
search request validation
alexkadyrov 6a2edef
search request add travelers
alexkadyrov cac9f47
search request add travelers
alexkadyrov 8dcb91d
тесты на make query и на валидаторы
alexkadyrov c251e9d
тесты на функции по работе с датами и временем
alexkadyrov 9ee8a84
тесты на методы структур
alexkadyrov 0bbdbe9
тесты на методы работы со слайсами и массивами
alexkadyrov af2a79d
deploy
alexkadyrov 1886525
deploy
alexkadyrov 83b7c9d
FareMasterPricerTravelBoardSearch V16.3
alexkadyrov 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 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,30 @@ | ||
version: 2.0 | ||
|
||
orbs: | ||
codecov: codecov/[email protected] | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/golang:1.12 | ||
steps: | ||
- checkout | ||
- run: | ||
name: "Create directories" | ||
command: | | ||
mkdir -p /tmp/artifacts | ||
- run: | ||
name: "Run tests and collect coverage reports" | ||
command: | | ||
make test | ||
mv coverage.html /tmp/artifacts | ||
mv c.out /tmp/artifacts | ||
- store_artifacts: | ||
path: /tmp/artifacts | ||
- run: | ||
name: Upload Coverage Results | ||
command: "bash <(curl -s https://codecov.io/bash) \ | ||
-f /tmp/artifacts/* \ | ||
-n ${CIRCLE_BUILD_NUM} \ | ||
-t ${CODECOV_TOKEN} \ | ||
-y .codecov.yml" |
This file contains 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.idea | ||
.env | ||
vendor | ||
vendor | ||
c.out | ||
coverage.html |
This file contains 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 |
---|---|---|
@@ -1,2 +1,17 @@ | ||
tests: | ||
go test ./... -v | ||
deps: | ||
go mod vendor | ||
.PHONY: deps | ||
|
||
lint: | ||
golint $(PKGS) | ||
.PHONY: lint | ||
|
||
test-unit: | ||
go test ./... --race --cover -count=1 -timeout 1s -coverprofile=c.out -v | ||
.PHONY: test-unit | ||
|
||
coverage-html: | ||
go tool cover -html=c.out -o coverage.html | ||
|
||
test: deps test-unit coverage-html | ||
.PHONY: test |
This file contains 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 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 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 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 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 |
---|---|---|
|
@@ -164,6 +164,8 @@ func (s *SOAP4Client) Call(soapUrl, soapAction, messageId string, query, reply i | |
return nil, err | ||
} | ||
|
||
fmt.Println("XML Response: ", string(rawbody)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. это в логи нужно. дебагом |
||
|
||
err = s.Logger.Push("inc", soapAction, string(rawbody)) | ||
if err != nil { | ||
_, _ = fmt.Fprintf(os.Stderr, "Failed to fire hook log_response: %v\n", err) | ||
|
This file contains 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,14 @@ | ||
package configuration | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. не нужен конфиг тут от слова совсем! |
||
|
||
var Config ConfigType | ||
|
||
type ConfigType struct { | ||
Formats formatsConfig | ||
Provider string | ||
} | ||
|
||
type formatsConfig struct { | ||
Time string | ||
Date string | ||
XMLDate string | ||
} |
This file contains 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 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 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 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 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не надо так. Опции -- для опций. Тут не нужно передавать структурой целой конфиг. Если нужен формат -- сделай "setTimeFormat" функцию и всё. По-дефолту формат в свойство клиента и переопределяй опцией.