github.com/cloud-green/juju@v0.0.0-20151002100041-a00291338d3d/provider/local/init_test.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package local_test
     5  
     6  import (
     7  	jc "github.com/juju/testing/checkers"
     8  	gc "gopkg.in/check.v1"
     9  
    10  	"github.com/juju/juju/storage"
    11  	"github.com/juju/juju/storage/provider"
    12  	"github.com/juju/juju/storage/provider/registry"
    13  	"github.com/juju/juju/testing"
    14  )
    15  
    16  type providerSuite struct {
    17  	testing.BaseSuite
    18  }
    19  
    20  var _ = gc.Suite(&providerSuite{})
    21  
    22  func (*providerSuite) TestSupportedProviders(c *gc.C) {
    23  	supported := []storage.ProviderType{provider.HostLoopProviderType}
    24  	for _, providerType := range supported {
    25  		ok := registry.IsProviderSupported("local", providerType)
    26  		c.Assert(ok, jc.IsTrue)
    27  	}
    28  }