Skip to content
This repository was archived by the owner on Apr 26, 2021. It is now read-only.

Add handler for GET /repository/repo/branch (fix #123) #129

Merged
merged 1 commit into from
Jul 25, 2014

Conversation

scorphus
Copy link
Contributor

Tests were named like that (TestGetBranch, TestGetBranchWhenRepoNotSupplied, TestGetBranchWhenRepoNonExistent and TestGetBranchWhenCommandFails) to gain on such calls:

$ cd api/
$ go test -gocheck.f TestGetBranch ./...
OK: 4 passed
PASS
ok      github.com/tsuru/gandalf/api    0.167s
$ cd api/
$ go test -gocheck.f TestGetBranchWhen ./...
OK: 3 passed
PASS
ok      github.com/tsuru/gandalf/api    0.158s
$ cd api/
$ go test -gocheck.f TestGetBranchWhenRepoNo ./...
OK: 2 passed
PASS
ok      github.com/tsuru/gandalf/api    0.126s
$ cd api/
$ go test -gocheck.f TestGetBranchWhenRepoNon ./...
OK: 1 passed
PASS
ok      github.com/tsuru/gandalf/api    0.129s

@andrewsmedina
Copy link
Contributor

@scorphus you forgot to map a url to your handler.

andrewsmedina added a commit that referenced this pull request Jul 25, 2014
Add handler for `GET /repository/repo/branch` (fix #123)
@andrewsmedina andrewsmedina merged commit 10461ab into tsuru:master Jul 25, 2014
@andrewsmedina
Copy link
Contributor

@scorphus thank you!

@scorphus scorphus deleted the get-branch-handler branch July 25, 2014 18:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants