-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for GET project environment endpoint
- Loading branch information
Showing
5 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
package api_test | ||
|
||
func (t *testSuite) TestProjectEnvironment_Get() { | ||
t.T().Skip("Not yet implemented") | ||
t.Factory.SaveOrganization(t.Factory.MakeOrganization()) | ||
t.Factory.SaveProject(t.Factory.MakeProject()) | ||
t.Factory.SaveEnvironment(t.Factory.MakeEnvironment()) | ||
|
||
res, bodyStr, errs := t.Client.Get("http://example.com/api/0/projects/acme-team/acme/environments/").End() | ||
t.Nil(errs) | ||
t.Equal(200, res.StatusCode) | ||
t.JSONEq(`[{ | ||
"id": "1", | ||
"name": "" | ||
}]`, | ||
bodyStr) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters