-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: cosmos & starknet LOOPP mode only (#16039)
* core: cosmos & starknet LOOPP mode only * Support GOFLAGS in remote plugin installations * Install remote plugins with make target * Use default GOFLAGS from makefile --------- Co-authored-by: chainchad <[email protected]>
- Loading branch information
Showing
55 changed files
with
652 additions
and
2,401 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
//go:build integration | ||
|
||
package cmd_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
"github.com/stretchr/testify/require" | ||
|
||
"github.com/smartcontractkit/chainlink/v2/core/cmd" | ||
"github.com/smartcontractkit/chainlink/v2/core/internal/cltest" | ||
"github.com/smartcontractkit/chainlink/v2/core/internal/testutils/cosmostest" | ||
"github.com/smartcontractkit/chainlink/v2/core/services/chainlink" | ||
) | ||
|
||
func TestShell_IndexCosmosChains(t *testing.T) { | ||
t.Parallel() | ||
|
||
chainID := cosmostest.RandomChainID() | ||
chain := chainlink.RawConfig{ | ||
"ChainID": chainID, | ||
"Nodes": []map[string]any{{ | ||
"Name": "primary", | ||
"TendermintURL": "http://tender.mint", | ||
}}, | ||
} | ||
app := cosmosStartNewApplication(t, chain) | ||
client, r := app.NewShellAndRenderer() | ||
|
||
require.NoError(t, cmd.NewChainClient(client, "cosmos").IndexChains(cltest.EmptyCLIContext())) | ||
chains := *r.Renders[0].(*cmd.ChainPresenters) | ||
require.Len(t, chains, 1) | ||
c := chains[0] | ||
assert.Equal(t, chainID, c.ID) | ||
assertTableRenders(t, r) | ||
} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.