mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-01 11:02:59 +00:00
36 lines
1.0 KiB
Go
36 lines
1.0 KiB
Go
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
package proxmoxtf
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/hashicorp/terraform/helper/schema"
|
|
)
|
|
|
|
// TestDataSourceVirtualEnvironmentPoolsInstantiation tests whether the DataSourceVirtualEnvironmentPools instance can be instantiated.
|
|
func TestDataSourceVirtualEnvironmentPoolsInstantiation(t *testing.T) {
|
|
s := dataSourceVirtualEnvironmentPools()
|
|
|
|
if s == nil {
|
|
t.Fatalf("Cannot instantiate dataSourceVirtualEnvironmentPools")
|
|
}
|
|
}
|
|
|
|
// TestDataSourceVirtualEnvironmentPoolsSchema tests the dataSourceVirtualEnvironmentPools schema.
|
|
func TestDataSourceVirtualEnvironmentPoolsSchema(t *testing.T) {
|
|
s := dataSourceVirtualEnvironmentPools()
|
|
|
|
testComputedAttributes(t, s, []string{
|
|
mkDataSourceVirtualEnvironmentPoolsPoolIDs,
|
|
})
|
|
|
|
testSchemaValueTypes(t, s, []string{
|
|
mkDataSourceVirtualEnvironmentPoolsPoolIDs,
|
|
}, []schema.ValueType{
|
|
schema.TypeList,
|
|
})
|
|
}
|