"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/tests/unit/test_v3_auth.py" between
keystone-17.0.0.tar.gz and keystone-18.0.0.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 "Victoria" series (latest release).

test_v3_auth.py  (keystone-17.0.0):test_v3_auth.py  (keystone-18.0.0)
skipping to change at line 2627 skipping to change at line 2627
self.user['id'], self.role['id'] self.user['id'], self.role['id']
) )
token_id = self.get_system_scoped_token() token_id = self.get_system_scoped_token()
headers = {'X-Auth-Token': token_id} headers = {'X-Auth-Token': token_id}
app = self.loadapp() app = self.loadapp()
with app.test_client() as c: with app.test_client() as c:
c.get('/v3/users', headers=headers) c.get('/v3/users', headers=headers)
def test_fetch_expired_allow_expired_in_expired_window(self):
self.config_fixture.config(group='token',
expiration=10,
allow_expired_window=20)
time = datetime.datetime.utcnow()
with freezegun.freeze_time(time):
token = self._get_project_scoped_token()
tick = datetime.timedelta(seconds=15)
with freezegun.freeze_time(time + tick):
# after passing expiry time validation fails
self._validate_token(token, expected_status=http.client.NOT_FOUND)
# but if we pass allow_expired it validates
r = self._validate_token(token, allow_expired=True)
self.assertValidProjectScopedTokenResponse(r)
class TokenDataTests(object): class TokenDataTests(object):
"""Test the data in specific token types.""" """Test the data in specific token types."""
def test_unscoped_token_format(self): def test_unscoped_token_format(self):
# ensure the unscoped token response contains the appropriate data # ensure the unscoped token response contains the appropriate data
r = self.get('/auth/tokens', headers=self.headers) r = self.get('/auth/tokens', headers=self.headers)
self.assertValidUnscopedTokenResponse(r) self.assertValidUnscopedTokenResponse(r)
def test_domain_scoped_token_format(self): def test_domain_scoped_token_format(self):
# ensure the domain scoped token response contains the appropriate data # ensure the domain scoped token response contains the appropriate data
 End of changes. 1 change blocks. 
0 lines changed or deleted 17 lines changed or added

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