Example #1
0
// makeStorage creates a Manta storage object for the running test.
func (s *storageSuite) makeStorage(name string, c *gc.C) *jp.JoyentStorage {
	stor := joyent.MakeStorage(c, GetFakeConfig("test://test.api.joyentcloud.com", s.localMantaServer.Server.URL))
	return stor.(*jp.JoyentStorage)
}
Example #2
0
// makeStorage creates a Manta storage object for the running test.
func (s *storageSuite) makeStorage(name string, c *gc.C) *jp.JoyentStorage {
	stor := joyent.MakeStorage(c, GetFakeConfig("localhost", s.localMantaServer.Server.URL))
	return stor.(*jp.JoyentStorage)
}