Skip to content

Commit 80322d8

Browse files
committed
added more to ImportStateVerifyIgnore
1 parent e2f495d commit 80322d8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

mmv1/products/memorystore/Instance.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ properties:
178178
- name: 'fixedFrequencySchedule'
179179
type: NestedObject
180180
description: "Optional. Trigger automated backups at a fixed frequency."
181+
required: true
181182
properties:
182183
- name: 'startTime'
183184
type: NestedObject
@@ -197,6 +198,7 @@ properties:
197198
Optional. How long to keep automated backups before the backups are deleted.
198199
The value should be between 1 day and 365 days. If not specified, the default value is 35 days.
199200
A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
201+
required: true
200202
default_value: "3024000s"
201203
- name: 'uid'
202204
type: String

mmv1/third_party/terraform/services/memorystore/resource_memorystore_instance_test.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,15 @@ func TestAccMemorystoreInstance_automatedBackupConfig(t *testing.T) {
6565
ResourceName: "google_memorystore_instance.test_abc",
6666
ImportState: true,
6767
ImportStateVerify: true,
68-
ImportStateVerifyIgnore: []string{"automated_backup_config.0.fixed_frequency_schedule", "automated_backup_config.0.fixed_frequency_schedule.0.start_time", "utomated_backup_config.0.fixed_frequency_schedule.0.start_time.0.hours", "automated_backup_config.0.retention"},
68+
ImportStateVerifyIgnore: []string{"automated_backup_config", "automated_backup_config.0", "automated_backup_config.0.fixed_frequency_schedule", "automated_backup_config.0.fixed_frequency_schedule.0.start_time", "utomated_backup_config.0.fixed_frequency_schedule.0.start_time.0.hours", "automated_backup_config.0.retention"},
6969
},
7070
{
7171
Config: testAccMemorystoreInstance_automatedBackupConfigWithout(context),
7272
},
7373
{
74-
ResourceName: "google_memorystore_instance.test_abc",
75-
ImportState: true,
76-
ImportStateVerify: true,
77-
ImportStateVerifyIgnore: []string{"automated_backup_config.0.fixed_frequency_schedule", "automated_backup_config.0.fixed_frequency_schedule.0.start_time", "utomated_backup_config.0.fixed_frequency_schedule.0.start_time.0.hours", "automated_backup_config.0.retention"},
74+
ResourceName: "google_memorystore_instance.test_abc",
75+
ImportState: true,
76+
ImportStateVerify: true,
7877
},
7978
},
8079
})

0 commit comments

Comments
 (0)