mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-30 18:42:58 +00:00
Improved test case
This commit is contained in:
parent
091f162fae
commit
cc49bb80d7
@ -29,6 +29,12 @@ func TestProviderSchema(t *testing.T) {
|
||||
mkProviderVirtualEnvironment,
|
||||
})
|
||||
|
||||
testSchemaValueTypes(t, s, []string{
|
||||
mkProviderVirtualEnvironment,
|
||||
}, []schema.ValueType{
|
||||
schema.TypeList,
|
||||
})
|
||||
|
||||
veSchema := testNestedSchemaExistence(t, s, mkProviderVirtualEnvironment)
|
||||
|
||||
testRequiredArguments(t, veSchema, []string{
|
||||
@ -40,4 +46,16 @@ func TestProviderSchema(t *testing.T) {
|
||||
testOptionalArguments(t, veSchema, []string{
|
||||
mkProviderVirtualEnvironmentInsecure,
|
||||
})
|
||||
|
||||
testSchemaValueTypes(t, veSchema, []string{
|
||||
mkProviderVirtualEnvironmentEndpoint,
|
||||
mkProviderVirtualEnvironmentInsecure,
|
||||
mkProviderVirtualEnvironmentPassword,
|
||||
mkProviderVirtualEnvironmentUsername,
|
||||
}, []schema.ValueType{
|
||||
schema.TypeString,
|
||||
schema.TypeBool,
|
||||
schema.TypeString,
|
||||
schema.TypeString,
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user