Bug 'HEAD and GET inconsistencies in Keystone' [1] reported that HEAD should be identical to GET except that there is no body returned, as defined on the HTTP 1.1 specification [2], then 200 status code have to be returned [3].
Some inconsistencies were removed, but there is still some work to be done:
1) For all HEAD/GET APIs:
a) Fix return from 204 to 200, if change applies;
b) Fix related tests, e.g checking a grant [4];
c) Fix identity v3 API specification, that reports 204 is returned on most of HEAD APIs (except for /auth/tokens).
2) Default status code asserted on test_v3 [5] should be 200 instead of 204
[1] https://bugs.launchpad.net/keystone/+bug/1334368
[2] http://tools.ietf.org/html/rfc2616#section-9.4
[3] http://tools.ietf.org/html/rfc2616#section-10.2.1
[4] https://github.com/openstack/keystone/blob/master/keystone/tests/test_v3_assignment.py#L881
[5] https://github.com/openstack/keystone/blob/master/keystone/tests/test_v3.py#L479
Fix proposed to branch: master /review. openstack. org/142065
Review: https:/