7 "github.com/hashicorp/terraform/helper/schema"
8 "github.com/hashicorp/terraform/terraform"
11 var testAccProviders map[string]terraform.ResourceProvider
12 var testAccProvider *schema.Provider
15 testAccProvider = Provider().(*schema.Provider)
16 testAccProviders = map[string]terraform.ResourceProvider{
17 "mailgun": testAccProvider,
21 func TestProvider(t *testing.T) {
22 if err := Provider().(*schema.Provider).InternalValidate(); err != nil {
23 t.Fatalf("err: %s", err)
27 func TestProvider_impl(t *testing.T) {
28 var _ terraform.ResourceProvider = Provider()
31 func testAccPreCheck(t *testing.T) {
32 if v := os.Getenv("MAILGUN_DOMAIN"); v == "" {
33 t.Fatal("MAILGUN_DOMAIN must be set for acceptance tests")
35 if v := os.Getenv("MAILGUN_APIKEY"); v == "" {
36 t.Fatal("MAILGUN_APIKEY must be set for acceptance tests")