Skip to content

Commit 3f53b9a

Browse files
committed
Fix UT
1 parent feb1ca0 commit 3f53b9a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

pkg/deployment/deployment_encryption_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,11 @@ func TestEnsurePod_ArangoDB_Encryption(t *testing.T) {
302302
Command: BuildTestAgentArgs(t, firstAgentStatus.ID,
303303
AgentArgsWithTLS(firstAgentStatus.ID, false),
304304
ArgsWithAuth(false),
305-
ArgsWithEncryptionFolder()),
305+
ArgsWithEncryptionFolder(), func(t *testing.T) map[string]string {
306+
return map[string]string{
307+
"rocksdb.encryption-key-rotation": "true",
308+
}
309+
}),
306310
Ports: createTestPorts(),
307311
VolumeMounts: []core.VolumeMount{
308312
k8sutil.ArangodVolumeMount(),

pkg/deployment/resources/pod_creator.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ import (
2626
"crypto/sha1"
2727
"encoding/json"
2828
"fmt"
29-
"github.com/arangodb/kube-arangodb/pkg/deployment/features"
3029
"net"
3130
"net/url"
3231
"path/filepath"
3332
"strconv"
3433
"sync"
3534
"time"
3635

36+
"github.com/arangodb/kube-arangodb/pkg/deployment/features"
37+
3738
"github.com/arangodb/kube-arangodb/pkg/deployment/resources/inspector"
3839
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil/interfaces"
3940

0 commit comments

Comments
 (0)