From 5f6d50bff1b4098bc0ef3c120e7b12104e5c4894 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 31 Mar 2017 09:56:20 -0400 Subject: Use 201 status code where appropriate for APIv4 (#5903) --- api4/team_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api4/team_test.go') diff --git a/api4/team_test.go b/api4/team_test.go index 40f5ec778..a38acf2e6 100644 --- a/api4/team_test.go +++ b/api4/team_test.go @@ -22,6 +22,7 @@ func TestCreateTeam(t *testing.T) { team := &model.Team{Name: GenerateTestUsername(), DisplayName: "Some Team", Type: model.TEAM_OPEN} rteam, resp := Client.CreateTeam(team) CheckNoError(t, resp) + CheckCreatedStatus(t, resp) if rteam.Name != team.Name { t.Fatal("names did not match") @@ -635,6 +636,7 @@ func TestAddTeamMember(t *testing.T) { th.LoginBasic() tm, resp = Client.AddTeamMember(team.Id, otherUser.Id, "", "", "") CheckNoError(t, resp) + CheckCreatedStatus(t, resp) // Check all the returned data. if tm == nil { -- cgit v1.2.3-1-g7c22