← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1403509] [NEW] Test cases in test_content_types.py assert 200 on POST operations

 

Public bug reported:

When adding a positive test case to keystone/tests/test_content_types.py
it was discovered that several test cases in that module assert 200 OK
response codes for POST operations [1]. According to the v2.0 API
documentation, POST operations should result in a 201 Created response
code [2].

I've submitted a patch that changes all 200 OK response codes to 201 and
showcases the failures [3].

[1] https://github.com/openstack/keystone/blob/7f52036bd4dd1b8d911d56d3019fc9d8a7337d64/keystone/tests/test_content_types.py#L119-L131
[2] http://developer.openstack.org/api-ref-identity-v2.html#admin-users
[3] https://review.openstack.org/#/c/142440/

** Affects: keystone
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1403509

Title:
  Test cases in test_content_types.py assert 200 on POST operations

Status in OpenStack Identity (Keystone):
  New

Bug description:
  When adding a positive test case to
  keystone/tests/test_content_types.py it was discovered that several
  test cases in that module assert 200 OK response codes for POST
  operations [1]. According to the v2.0 API documentation, POST
  operations should result in a 201 Created response code [2].

  I've submitted a patch that changes all 200 OK response codes to 201
  and showcases the failures [3].

  [1] https://github.com/openstack/keystone/blob/7f52036bd4dd1b8d911d56d3019fc9d8a7337d64/keystone/tests/test_content_types.py#L119-L131
  [2] http://developer.openstack.org/api-ref-identity-v2.html#admin-users
  [3] https://review.openstack.org/#/c/142440/

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1403509/+subscriptions


Follow ups

References