Merge lp:~julian-edwards/gwacl/updatehostedservice into lp:gwacl
Proposed by
Julian Edwards
Status: | Merged |
---|---|
Approved by: | Julian Edwards |
Approved revision: | 162 |
Merged at revision: | 161 |
Proposed branch: | lp:~julian-edwards/gwacl/updatehostedservice |
Merge into: | lp:gwacl |
Diff against target: |
197 lines (+130/-3) 4 files modified
management_base.go (+21/-3) management_base_test.go (+30/-0) xmlobjects.go (+24/-0) xmlobjects_test.go (+55/-0) |
To merge this branch: | bzr merge lp:~julian-edwards/gwacl/updatehostedservice |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raphaël Badin (community) | Approve | ||
Review via email: mp+172957@code.launchpad.net |
Commit message
Add UpdateHostedService api call.
To post a comment you must log in.
Thanks, nice change.
[0]
+func (api *ManagementAPI) UpdateHostedSer vice(serviceNam e string, params *UpdateHostedSe rvice) error { hostedservices/ " + serviceName
11 + var err error
12 + URI := "services/
You forgot to call checkPathCompon ents(serviceNam e)
[1]
11 + var err error
No need for this declaration I think.
[2]
This can be done later but it would be great to use this method in example/ management/ run.go.
[3]
[2]
152 +func (suite *xmlSuite) TestUpdateHoste dService( c *C) { g(10) dService( label) vice{
153 + label := MakeRandomStrin
154 + expected := makeUpdateHoste
155 + input := UpdateHostedSer
156 + XMLNS: XMLNS,
157 + Label: label,
158 + Description: "description",
This is a detail but it's a bit weird that "description" references a string that is buried deep in the XML code above, maybe the description (and the other values of the XML string) should be an argument of makeUpdateHoste dService( ).