Skip to content

Commit

Permalink
apply PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
EspenAlbert committed Jul 15, 2024
1 parent afd1b19 commit 131f610
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -307,15 +309,15 @@ 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),
}),
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),
Expand Down

0 comments on commit 131f610

Please sign in to comment.