@@ -25,23 +25,25 @@ import (
2525 "github.com/hashicorp/terraform-plugin-testing/helper/resource"
2626)
2727
28- // func TestAccCloudStackStoragePool_basic(t *testing.T) {
29- // resource.Test(t, resource.TestCase{
30- // PreCheck: func() { testAccPreCheck(t) },
31- // Providers: testAccProviders,
32- // Steps: []resource.TestStep{
33- // {
34- // Config: testAccCloudStackStoragePoolConfig_basic,
35- // },
36- // {
37- // Config: testAccCloudStackStoragePoolConfig_update,
38- // Check: resource.ComposeTestCheckFunc(
39- // resource.TestCheckResourceAttr("cloudstack_storage_pool.test", "name", "accprimarystorage1"),
40- // ),
41- // },
42- // },
43- // })
44- // }
28+ // Simulator does not support storage pool creation
29+ // Error: CloudStack API error 530 (CSExceptionErrorCode: 9999): Failed to add data store: No host up to associate a storage pool with in cluster 1
30+ func TestAccCloudStackStoragePool_basic (t * testing.T ) {
31+ resource .Test (t , resource.TestCase {
32+ PreCheck : func () { testAccPreCheck (t ) },
33+ Providers : testAccProviders ,
34+ Steps : []resource.TestStep {
35+ // {
36+ // Config: testAccCloudStackStoragePoolConfig_basic,
37+ // },
38+ // {
39+ // Config: testAccCloudStackStoragePoolConfig_update,
40+ // Check: resource.ComposeTestCheckFunc(
41+ // resource.TestCheckResourceAttr("cloudstack_storage_pool.test", "name", "accprimarystorage1"),
42+ // ),
43+ // },
44+ },
45+ })
46+ }
4547
4648const testAccCloudStackStoragePoolConfig_basic = `
4749resource "cloudstack_zone" "test" {
0 commit comments