github.com/mohanarpit/terraform@v0.6.16-0.20160909104007-291f29853544/builtin/providers/influxdb/provider_test.go (about)

     1  package influxdb
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/hashicorp/terraform/helper/schema"
     7  	"github.com/hashicorp/terraform/terraform"
     8  )
     9  
    10  // To run these acceptance tests, you will need an InfluxDB server.
    11  // If you download an InfluxDB distribution and run it with its default
    12  // settings, on the same host where the tests are being run, then these tests
    13  // should work with no further configuration.
    14  //
    15  // To run the tests against a remote InfluxDB server, set the INFLUXDB_URL,
    16  // INFLUXDB_USERNAME and INFLUXDB_PASSWORD environment variables.
    17  
    18  var testAccProviders map[string]terraform.ResourceProvider
    19  var testAccProvider *schema.Provider
    20  
    21  func init() {
    22  	testAccProvider = Provider().(*schema.Provider)
    23  	testAccProviders = map[string]terraform.ResourceProvider{
    24  		"influxdb": testAccProvider,
    25  	}
    26  }
    27  
    28  func TestProvider(t *testing.T) {
    29  	if err := Provider().(*schema.Provider).InternalValidate(); err != nil {
    30  		t.Fatalf("err: %s", err)
    31  	}
    32  }
    33  
    34  func TestProvider_impl(t *testing.T) {
    35  	var _ terraform.ResourceProvider = Provider()
    36  }