Merge lp:~rvb/gwacl/list-endpoints into lp:gwacl
Proposed by
Raphaël Badin
Status: | Merged |
---|---|
Approved by: | Raphaël Badin |
Approved revision: | 212 |
Merged at revision: | 212 |
Proposed branch: | lp:~rvb/gwacl/list-endpoints |
Merge into: | lp:gwacl |
Diff against target: |
147 lines (+126/-0) 2 files modified
management.go (+29/-0) management_test.go (+97/-0) |
To merge this branch: | bzr merge lp:~rvb/gwacl/list-endpoints |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella | Approve | ||
Review via email: mp+178552@code.launchpad.net |
Commit message
Add ListRoleEndpoints method.
To post a comment you must log in.
[1]
+ endpointsP := vmRole. ConfigurationSe ts[i].InputEndp oints
I assume the P suffix denotes a pointer. I'm not sure I like that, but
don't change it; I don't have a reason to object other than aesthetics
really.
[2]
+func (suite *suiteListRoleE ndpoints) TestWhenGetRole Fails(c *C) {
...
+ c.Check(err, ErrorMatches, "GET request failed [(]404: Not Found[)]")
I wonder if we should revisit these behaviours everywhere in GWACL and
return nil instead of an error. That's easier to use in a conditional,
and a common idiom for absense of something. Errors are a pain to make
decisions about, except nil or not. What do you think? (Utterly out of
scope for this branch; I'm just seeking your opinion.)