MCPcopy
hub / github.com/tsuru/tsuru / TestServiceCreateNameExists

Method TestServiceCreateNameExists

api/service_test.go:226–234  ·  view source on GitHub ↗
(c *check.C)

Source from the content-addressed store, hash-verified

224}
225
226func (s *ProvisionSuite) TestServiceCreateNameExists(c *check.C) {
227 recorder, request := s.makeRequestToCreateHandler(c)
228 s.testServer.ServeHTTP(recorder, request)
229 c.Assert(recorder.Code, check.Equals, http.StatusCreated)
230 recorder, request = s.makeRequestToCreateHandler(c)
231 s.testServer.ServeHTTP(recorder, request)
232 c.Assert(recorder.Code, check.Equals, http.StatusConflict)
233 c.Assert(recorder.Body.String(), check.Equals, "Service already exists.\n")
234}
235
236func (s *ProvisionSuite) TestServiceCreateWithoutTeam(c *check.C) {
237 v := url.Values{}

Callers

nothing calls this directly

Calls 3

StringMethod · 0.65
ServeHTTPMethod · 0.45

Tested by

no test coverage detected