Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TT-757] enable log stream in test env builder by default #11706

Merged
merged 2 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions integration-tests/docker/test_env/test_env_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ type CLTestEnvBuilder struct {

func NewCLTestEnvBuilder() *CLTestEnvBuilder {
return &CLTestEnvBuilder{
l: log.Logger,
l: log.Logger,
hasLogStream: true,
}
}

Expand Down Expand Up @@ -101,8 +102,9 @@ func (b *CLTestEnvBuilder) WithTestInstance(t *testing.T) *CLTestEnvBuilder {
return b
}

func (b *CLTestEnvBuilder) WithLogStream() *CLTestEnvBuilder {
b.hasLogStream = true
// WithoutLogStream disables LogStream logging component
func (b *CLTestEnvBuilder) WithoutLogStream() *CLTestEnvBuilder {
b.hasLogStream = false
return b
}

Expand Down
1 change: 0 additions & 1 deletion integration-tests/load/vrfv2/vrfv2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ func TestVRFV2Performance(t *testing.T) {
l.Error().Err(err).Msg("Error cleaning up test environment")
}
}).
WithLogStream().
Build()

require.NoError(t, err, "error creating test env")
Expand Down
1 change: 0 additions & 1 deletion integration-tests/load/vrfv2plus/vrfv2plus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ func TestVRFV2PlusPerformance(t *testing.T) {
l.Error().Err(err).Msg("Error cleaning up test environment")
}
}).
WithLogStream().
Build()

require.NoError(t, err, "error creating test env")
Expand Down
1 change: 0 additions & 1 deletion integration-tests/smoke/automation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,6 @@ func setupAutomationTestDocker(
WithMockAdapter().
WithFunding(big.NewFloat(testConfig.ChainlinkNodeFunding)).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err, "Error deploying test environment for Mercury")
env.ParallelTransactions(true)
Expand Down
2 changes: 0 additions & 2 deletions integration-tests/smoke/cron_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func TestCronBasic(t *testing.T) {
WithMockAdapter().
WithCLNodes(1).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err)

Expand Down Expand Up @@ -72,7 +71,6 @@ func TestCronJobReplacement(t *testing.T) {
WithMockAdapter().
WithCLNodes(1).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err)

Expand Down
1 change: 0 additions & 1 deletion integration-tests/smoke/flux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ func TestFluxBasic(t *testing.T) {
WithMockAdapter().
WithCLNodes(3).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err)

Expand Down
1 change: 0 additions & 1 deletion integration-tests/smoke/forwarder_ocr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ func TestForwarderOCRBasic(t *testing.T) {
WithCLNodes(6).
WithFunding(big.NewFloat(.1)).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err)

Expand Down
1 change: 0 additions & 1 deletion integration-tests/smoke/forwarders_ocr2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ func TestForwarderOCR2Basic(t *testing.T) {
WithCLNodes(6).
WithFunding(big.NewFloat(.1)).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err)

Expand Down
1 change: 0 additions & 1 deletion integration-tests/smoke/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,6 @@ func setupKeeperTest(t *testing.T) (
WithCLNodeConfig(clNodeConfig).
WithFunding(big.NewFloat(.5)).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err, "Error deploying test environment")

Expand Down
3 changes: 0 additions & 3 deletions integration-tests/smoke/ocr2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ func TestOCRv2Basic(t *testing.T) {
WithCLNodes(6).
WithFunding(big.NewFloat(.1)).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err)

Expand Down Expand Up @@ -134,7 +133,6 @@ func TestOCRv2Request(t *testing.T) {
WithCLNodes(6).
WithFunding(big.NewFloat(.1)).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err)

Expand Down Expand Up @@ -210,7 +208,6 @@ func TestOCRv2JobReplacement(t *testing.T) {
WithCLNodes(6).
WithFunding(big.NewFloat(.1)).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err)

Expand Down
1 change: 0 additions & 1 deletion integration-tests/smoke/ocr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ func TestOCRBasic(t *testing.T) {
WithCLNodes(6).
WithFunding(big.NewFloat(.5)).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err)

Expand Down
1 change: 0 additions & 1 deletion integration-tests/smoke/runlog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func TestRunLogBasic(t *testing.T) {
WithCLNodes(1).
WithFunding(big.NewFloat(.1)).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err)

Expand Down
2 changes: 0 additions & 2 deletions integration-tests/smoke/vrf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func TestVRFBasic(t *testing.T) {
WithCLNodes(1).
WithFunding(big.NewFloat(.1)).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err)
env.ParallelTransactions(true)
Expand Down Expand Up @@ -119,7 +118,6 @@ func TestVRFJobReplacement(t *testing.T) {
WithCLNodes(1).
WithFunding(big.NewFloat(.1)).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err)
env.ParallelTransactions(true)
Expand Down
2 changes: 0 additions & 2 deletions integration-tests/smoke/vrfv2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ func TestVRFv2Basic(t *testing.T) {
WithCLNodes(1).
WithFunding(big.NewFloat(vrfv2Config.ChainlinkNodeFunding)).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err, "error creating test env")

Expand Down Expand Up @@ -371,7 +370,6 @@ func TestVRFv2MultipleSendingKeys(t *testing.T) {
WithCLNodes(1).
WithFunding(big.NewFloat(vrfv2Config.ChainlinkNodeFunding)).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err, "error creating test env")

Expand Down
3 changes: 0 additions & 3 deletions integration-tests/smoke/vrfv2plus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ func TestVRFv2Plus(t *testing.T) {
WithCLNodes(1).
WithFunding(big.NewFloat(vrfv2PlusConfig.ChainlinkNodeFunding)).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err, "error creating test env")

Expand Down Expand Up @@ -622,7 +621,6 @@ func TestVRFv2PlusMultipleSendingKeys(t *testing.T) {
WithCLNodes(1).
WithFunding(big.NewFloat(vrfv2PlusConfig.ChainlinkNodeFunding)).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err, "error creating test env")

Expand Down Expand Up @@ -713,7 +711,6 @@ func TestVRFv2PlusMigration(t *testing.T) {
WithCLNodes(1).
WithFunding(big.NewFloat(vrfv2PlusConfig.ChainlinkNodeFunding)).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err, "error creating test env")
env.ParallelTransactions(true)
Expand Down
1 change: 0 additions & 1 deletion integration-tests/universal/log_poller/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,6 @@ func setupLogPollerTestDocker(
WithChainOptions(logPolllerSettingsFn).
EVMClientNetworkOptions(evmClientSettingsFn).
WithStandardCleanup().
WithLogStream().
Build()
require.NoError(t, err, "Error deploying test environment")

Expand Down
Loading