-
Notifications
You must be signed in to change notification settings - Fork 128
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
service config version [T1031] #322
Merged
Lagovas
merged 41 commits into
cossacklabs:master
from
Lagovas:lagovas/T1031-service-config-version
Mar 7, 2019
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
9d758e0
export version as metric
Lagovas 2038bb8
export version as metric
Lagovas 7995802
Merge remote-tracking branch 'origin/master' into lagovas/T1002-expor…
Lagovas ea7ac0d
export metrics for translator/connector
Lagovas 379b247
move prometheus logic for exporting versions to cmd package
Lagovas bdf11d6
check censor version; run tests in a loop
Lagovas 00f9683
fix circleci config
Lagovas b41841e
fix golint issues
Lagovas 7b58bfe
fix identation
Lagovas b976062
fix
Lagovas 9a7e4b6
update tests requirements
Lagovas 4054945
update censor's tests
Lagovas 666229c
update network tests to support go1.12
Lagovas af7fd57
Merge remote-tracking branch 'origin/master' into lagovas/T971-censor…
Lagovas 8e1e5e2
fix tests for tls1.3
Lagovas 7ce0741
run go test with GODEBUG=tls13=1
Lagovas 9a52545
fix loop for tests
Lagovas 71f0867
log iterations too
Lagovas d04df59
store retries in artifacts
Lagovas 5fe8724
save log to artifacts, log status to distinguish timeout error from o…
Lagovas 6b986a0
add tests for version functions
Lagovas 9723346
add version to services configs
Lagovas d7850f3
correctly fetch status of bash commands; requested messages changes;
Lagovas 0a145c7
change error text for ErrInvalidVersionFormat
Lagovas 652824c
Merge branch 'lagovas/T971-censor-versioning' into lagovas/T1031-serv…
Lagovas 1a0fd92
fix comparison of parts; add tests;
Lagovas 35a4755
fix comparison; cleanup after configs check
Lagovas 0a845ee
remove hardcoded test value
Lagovas 925557c
don't suppress output from config generation script
Lagovas 022fc1e
run checks with configured gopath
Lagovas f2aeaad
ignore version from configs in tests when pass default args
Lagovas d69bbe8
unify error message for failed parsing parameters
Lagovas 5359067
Merge remote-tracking branch 'origin/master' into lagovas/T1031-servi…
Lagovas 0540ccc
don't check config version if config wasn't used
Lagovas 8589b85
replace versions via pyyaml instead sed
Lagovas e20dc27
change error message, back removed line from encryptor config
Lagovas 0c5c99b
udpate tests according to updated error messages
Lagovas e3f4bda
remove overriding status
Lagovas 24800d1
remove unsupported golang version
Lagovas c021f15
set default goroot
Lagovas d6e6bb8
use correct golang
Lagovas 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,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
function compare_configs() { | ||
folder_a=$1 | ||
folder_b=$2 | ||
binaries=(server connector translator addzone webconfig rollback keymaker poisonrecordmaker authmanager rotate) | ||
for cmd in "${binaries[@]}"; do | ||
cmp ${folder_a}/acra-${cmd}.yaml ${folder_b}/acra-${cmd}.yaml | ||
cmp_status="$?" | ||
if [[ "${cmp_status}" != "0" ]]; then | ||
status=1 | ||
fi | ||
done | ||
} | ||
# use go from GOROOT instead installed in system | ||
PATH=$GOROOT/bin:$PATH | ||
temp_configs=`mktemp -d` | ||
bash configs/regenerate.sh ${temp_configs} | ||
|
||
status=0 | ||
compare_configs configs ${temp_configs} | ||
|
||
rm -rf ${temp_configs} | ||
exit ${status} |
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
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
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,4 @@ | ||
version: 0.84.2 | ||
# path to config | ||
config_file: | ||
|
||
|
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,4 @@ | ||
version: 0.84.2 | ||
# path to config | ||
config_file: | ||
|
||
|
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,4 @@ | ||
version: 0.84.2 | ||
# Port of Acra HTTP API | ||
acraserver_api_connection_port: 9090 | ||
|
||
|
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,4 @@ | ||
version: 0.84.2 | ||
# Client ID | ||
client_id: client | ||
|
||
|
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.
this is very good move!!