github.com/mhilton/juju-juju@v0.0.0-20150901100907-a94dd2c73455/provider/manual/suite_test.go (about)

     1  // Copyright 2013 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package manual_test
     5  
     6  import (
     7  	"runtime"
     8  	"testing"
     9  
    10  	gc "gopkg.in/check.v1"
    11  
    12  	"github.com/juju/juju/environs/storage"
    13  	"github.com/juju/juju/provider/manual"
    14  )
    15  
    16  func Test(t *testing.T) {
    17  	//TODO(bogdanteleaga): Fix this once manual provider is supported on
    18  	//windows
    19  	if runtime.GOOS == "windows" {
    20  		t.Skip("Manual provider is not yet supported on windows")
    21  	}
    22  	// Prevent any use of ssh for storage.
    23  	*manual.NewSSHStorage = func(sshHost, storageDir, storageTmpdir string) (storage.Storage, error) {
    24  		return nil, nil
    25  	}
    26  	gc.TestingT(t)
    27  }