Skip to content

Commit fafed27

Browse files
committed
CSPL-4360 Fixing tests after merge
1 parent 30a82c6 commit fafed27

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

pkg/splunk/enterprise/indexercluster_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,6 +2111,8 @@ func TestGetChangedQueueFieldsForIndexer(t *testing.T) {
21112111
{fmt.Sprintf("remote_queue.%s.large_message_store.endpoint", provider), os.Spec.S3.Endpoint},
21122112
{fmt.Sprintf("remote_queue.%s.large_message_store.path", provider), os.Spec.S3.Path},
21132113
{fmt.Sprintf("remote_queue.%s.dead_letter_queue.name", provider), queue.Spec.SQS.DLQ},
2114+
{fmt.Sprintf("remote_queue.%s.max_count.max_retries_per_part", provider), "4"},
2115+
{fmt.Sprintf("remote_queue.%s.retry_policy", provider), "max_count"},
21142116
}, queueChangedFieldsInputs)
21152117

21162118
assert.Equal(t, 12, len(queueChangedFieldsOutputs))

pkg/splunk/enterprise/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,8 @@ func GetSmartstoreRemoteVolumeSecrets(ctx context.Context, volume enterpriseApi.
417417
return accessKey, secretKey, namespaceScopedSecret.ResourceVersion, nil
418418
}
419419

420-
// GetBusRemoteVolumeSecrets is used to retrieve access key and secrete key for Index & Ingestion separation
421-
func GetBusRemoteVolumeSecrets(ctx context.Context, volume enterpriseApi.VolumeSpec, client splcommon.ControllerClient, cr splcommon.MetaObject) (string, string, error) {
420+
// GetQueueRemoteVolumeSecrets is used to retrieve access key and secrete key for Index & Ingestion separation
421+
func GetQueueRemoteVolumeSecrets(ctx context.Context, volume enterpriseApi.VolumeSpec, client splcommon.ControllerClient, cr splcommon.MetaObject) (string, string, error) {
422422
namespaceScopedSecret, err := splutil.GetSecretByName(ctx, client, cr.GetNamespace(), cr.GetName(), volume.SecretRef)
423423
if err != nil {
424424
return "", "", err

pkg/splunk/enterprise/util_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2624,8 +2624,8 @@ func TestUpdateCRStatus(t *testing.T) {
26242624
WithStatusSubresource(&enterpriseApi.Standalone{}).
26252625
WithStatusSubresource(&enterpriseApi.MonitoringConsole{}).
26262626
WithStatusSubresource(&enterpriseApi.IndexerCluster{}).
2627-
WithStatusSubresource(&enterpriseApi.Bus{}).
2628-
WithStatusSubresource(&enterpriseApi.LargeMessageStore{}).
2627+
WithStatusSubresource(&enterpriseApi.Queue{}).
2628+
WithStatusSubresource(&enterpriseApi.ObjectStorage{}).
26292629
WithStatusSubresource(&enterpriseApi.IngestorCluster{}).
26302630
WithStatusSubresource(&enterpriseApi.SearchHeadCluster{})
26312631
c := builder.Build()
@@ -3307,8 +3307,8 @@ func TestGetCurrentImage(t *testing.T) {
33073307
WithStatusSubresource(&enterpriseApi.MonitoringConsole{}).
33083308
WithStatusSubresource(&enterpriseApi.IndexerCluster{}).
33093309
WithStatusSubresource(&enterpriseApi.SearchHeadCluster{}).
3310-
WithStatusSubresource(&enterpriseApi.Bus{}).
3311-
WithStatusSubresource(&enterpriseApi.LargeMessageStore{}).
3310+
WithStatusSubresource(&enterpriseApi.Queue{}).
3311+
WithStatusSubresource(&enterpriseApi.ObjectStorage{}).
33123312
WithStatusSubresource(&enterpriseApi.IngestorCluster{})
33133313
client := builder.Build()
33143314
client.Create(ctx, &current)

0 commit comments

Comments
 (0)