"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/tests/unit/test_v3_auth.py" between
keystone-16.0.1.tar.gz and keystone-16.0.2.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Train" series (maintained release).

test_v3_auth.py  (keystone-16.0.1):test_v3_auth.py  (keystone-16.0.2)
skipping to change at line 5291 skipping to change at line 5291
self.v3_create_token(auth_data, expected_status=http_client.CREATED) self.v3_create_token(auth_data, expected_status=http_client.CREATED)
def test_with_passcode_in_previous_windows_extended(self): def test_with_passcode_in_previous_windows_extended(self):
self.config_fixture.config(group='totp', self.config_fixture.config(group='totp',
included_previous_windows=4) included_previous_windows=4)
creds = self._make_credentials('totp') creds = self._make_credentials('totp')
secret = creds[-1]['blob'] secret = creds[-1]['blob']
past = datetime.datetime.utcnow() - datetime.timedelta(minutes=2) past = datetime.datetime.utcnow() - datetime.timedelta(minutes=2)
with freezegun.freeze_time(past): self.useFixture(fixture.TimeFixture(past))
auth_data = self._make_auth_data_by_id( auth_data = self._make_auth_data_by_id(
totp._generate_totp_passcodes(secret)[0]) totp._generate_totp_passcodes(secret)[0])
# Stop the clock otherwise there is a chance of auth failure due to # Stop the clock otherwise there is a chance of auth failure due to
# getting a different TOTP between the call here and the call in the # getting a different TOTP between the call here and the call in the
# auth plugin. # auth plugin.
self.useFixture(fixture.TimeFixture()) self.useFixture(fixture.TimeFixture())
self.v3_create_token(auth_data, expected_status=http_client.CREATED) self.v3_create_token(auth_data, expected_status=http_client.CREATED)
def test_with_an_invalid_passcode_and_user_credentials(self): def test_with_an_invalid_passcode_and_user_credentials(self):
self._make_credentials('totp') self._make_credentials('totp')
 End of changes. 1 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)