Skip to content

Commit bd306e8

Browse files
committed
Fix acc tests
1 parent 0fc76ed commit bd306e8

5 files changed

+7
-6
lines changed

internal/services/storagecache/managed_lustre_file_system_auto_export_job_resource.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func (r ManagedLustreFileSystemAutoExportJobResource) Arguments() map[string]*pl
6262
Required: true,
6363
ForceNew: true,
6464
MinItems: 1,
65+
MaxItems: 1,
6566
Elem: &pluginsdk.Schema{
6667
Type: pluginsdk.TypeString,
6768
ValidateFunc: validation.StringIsNotEmpty,

internal/services/storagecache/managed_lustre_file_system_auto_export_job_resource_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ resource "azurerm_managed_lustre_file_system_auto_export_job" "test" {
134134
managed_lustre_file_system_id = azurerm_managed_lustre_file_system.test.id
135135
location = azurerm_resource_group.test.location
136136
137-
auto_export_prefixes = ["/", "/export"]
137+
auto_export_prefixes = ["/export"]
138138
admin_status_enabled = false
139139
}
140140
`, ManagedLustreFileSystemResource{}.completeAutoJob(data), data.RandomInteger)

internal/services/storagecache/managed_lustre_file_system_resource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ func (r ManagedLustreFileSystemResource) CustomizeDiff() sdk.ResourceFunc {
316316

317317
func (r ManagedLustreFileSystemResource) Create() sdk.ResourceFunc {
318318
return sdk.ResourceFunc{
319-
Timeout: 30 * time.Minute,
319+
Timeout: 60 * time.Minute,
320320
Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error {
321321
var model ManagedLustreFileSystemModel
322322
if err := metadata.Decode(&model); err != nil {
@@ -475,7 +475,7 @@ func (r ManagedLustreFileSystemResource) Read() sdk.ResourceFunc {
475475

476476
func (r ManagedLustreFileSystemResource) Delete() sdk.ResourceFunc {
477477
return sdk.ResourceFunc{
478-
Timeout: 30 * time.Minute,
478+
Timeout: 60 * time.Minute,
479479
Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error {
480480
client := metadata.Client.StorageCache.AmlFilesystems
481481

website/docs/r/managed_lustre_file_system.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ In addition to the Arguments listed above - the following Attributes are exporte
141141

142142
The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/docs/configuration/resources.html#timeouts) for certain actions:
143143

144-
* `create` - (Defaults to 30 minutes) Used when creating the Azure Managed Lustre File System.
144+
* `create` - (Defaults to 1 hour) Used when creating the Azure Managed Lustre File System.
145145
* `read` - (Defaults to 5 minutes) Used when retrieving the Azure Managed Lustre File System.
146146
* `update` - (Defaults to 30 minutes) Used when updating the Azure Managed Lustre File System.
147-
* `delete` - (Defaults to 30 minutes) Used when deleting the Azure Managed Lustre File System.
147+
* `delete` - (Defaults to 1 hour) Used when deleting the Azure Managed Lustre File System.
148148

149149
## Import
150150

website/docs/r/managed_lustre_file_system_auto_export_job.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ The following arguments are supported:
174174

175175
* `location` - (Required) The Azure Region where the Azure Managed Lustre File System Auto Export Job should exist. Changing this forces a new resource to be created.
176176

177-
* `auto_export_prefixes` - (Required) A list of prefixes that get auto exported to the cluster namespace. Changing this forces a new resource to be created.
177+
* `auto_export_prefixes` - (Required) A list containing the prefix that gets auto exported to the cluster namespace. Currently only a single prefix is supported. Changing this forces a new resource to be created.
178178

179179
* `admin_status_enabled` - (Optional) Whether the administrative status of the Auto Export Job is enabled. Defaults to `true`.
180180

0 commit comments

Comments
 (0)