Skip to content

Commit

Permalink
resource/alicloud_mongodb_instance: Fixed the read error in field rep…
Browse files Browse the repository at this point in the history
…lica_sets
  • Loading branch information
MrWolong committed Jan 13, 2025
1 parent 4712c1e commit 1903978
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion alicloud/resource_alicloud_mongodb_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func resourceAliCloudMongoDBInstance() *schema.Resource {
Computed: true,
},
"replica_sets": {
Type: schema.TypeSet,
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
Expand Down
11 changes: 5 additions & 6 deletions alicloud/resource_alicloud_mongodb_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,7 @@ func TestAccAliCloudMongoDBInstance_basic0(t *testing.T) {
ResourceName: resourceId,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"account_password", "kms_encrypted_password", "kms_encryption_context", "auto_renew", "ssl_action", "effective_time", "order_type", "parameters", "replica_sets"},
},
ImportStateVerifyIgnore: []string{"account_password", "kms_encrypted_password", "kms_encryption_context", "auto_renew", "ssl_action", "effective_time", "order_type", "parameters"}},
},
})
}
Expand Down Expand Up @@ -693,8 +692,7 @@ func TestAccAliCloudMongoDBInstance_basic1(t *testing.T) {
ResourceName: resourceId,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"account_password", "kms_encrypted_password", "kms_encryption_context", "auto_renew", "ssl_action", "effective_time", "order_type", "parameters", "replica_sets"},
},
ImportStateVerifyIgnore: []string{"account_password", "kms_encrypted_password", "kms_encryption_context", "auto_renew", "ssl_action", "effective_time", "order_type", "parameters"}},
},
})
}
Expand Down Expand Up @@ -813,8 +811,7 @@ func TestAccAliCloudMongoDBInstance_basic1_twin(t *testing.T) {
ResourceName: resourceId,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"account_password", "kms_encrypted_password", "kms_encryption_context", "auto_renew", "ssl_action", "effective_time", "order_type", "parameters", "replica_sets"},
},
ImportStateVerifyIgnore: []string{"account_password", "kms_encrypted_password", "kms_encryption_context", "auto_renew", "ssl_action", "effective_time", "order_type", "parameters"}},
},
})
}
Expand All @@ -834,6 +831,7 @@ var AliCloudMongoDBInstanceMap0 = map[string]string{
"retention_period": CHECKSET,
"replica_set_name": CHECKSET,
"ssl_status": CHECKSET,
"replica_sets.#": CHECKSET,
}

var AliCloudMongoDBInstanceMap1 = map[string]string{
Expand All @@ -855,6 +853,7 @@ var AliCloudMongoDBInstanceMap1 = map[string]string{
"retention_period": CHECKSET,
"replica_set_name": CHECKSET,
"ssl_status": CHECKSET,
"replica_sets.#": CHECKSET,
}

func AliCloudMongoDBInstanceBasicDependence0(name string) string {
Expand Down

0 comments on commit 1903978

Please sign in to comment.