Пример #1
0
func (s *httpSuite) setError(c *gc.C, msg string, status int) {
	s.APIHTTPClientSuite.SetError(c, msg, status)
	backups.SetHTTP(s.client, &s.FakeClient)
}
Пример #2
0
func (s *httpSuite) setResponse(c *gc.C, status int, data []byte, ctype string) {
	s.APIHTTPClientSuite.SetResponse(c, status, data, ctype)
	backups.SetHTTP(s.client, &s.FakeClient)
}
Пример #3
0
func (s *httpSuite) setJSONSuccess(c *gc.C, result interface{}) {
	s.APIHTTPClientSuite.SetJSONSuccess(c, result)
	backups.SetHTTP(s.client, &s.FakeClient)
}