-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testdata/scripts/nodes: add tests for cosmos, solana, starknet (#15365)
- Loading branch information
Showing
3 changed files
with
167 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# start node | ||
exec sh -c 'eval "echo \"$(cat config.toml.tmpl)\" > config.toml"' | ||
exec chainlink node -c config.toml start -p password -a creds & | ||
|
||
# initialize client | ||
env NODEURL=http://localhost:$PORT | ||
exec curl --retry 10 --retry-max-time 60 --retry-connrefused $NODEURL | ||
exec chainlink --remote-node-url $NODEURL admin login -file creds --bypass-version-check | ||
|
||
exec chainlink --remote-node-url $NODEURL nodes cosmos list | ||
cmp stdout out.txt | ||
|
||
-- testdb.txt -- | ||
CL_DATABASE_URL | ||
-- testport.txt -- | ||
PORT | ||
|
||
-- password -- | ||
T.tLHkcmwePT/p,]sYuntjwHKAsrhm#4eRs4LuKHwvHejWYAC2JP4M8HimwgmbaZ | ||
-- creds -- | ||
[email protected] | ||
fj293fbBnlQ!f9vNs | ||
|
||
-- config.toml.tmpl -- | ||
[Webserver] | ||
HTTPPort = $PORT | ||
|
||
[[Cosmos]] | ||
ChainID = '68472' | ||
|
||
[[Cosmos.Nodes]] | ||
Name = 'Blue' | ||
TendermintURL = 'wss://primaryfoo.bar' | ||
|
||
[[Cosmos.Nodes]] | ||
Name = 'Yellow' | ||
TendermintURL = 'wss://sendonlyfoo.bar' | ||
|
||
-- out.txt -- | ||
|
||
--------------------------------------- | ||
Name: Blue | ||
Chain ID: 68472 | ||
State: | ||
Config: Name = 'Blue' | ||
TendermintURL = 'wss://primaryfoo.bar' | ||
|
||
--------------------------------------- | ||
Name: Yellow | ||
Chain ID: 68472 | ||
State: | ||
Config: Name = 'Yellow' | ||
TendermintURL = 'wss://sendonlyfoo.bar' | ||
|
||
--------------------------------------- |
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,57 @@ | ||
# start node | ||
exec sh -c 'eval "echo \"$(cat config.toml.tmpl)\" > config.toml"' | ||
exec chainlink node -c config.toml start -p password -a creds & | ||
|
||
# initialize client | ||
env NODEURL=http://localhost:$PORT | ||
exec curl --retry 10 --retry-max-time 60 --retry-connrefused $NODEURL | ||
exec chainlink --remote-node-url $NODEURL admin login -file creds --bypass-version-check | ||
|
||
exec chainlink --remote-node-url $NODEURL nodes solana list | ||
cmp stdout out.txt | ||
|
||
-- testdb.txt -- | ||
CL_DATABASE_URL | ||
-- testport.txt -- | ||
PORT | ||
|
||
-- password -- | ||
T.tLHkcmwePT/p,]sYuntjwHKAsrhm#4eRs4LuKHwvHejWYAC2JP4M8HimwgmbaZ | ||
-- creds -- | ||
[email protected] | ||
fj293fbBnlQ!f9vNs | ||
|
||
-- config.toml.tmpl -- | ||
[Webserver] | ||
HTTPPort = $PORT | ||
|
||
[[Solana]] | ||
ChainID = '68472' | ||
|
||
[[Solana.Nodes]] | ||
Name = 'Blue' | ||
URL = 'wss://primaryfoo.bar' | ||
|
||
[[Solana.Nodes]] | ||
Name = 'Yellow' | ||
URL = 'wss://sendonlyfoo.bar' | ||
|
||
-- out.txt -- | ||
|
||
----------------------------- | ||
Name: Blue | ||
Chain ID: 68472 | ||
State: | ||
Config: Name = 'Blue' | ||
URL = 'wss://primaryfoo.bar' | ||
SendOnly = false | ||
|
||
----------------------------- | ||
Name: Yellow | ||
Chain ID: 68472 | ||
State: | ||
Config: Name = 'Yellow' | ||
URL = 'wss://sendonlyfoo.bar' | ||
SendOnly = false | ||
|
||
----------------------------- |
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,55 @@ | ||
# start node | ||
exec sh -c 'eval "echo \"$(cat config.toml.tmpl)\" > config.toml"' | ||
exec chainlink node -c config.toml start -p password -a creds & | ||
|
||
# initialize client | ||
env NODEURL=http://localhost:$PORT | ||
exec curl --retry 10 --retry-max-time 60 --retry-connrefused $NODEURL | ||
exec chainlink --remote-node-url $NODEURL admin login -file creds --bypass-version-check | ||
|
||
exec chainlink --remote-node-url $NODEURL nodes starknet list | ||
cmp stdout out.txt | ||
|
||
-- testdb.txt -- | ||
CL_DATABASE_URL | ||
-- testport.txt -- | ||
PORT | ||
|
||
-- password -- | ||
T.tLHkcmwePT/p,]sYuntjwHKAsrhm#4eRs4LuKHwvHejWYAC2JP4M8HimwgmbaZ | ||
-- creds -- | ||
[email protected] | ||
fj293fbBnlQ!f9vNs | ||
|
||
-- config.toml.tmpl -- | ||
[Webserver] | ||
HTTPPort = $PORT | ||
|
||
[[Starknet]] | ||
ChainID = '68472' | ||
|
||
[[Starknet.Nodes]] | ||
Name = 'Blue' | ||
URL = 'wss://primaryfoo.bar' | ||
|
||
[[Starknet.Nodes]] | ||
Name = 'Yellow' | ||
URL = 'wss://sendonlyfoo.bar' | ||
|
||
-- out.txt -- | ||
|
||
----------------------------- | ||
Name: Blue | ||
Chain ID: 68472 | ||
State: | ||
Config: Name = 'Blue' | ||
URL = 'wss://primaryfoo.bar' | ||
|
||
----------------------------- | ||
Name: Yellow | ||
Chain ID: 68472 | ||
State: | ||
Config: Name = 'Yellow' | ||
URL = 'wss://sendonlyfoo.bar' | ||
|
||
----------------------------- |