Comment 5 for bug 1369401

Revision history for this message
Varun Mittal (viral.mutant) wrote :

I tried that too

- Where everything is missing

curl -i -X POST http://10.0.2.15:35357/v2.0/OS-KSADM/services -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "X-Auth-Token: Passw0rd" -d '{"OS-KSADM:service": {}}'
HTTP/1.1 200 OK
Date: Mon, 15 Sep 2014 19:02:45 GMT
Server: Apache/2.4.7 (Ubuntu)
Vary: X-Auth-Token
Content-Length: 95
Content-Type: application/json

{"OS-KSADM:service": {"enabled": true, "type": null, "id": "935947d882384d16a75fe52e9c6b0a64"}}

-- type is missing
mittal@mittal-virtualbox:~$ curl -i -X POST http://10.0.2.15:35357/v2.0/OS-KSADM/services -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "X-Auth-Token: Passw0rd" -d '{"OS-KSADM:service": {"name":""}}'
HTTP/1.1 200 OK
Date: Mon, 15 Sep 2014 19:03:04 GMT
Server: Apache/2.4.7 (Ubuntu)
Vary: X-Auth-Token
Content-Length: 107
Content-Type: application/json

{"OS-KSADM:service": {"enabled": true, "type": null, "name": "", "id": "950b5fe5828443159e346788c622e5c4"}}

- name is missing
mittal@mittal-virtualbox:~$ curl -i -X POST http://10.0.2.15:35357/v2.0/OS-KSADM/services -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "X-Auth-Token: Passw0rd" -d '{"OS-KSADM:service": {"type":""}}'
HTTP/1.1 200 OK
Date: Mon, 15 Sep 2014 19:03:13 GMT
Server: Apache/2.4.7 (Ubuntu)
Vary: X-Auth-Token
Content-Length: 93
Content-Type: application/json

{"OS-KSADM:service": {"enabled": true, "type": "", "id": "6587914826d34897b9d0789c301ee877"}}