-
Notifications
You must be signed in to change notification settings - Fork 103
enhancement: Verbose Test Harness #540
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
0d3e4b2
Add generated files for txn deltas endpoints
algochoi b33f2c3
Add path tests for state delta endpoints
algochoi a3bec1b
Ignore linter for generated files
algochoi 9d500cf
Regenerate files and add unit test tags
algochoi 6886ba1
Fix state deltas response
algochoi 180ca46
Change indexer branch
algochoi 3279f30
Test out client
algochoi 54e3dcc
experiment: VERBOSE_HARNESS=1
c116f9c
pin to testing's verbose-harness
3db050d
trigger another build
e0420f6
trigger build
tzaffi b36b25d
trigger build
1117a9b
trigger build
tzaffi ee2aa7a
trigger build
5d635f7
Update README.md
tzaffi 6c0b6e6
trigger build
4542904
trigger build
tzaffi e0a003b
trigger build
f7b23b9
yes, we are testing verbose=1 after all
4972463
markdownlint + trigger build
f2d08c6
trigger build
tzaffi 700514a
space
26a97de
Merge branch 'develop' into verbose-harness
cbe7400
Update .test-env
tzaffi 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ run: | |
| timeout: 5m | ||
| tests: false | ||
| skip-dirs: | ||
| - client/v2/common | ||
| - client/v2 | ||
|
|
||
| linters: | ||
| disable-all: true | ||
|
|
||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| package algod | ||
|
|
||
| import ( | ||
| "context" | ||
| "fmt" | ||
|
|
||
| "github.com/algorand/go-algorand-sdk/v2/client/v2/common" | ||
| "github.com/algorand/go-algorand-sdk/v2/types" | ||
| ) | ||
|
|
||
| // GetLedgerStateDeltaParams contains all of the query parameters for url serialization. | ||
| type GetLedgerStateDeltaParams struct { | ||
|
|
||
| // Format configures whether the response object is JSON or MessagePack encoded. If | ||
| // not provided, defaults to JSON. | ||
| Format string `url:"format,omitempty"` | ||
| } | ||
|
|
||
| // GetLedgerStateDelta get ledger deltas for a round. | ||
| type GetLedgerStateDelta struct { | ||
| c *Client | ||
|
|
||
| round uint64 | ||
|
|
||
| p GetLedgerStateDeltaParams | ||
| } | ||
|
|
||
| // Do performs the HTTP request | ||
| func (s *GetLedgerStateDelta) Do(ctx context.Context, headers ...*common.Header) (response types.LedgerStateDelta, err error) { | ||
| err = s.c.get(ctx, &response, fmt.Sprintf("/v2/deltas/%s", common.EscapeParams(s.round)...), s.p, headers) | ||
| return | ||
| } |
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,33 @@ | ||
| package algod | ||
|
|
||
| import ( | ||
| "context" | ||
| "fmt" | ||
|
|
||
| "github.com/algorand/go-algorand-sdk/v2/client/v2/common" | ||
| "github.com/algorand/go-algorand-sdk/v2/types" | ||
| ) | ||
|
|
||
| // GetLedgerStateDeltaForTransactionGroupParams contains all of the query parameters for url serialization. | ||
| type GetLedgerStateDeltaForTransactionGroupParams struct { | ||
|
|
||
| // Format configures whether the response object is JSON or MessagePack encoded. If | ||
| // not provided, defaults to JSON. | ||
| Format string `url:"format,omitempty"` | ||
| } | ||
|
|
||
| // GetLedgerStateDeltaForTransactionGroup get a ledger delta for a given | ||
| // transaction group. | ||
| type GetLedgerStateDeltaForTransactionGroup struct { | ||
| c *Client | ||
|
|
||
| id string | ||
|
|
||
| p GetLedgerStateDeltaForTransactionGroupParams | ||
| } | ||
|
|
||
| // Do performs the HTTP request | ||
| func (s *GetLedgerStateDeltaForTransactionGroup) Do(ctx context.Context, headers ...*common.Header) (response types.LedgerStateDelta, err error) { | ||
| err = s.c.get(ctx, &response, fmt.Sprintf("/v2/deltas/txn/group/%s", common.EscapeParams(s.id)...), s.p, headers) | ||
| return | ||
| } |
33 changes: 33 additions & 0 deletions
33
client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.go
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,33 @@ | ||
| package algod | ||
|
|
||
| import ( | ||
| "context" | ||
| "fmt" | ||
|
|
||
| "github.com/algorand/go-algorand-sdk/v2/client/v2/common" | ||
| "github.com/algorand/go-algorand-sdk/v2/client/v2/common/models" | ||
| ) | ||
|
|
||
| // GetTransactionGroupLedgerStateDeltasForRoundParams contains all of the query parameters for url serialization. | ||
| type GetTransactionGroupLedgerStateDeltasForRoundParams struct { | ||
|
|
||
| // Format configures whether the response object is JSON or MessagePack encoded. If | ||
| // not provided, defaults to JSON. | ||
| Format string `url:"format,omitempty"` | ||
| } | ||
|
|
||
| // GetTransactionGroupLedgerStateDeltasForRound get ledger deltas for transaction | ||
| // groups in a given round. | ||
| type GetTransactionGroupLedgerStateDeltasForRound struct { | ||
| c *Client | ||
|
|
||
| round uint64 | ||
|
|
||
| p GetTransactionGroupLedgerStateDeltasForRoundParams | ||
| } | ||
|
|
||
| // Do performs the HTTP request | ||
| func (s *GetTransactionGroupLedgerStateDeltasForRound) Do(ctx context.Context, headers ...*common.Header) (response models.TransactionGroupLedgerStateDeltasForRoundResponse, err error) { | ||
| err = s.c.get(ctx, &response, fmt.Sprintf("/v2/deltas/%s/txn/group", common.EscapeParams(s.round)...), s.p, headers) | ||
| return | ||
| } |
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
9 changes: 9 additions & 0 deletions
9
client/v2/common/models/transaction_group_ledger_state_deltas_for_round_response.go
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,9 @@ | ||
| package models | ||
|
|
||
| // TransactionGroupLedgerStateDeltasForRoundResponse response containing all ledger | ||
| // state deltas for transaction groups, with their associated Ids, in a single | ||
| // round. | ||
| type TransactionGroupLedgerStateDeltasForRoundResponse struct { | ||
| // Deltas | ||
| Deltas []LedgerStateDeltaForTransactionGroup `json:"Deltas"` | ||
| } |
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
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
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.