Skip to content

Commit

Permalink
VRF-817: run all VRF V2 tests in CI (#11620)
Browse files Browse the repository at this point in the history
  • Loading branch information
iljapavlovs authored Dec 19, 2023
1 parent b9b4068 commit bf31131
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,6 @@ jobs:
pyroscope_env: ci-smoke-vrf-evm-simulated
- name: vrfv2
nodes: 1
run: -run TestVRFv2MultipleSendingKeys
file: vrfv2
os: ubuntu-latest
pyroscope_env: ci-smoke-vrf2-evm-simulated
- name: vrfv2plus
Expand Down
7 changes: 5 additions & 2 deletions integration-tests/smoke/vrfv2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,13 +358,16 @@ func TestVRFv2MultipleSendingKeys(t *testing.T) {
t.Parallel()
l := logging.GetTestLogger(t)

network, err := actions.EthereumNetworkConfigFromEnvOrDefault(l)
require.NoError(t, err, "Error building ethereum network config")

var vrfv2Config vrfv2_config.VRFV2Config
err := envconfig.Process("VRFV2", &vrfv2Config)
err = envconfig.Process("VRFV2", &vrfv2Config)
require.NoError(t, err)

env, err := test_env.NewCLTestEnvBuilder().
WithTestInstance(t).
WithGeth().
WithPrivateEthereumNetwork(network).
WithCLNodes(1).
WithFunding(big.NewFloat(vrfv2Config.ChainlinkNodeFunding)).
WithStandardCleanup().
Expand Down
15 changes: 11 additions & 4 deletions integration-tests/smoke/vrfv2plus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,13 +611,16 @@ func TestVRFv2PlusMultipleSendingKeys(t *testing.T) {
t.Parallel()
l := logging.GetTestLogger(t)

network, err := actions.EthereumNetworkConfigFromEnvOrDefault(l)
require.NoError(t, err, "Error building ethereum network config")

var vrfv2PlusConfig vrfv2plus_config.VRFV2PlusConfig
err := envconfig.Process("VRFV2PLUS", &vrfv2PlusConfig)
err = envconfig.Process("VRFV2PLUS", &vrfv2PlusConfig)
require.NoError(t, err)

env, err := test_env.NewCLTestEnvBuilder().
WithTestInstance(t).
WithGeth().
WithPrivateEthereumNetwork(network).
WithCLNodes(1).
WithFunding(big.NewFloat(vrfv2PlusConfig.ChainlinkNodeFunding)).
WithStandardCleanup().
Expand Down Expand Up @@ -702,13 +705,17 @@ func TestVRFv2PlusMultipleSendingKeys(t *testing.T) {
func TestVRFv2PlusMigration(t *testing.T) {
t.Parallel()
l := logging.GetTestLogger(t)

network, err := actions.EthereumNetworkConfigFromEnvOrDefault(l)
require.NoError(t, err, "Error building ethereum network config")

var vrfv2PlusConfig vrfv2plus_config.VRFV2PlusConfig
err := envconfig.Process("VRFV2PLUS", &vrfv2PlusConfig)
err = envconfig.Process("VRFV2PLUS", &vrfv2PlusConfig)
require.NoError(t, err)

env, err := test_env.NewCLTestEnvBuilder().
WithTestInstance(t).
WithGeth().
WithPrivateEthereumNetwork(network).
WithCLNodes(1).
WithFunding(big.NewFloat(vrfv2PlusConfig.ChainlinkNodeFunding)).
WithStandardCleanup().
Expand Down

0 comments on commit bf31131

Please sign in to comment.