-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: switch e2e test setup to create genesis and configs via Dockert…
…est (#1363) * commit for debug * refactor to only marshal basic types * external docker init with sleep * add make docker-build-e2e-chain-init * change sleep for retry function * basic for loop in place of package * update changelog * Update tests/e2e/e2e_setup_test.go Co-authored-by: Roman <[email protected]> * Update tests/e2e/e2e_setup_test.go Co-authored-by: Roman <[email protected]> * Update tests/e2e/e2e_setup_test.go Co-authored-by: Roman <[email protected]> * Update tests/e2e/chain_init/main.go Co-authored-by: Roman <[email protected]> * roman suggestions * add for loop purpose comment * Update tests/e2e/chain/chain.go Co-authored-by: Dev Ojha <[email protected]> * Update tests/e2e/e2e_setup_test.go Co-authored-by: Aleksandr Bezobchuk <[email protected]> * group vars * Update tests/e2e/e2e_setup_test.go Co-authored-by: Dev Ojha <[email protected]> * linter fix * fixed ineff assign err Co-authored-by: Roman <[email protected]> Co-authored-by: Roman <[email protected]> Co-authored-by: Dev Ojha <[email protected]> Co-authored-by: Aleksandr Bezobchuk <[email protected]>
- Loading branch information
1 parent
e96679b
commit 8d28b8e
Showing
11 changed files
with
213 additions
and
109 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package chain | ||
|
||
import "fmt" | ||
|
||
type ChainMeta struct { | ||
DataDir string `json:"dataDir"` | ||
Id string `json:"id"` | ||
} | ||
|
||
type Validator struct { | ||
Name string `json:"name"` | ||
ConfigDir string `json:"configDir"` | ||
Index int `json:"index"` | ||
Mnemonic string `json:"mnemonic"` | ||
PublicAddress string `json:"publicAddress"` | ||
} | ||
|
||
type Chain struct { | ||
ChainMeta ChainMeta `json:"chainMeta"` | ||
Validators []*Validator `json:"validators"` | ||
} | ||
|
||
func (c *ChainMeta) configDir() string { | ||
return fmt.Sprintf("%s/%s", c.DataDir, c.Id) | ||
} |
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.