Skip to content

Commit 3e877e2

Browse files
committed
update tests
1 parent 7e688e6 commit 3e877e2

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

cloudstack/resource_cloudstack_storage_pool_test.go

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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

4648
const testAccCloudStackStoragePoolConfig_basic = `
4749
resource "cloudstack_zone" "test" {

0 commit comments

Comments
 (0)