mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-01 02:52: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,
|
mkProviderVirtualEnvironment,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
testSchemaValueTypes(t, s, []string{
|
||||||
|
mkProviderVirtualEnvironment,
|
||||||
|
}, []schema.ValueType{
|
||||||
|
schema.TypeList,
|
||||||
|
})
|
||||||
|
|
||||||
veSchema := testNestedSchemaExistence(t, s, mkProviderVirtualEnvironment)
|
veSchema := testNestedSchemaExistence(t, s, mkProviderVirtualEnvironment)
|
||||||
|
|
||||||
testRequiredArguments(t, veSchema, []string{
|
testRequiredArguments(t, veSchema, []string{
|
||||||
@ -40,4 +46,16 @@ func TestProviderSchema(t *testing.T) {
|
|||||||
testOptionalArguments(t, veSchema, []string{
|
testOptionalArguments(t, veSchema, []string{
|
||||||
mkProviderVirtualEnvironmentInsecure,
|
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