Skip to content

Commit

Permalink
test: Fix network issues test
Browse files Browse the repository at this point in the history
  • Loading branch information
jachym-tousek-keboola committed Jan 8, 2025
1 parent 50d5686 commit 5615523
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/stream/bridge/keboola/keboola_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,15 @@ func TestNetworkIssuesKeboolaBridgeWorkflow(t *testing.T) { // nolint: parallelt
ctx, cancel := context.WithTimeout(context.Background(), 300*time.Second)
defer cancel()

secretKey := make([]byte, 32)
_, err := rand.Read(secretKey)
require.NoError(t, err)

// Update configuration to make the cluster testable
configFn := func(cfg *config.Config) {
// Setup encryption
cfg.Encryption.Provider = encryption.ProviderNative
cfg.Encryption.Native.SecretKey = secretKey
// Enable metadata cleanup for removing storage jobs
cfg.Storage.MetadataCleanup.Enabled = true
// Disable unrelated workers
Expand Down

0 comments on commit 5615523

Please sign in to comment.