From 131f610b208eb0f28c1fea3a904a03bcb2a744c7 Mon Sep 17 00:00:00 2001 From: EspenAlbert Date: Mon, 15 Jul 2024 09:40:57 +0100 Subject: [PATCH] apply PR suggestions --- .../resource_cloud_backup_schedule_test.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/internal/service/cloudbackupschedule/resource_cloud_backup_schedule_test.go b/internal/service/cloudbackupschedule/resource_cloud_backup_schedule_test.go index e39f30c36e..66f13b6235 100644 --- a/internal/service/cloudbackupschedule/resource_cloud_backup_schedule_test.go +++ b/internal/service/cloudbackupschedule/resource_cloud_backup_schedule_test.go @@ -259,9 +259,11 @@ func TestAccBackupRSCloudBackupSchedule_copySettings(t *testing.T) { }, PitEnabled: true, // you cannot copy oplogs when pit is not enabled }) - clusterName = clusterInfo.ClusterName - projectID = clusterInfo.ProjectID - checkMap = map[string]string{ + clusterName = clusterInfo.ClusterName + terraformStr = clusterInfo.ClusterTerraformStr + clusterResourceName = clusterInfo.ClusterResourceName + projectID = clusterInfo.ProjectID + checkMap = map[string]string{ "cluster_name": clusterName, "reference_hour_of_day": "3", "reference_minute_of_hour": "45", @@ -307,7 +309,7 @@ func TestAccBackupRSCloudBackupSchedule_copySettings(t *testing.T) { CheckDestroy: checkDestroy, Steps: []resource.TestStep{ { - Config: configCopySettings(clusterInfo.ClusterTerraformStr, projectID, clusterInfo.ClusterResourceName, false, &admin.DiskBackupSnapshotSchedule{ + Config: configCopySettings(terraformStr, projectID, clusterResourceName, false, &admin.DiskBackupSnapshotSchedule{ ReferenceHourOfDay: conversion.Pointer(3), ReferenceMinuteOfHour: conversion.Pointer(45), RestoreWindowDays: conversion.Pointer(1), @@ -315,7 +317,7 @@ func TestAccBackupRSCloudBackupSchedule_copySettings(t *testing.T) { Check: resource.ComposeAggregateTestCheckFunc(checksCreate...), }, { - Config: configCopySettings(clusterInfo.ClusterTerraformStr, projectID, clusterInfo.ClusterResourceName, true, &admin.DiskBackupSnapshotSchedule{ + Config: configCopySettings(terraformStr, projectID, clusterResourceName, true, &admin.DiskBackupSnapshotSchedule{ ReferenceHourOfDay: conversion.Pointer(3), ReferenceMinuteOfHour: conversion.Pointer(45), RestoreWindowDays: conversion.Pointer(1),