* feat: initialize Terraform Plugin Framework * fix docker-compose path for tests * fix: ensure documentation can be generated with old provider SDK and new plugin framework * lint
37 lines
752 B
Go
37 lines
752 B
Go
package v1
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
|
|
)
|
|
|
|
func TestAccDynamicDNS_dyndns(t *testing.T) {
|
|
resource.ParallelTest(t, resource.TestCase{
|
|
PreCheck: func() { preCheck(t) },
|
|
ProviderFactories: providerFactories,
|
|
// TODO: CheckDestroy: ,
|
|
Steps: []resource.TestStep{
|
|
{
|
|
Config: testAccDynamicDNSConfig,
|
|
// Check: resource.ComposeTestCheckFunc(
|
|
// // testCheckFirewallGroupExists(t, "name"),
|
|
// ),
|
|
},
|
|
importStep("unifi_dynamic_dns.test"),
|
|
},
|
|
})
|
|
}
|
|
|
|
const testAccDynamicDNSConfig = `
|
|
resource "unifi_dynamic_dns" "test" {
|
|
service = "dyndns"
|
|
|
|
host_name = "test.example.com"
|
|
|
|
server = "dyndns.example.com"
|
|
login = "testuser"
|
|
password = "password"
|
|
}
|
|
`
|