Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update swagger spec to latest #20

Merged
merged 1 commit into from
Aug 9, 2016
Merged

update swagger spec to latest #20

merged 1 commit into from
Aug 9, 2016

Conversation

codenrhoden
Copy link
Collaborator

Pull in latest swagger spec, which includes one critical fix:

The return code for POST /node/{identifier}/workflows is wrong,
it should be 201 instead of 200.

This helps keep the specs in sync. Here is the test output as well:

[travis@mbp ~/go/src/github.com/emccode/gorackhd (swagger_spec_update *+)]$ go test -v
=== RUN   TestNodeGetOperation
[]interface {}{map[string]interface {}{"obmSettings":[]interface {}{map[string]interface {}{"service":"ipmi-obm-service", "config":map[string]interface {}{"user":"ADMIN", "password":"REDACTED", "host":"0c:c4:7a:5e:6e:67"}}}, "identifiers":[]interface {}{"0c:c4:7a:b0:40:2a"}, "autoDiscover":false, "relations":[]interface {}{map[string]interface {}{"relationType":"enclosedBy", "targets":[]interface {}{"57a26e5e9e3efe010046910a"}}}, "tags":[]interface {}{"dockermachine"}, "updatedAt":"2016-08-09T17:55:14.869Z", "sku":"57a26db51b76b60100b9eb78", "id":"57a26e031b76b60100b9eb7a", "workflows":[]interface {}{}, "catalogs":[]interface {}{}, "name":"0c:c4:7a:b0:40:2a", "type":"compute", "createdAt":"2016-08-03T22:19:47.397Z"}, map[string]interface {}{"workflows":[]interface {}{}, "type":"enclosure", "relations":[]interface {}{map[string]interface {}{"relationType":"encloses", "targets":[]interface {}{"57a26e031b76b60100b9eb7a"}}}, "tags":[]interface {}{}, "updatedAt":"2016-08-03T22:21:18.509Z", "catalogs":[]interface {}{}, "name":"Enclosure Node 1234567890", "autoDiscover":false, "createdAt":"2016-08-03T22:21:18.454Z", "id":"57a26e5e9e3efe010046910a"}}
--- PASS: TestNodeGetOperation (0.05s)
=== RUN   TestNodeLookupOperation
[]interface {}{}
--- PASS: TestNodeLookupOperation (0.01s)
=== RUN   TestNodePostOperation
{"id":"1234abcd1234abcd1234abcd","name":"somename","type":"compute","obmSettings":[{"service":"ipmi-obm-service","config":{"host":"1.2.3.4","user":"myuser","password":"mypass"}}]}
map[string]interface {}{"name":"somename", "relations":[]interface {}{}, "tags":[]interface {}{}, "createdAt":"2016-08-09T18:54:06.336Z", "updatedAt":"2016-08-09T18:54:06.336Z", "id":"1234abcd1234abcd1234abcd", "type":"compute", "obmSettings":[]interface {}{map[string]interface {}{"service":"ipmi-obm-service", "config":map[string]interface {}{"host":"1.2.3.4", "user":"myuser", "password":"7pWc5Pw/cVPQ5aAq6V/1TQ==.Y0c24NgFBitwFhwvcv4fMA=="}}}, "autoDiscover":false}
--- PASS: TestNodePostOperation (0.03s)
=== RUN   TestNodeDeleteOperation
&nodes.DeleteNodesIdentifierOK{}
--- PASS: TestNodeDeleteOperation (0.04s)
PASS
ok      github.com/emccode/gorackhd 0.202s

Pull in latest swagger spec, which includes one critical fix:

The return code for POST /node/{identifier}/workflows is wrong,
it should be 201 instead of 200.
@codenrhoden codenrhoden merged commit 83577fd into master Aug 9, 2016
@codenrhoden codenrhoden deleted the swagger_spec_update branch August 9, 2016 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant