rcbops/kong — comment on commit 544c27f5524fd1dc734f06afaa3c7f96815ee14f
File: tests/test_keystone_api.py line 207
By rackerjoe:

I have a workaround for this - but I need to test it against diablo-final as well. keystone does not honor the token check with a HEAD request but will respond appropriately to a GET request. I will re-patch this and sort it out.

root@vagrant-natty:/opt/kong# curl -I -H "X-Auth-Token: 999888777666" http://127.0.0.1:5001/v2.0/tokens/999888777666
HTTP/1.1 404 Item not found.
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Date: Wed, 11 Jan 2012 03:34:40 GMT

root@vagrant-natty:/opt/kong# curl -H "X-Auth-Token: 999888777666" http://127.0.0.1:5001/v2.0/tokens/999888777666
{"auth": {"token": {"expires": "2015-02-05T00:00:00", "id": "999888777666", "tenantId": "openstack"}, "user": {"username": "admin", "roleRefs": [{"roleId": "Admin", "id": 2, "tenantId": "openstack"}, {"roleId": "Admin", "id": 1}], "tenantId": "openstack"}}}

The original issue was misdiagnosed.