helper/resource: docs

This commit is contained in:
Mitchell Hashimoto 2015-04-20 14:08:28 -07:00
parent 21b0a03d70
commit dc69603cd4
1 changed files with 7 additions and 1 deletions

View File

@ -34,7 +34,13 @@ type TestCase struct {
// acceptance tests, such as verifying that keys are setup.
PreCheck func()
// Provider is the ResourceProvider that will be under test.
// Providers is the ResourceProvider that will be under test.
//
// Alternately, ProviderFactories can be specified for the providers
// that are valid. This takes priority over Providers.
//
// The end effect of each is the same: specifying the providers that
// are used within the tests.
Providers map[string]terraform.ResourceProvider
ProviderFactories map[string]terraform.ResourceProviderFactory