Onboard Load Balancer (part 3: add remaining CRUD login and datasource) (#116)

* Finish implementation for CRUD functionality

* Register resource in the provider

* Adjustments to resource

* Implement data source

* Unregister resource and data source from provider

* Fix external_address schema field

* Remove oneOf validators from datasource
This commit is contained in:
João Palet 2023-10-31 12:52:18 +01:00 committed by GitHub
parent 245e10a8e8
commit b804dc789e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 468 additions and 52 deletions

View file

@ -62,7 +62,7 @@ func TestToCreatePayload(t *testing.T) {
Options: types.ObjectValueMust(
optionsTypes,
map[string]attr.Value{
"acl": types.ListValueMust(
"acl": types.SetValueMust(
types.StringType,
[]attr.Value{types.StringValue("cidr")}),
"private_network_only": types.BoolValue(true),
@ -351,9 +351,8 @@ func TestMapFields(t *testing.T) {
Options: types.ObjectValueMust(
optionsTypes,
map[string]attr.Value{
"acl": types.ListValueMust(
"acl": types.SetValueMust(
types.StringType,
[]attr.Value{types.StringValue("cidr")}),
"private_network_only": types.BoolValue(true),
},