Skip to content

Commit

Permalink
register skeleton provider
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTheElder committed Oct 20, 2018
1 parent 82cba09 commit 3787a4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/framework/provider.go
Expand Up @@ -43,10 +43,13 @@ func RegisterProvider(name string, factory Factory) {
}

func init() {
// "local" can always be used.
// "local" or "skeleton" can always be used.
RegisterProvider("local", func() (ProviderInterface, error) {
return NullProvider{}, nil
})
RegisterProvider("skeleton", func() (ProviderInterface, error) {
return NullProvider{}, nil
})
// The empty string also works, but triggers a warning.
RegisterProvider("", func() (ProviderInterface, error) {
Logf("The --provider flag is not set. Treating as a conformance test. Some tests may not be run.")
Expand Down

0 comments on commit 3787a4b

Please sign in to comment.