I think what you mention is a good test. However, I wouldn't be able to run it 
in most of my test environments. Maybe there should be an invalidate token 
admin API functionality? I could see reasons for wanting it for functional 
reasons, and would still allow you to write a test like this.

Daryl


-- Sent from my HP TouchPad
________________________________
On Apr 29, 2012 11:27 PM, Karajgi, Rohit <rohit.kara...@nttdata.com> wrote:
Hi,

We are writing new tests for keystone and some of these tests need to touch 
keystone database.
I really want to avoid  this, but unfortunately there are no RESTful APIs 
supported in stable/essex to do the job.

One of the example is
1.      Check if get_tenants api fails for expired token. There is no way I can 
set expiry date of the token using admin RESTful API.

So currently I'm planning to use mysql client commands and set the expiry date.
All such tests will be put in the attr decorator with the name "devstack". So 
any one who doesn't want to run such tests should run tempest with nosetests -a 
kind!=devstack.

Does it make sense to add such tests?

Regards,
Rohit

______________________________________________________________________
Disclaimer:This email and any attachments are sent in strictest confidence for 
the sole use of the addressee and may contain legally privileged, confidential, 
and proprietary data.  If you are not the intended recipient, please advise the 
sender by replying promptly to this email and then delete and destroy this 
email and any attachments without any further use, copying or forwarding

--
Mailing list: https://launchpad.net/~openstack-qa-team
Post to     : openstack-qa-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack-qa-team
More help   : https://help.launchpad.net/ListHelp
-- 
Mailing list: https://launchpad.net/~openstack-qa-team
Post to     : openstack-qa-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack-qa-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to