-
Notifications
You must be signed in to change notification settings - Fork 5
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
System test fixes for new simplified read-pool #277
Merged
Merged
Changes from 7 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
e8c37ac
Test fix for new readpool
iamrz1 bf154e6
Merge branch 'master' into user-read-pools
iamrz1 9954248
Fixed integration test for new read-pool
iamrz1 bc7394b
Merge branch 'master' into user-read-pools
iamrz1 e09066d
Further test fix for read-pool
iamrz1 c57b360
Read pool test fix
iamrz1 29a0a76
Fix max_read_price test for read
iamrz1 1913bdf
Merge branch 'master' into user-read-pools
iamrz1 a083558
Revert read lock parameters to createParams based string
iamrz1 217540f
Fixed bool value in create params
iamrz1 008566d
Merge branch 'master' of github.com:0chain/system_test into user-read…
iamrz1 10024cf
Fix Download File Without read-lock for new readpool
iamrz1 8cf9cf7
Merge branch 'master' into user-read-pools
dabasov 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
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.
The createParams logic above is consistent with the rest of the test codebase, why has it been removed in favour of literal strings?
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.
according to my testing, boolean flag doesn't work with parameter map, and read pool lock command has boolean flag. hence all the call to lock read-pool has been changed to look similar in case we need to use the parameter more in the future.
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.
you can pass through a boolean with
output, err = readPoolLock(t, configPath, createParams(map[string]interface{}{
"booleanName": "",
}), true)
or
output, err = readPoolLock(t, configPath, createParams(map[string]interface{}{
"booleanName": "true",
}), true)
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.
see how we do it for the commit flag for example
https://github.com/0chain/system_test/pull/282/files#diff-b64b1f0b1e26c3819b06b4df6e3961b113082b9e744f7b4ea499371cf8459c89R60
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 would work with bool values that assume the default value to be false. I have added a fix in createParams that would work with boolean values directly, so we don't have to use blank string for false values.
Also reversed all the strings back to params using createParams.
PTAL.
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.
Thanks, much tidier