← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1836618] Re: Due to case sensitivity of a user name compare in a keystone test, the test might fail

 

Reviewed:  https://review.opendev.org/670610
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=4776b13babe5e5f836e1fac7793c066bc933fd71
Submitter: Zuul
Branch:    master

commit 4776b13babe5e5f836e1fac7793c066bc933fd71
Author: manasa <mb711d@xxxxxxx>
Date:   Fri Jul 12 13:29:39 2019 -0400

    Fix Upstream test cases to be case insensitive
    
    In any domain, due to case sensitivity, if a username
    for the project and the username in tempest.conf or
    accounts.yaml are not identical, then the test cases
    are failing.
    
    So, added .lower() method to change the username strings
    to be case insensitive.
    
    Closes-Bug: #1836618
    
    Change-Id: Id7d079c881bbfae972d65ef6049f78da7f25fc1d


** Changed in: tempest
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1836618

Title:
  Due to case sensitivity of a user name compare in a keystone test, the
  test might fail

Status in OpenStack Identity (keystone):
  Invalid
Status in tempest:
  Fix Released

Bug description:
  Due to case sensitivity of a user name compare in a keystone test, the test might return an error similar to the one below:
   
   Captured Traceback:
   
   Traceback (most recent call last):
   File "tempest/api/identity/v3/test_tokens.py", line 113, in test_token_auth_creation_existence_deletion
   self.assertEqual(token_details['user']['name'], user.username)
   File "/home/manasareddybethi/aqua-venv/local/lib/python2.7/site-packages/testtools/testcase.py", line 411, in assertEqual
   self.assertThat(observed, matcher, message)
   File "/home/manasareddybethi/aqua-venv/local/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
   raise mismatch_error
   testtools.matchers._impl.MismatchError: u'KellyTest' != u'kellytest'
   
   This is because it is comparing the name from keystone and the name from tempest.conf or accounts.yaml, when using preprovisioned creds. Here is he example that I have on our openstack instance. 
   mismatch error from the stack trace, u'KellyTest' != u'kellytest' 
   the username for the project and username on accounts.yaml or tempest.conf are not identical.

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