-
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.
[CAPPL-303] Add commands to deploy the workflow registry
- Loading branch information
1 parent
b76f9b3
commit c7c2e89
Showing
20 changed files
with
799 additions
and
81 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
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,34 @@ | ||
package test | ||
|
||
import ( | ||
"fmt" | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
|
||
"github.com/smartcontractkit/chainlink-common/pkg/utils/tests" | ||
"github.com/smartcontractkit/chainlink-protos/job-distributor/v1/node" | ||
) | ||
|
||
func TestSetupTestEnv(t *testing.T) { | ||
t.Parallel() | ||
ctx := tests.Context(t) | ||
for _, useMCMS := range []bool{true, false} { | ||
te := SetupTestEnv(t, TestConfig{ | ||
WFDonConfig: DonConfig{N: 4}, | ||
AssetDonConfig: DonConfig{N: 4}, | ||
WriterDonConfig: DonConfig{N: 4}, | ||
NumChains: 3, | ||
UseMCMS: useMCMS, | ||
}) | ||
t.Run(fmt.Sprintf("set up test env using MCMS: %t", useMCMS), func(t *testing.T) { | ||
require.NotNil(t, te.Env.ExistingAddresses) | ||
require.Len(t, te.Env.Chains, 3) | ||
require.NotEmpty(t, te.RegistrySelector) | ||
require.NotNil(t, te.Env.Offchain) | ||
r, err := te.Env.Offchain.ListNodes(ctx, &node.ListNodesRequest{}) | ||
require.NoError(t, err) | ||
require.Len(t, r.Nodes, 12) | ||
}) | ||
} | ||
} |
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.