Ticket #10242 (closed: fixed)
Build ICAT client for autoreduction webapp
Reported by: | MarcusNoble | Owned by: | MarcusNoble |
---|---|---|---|
Priority: | major | Milestone: | Release 3.3 |
Component: | Tools | Keywords: | AUTOREDUCTION |
Cc: | doucetm@…, tom.griffin@…, nick.draper@…, anders.markvardsen@… | Blocked By: | |
Blocking: | #10147, #10186, #10270 | Tester: | Anders Markvardsen |
Description (last modified by MarcusNoble) (diff)
Create a class to act as an ICAT client to be used when getting experiment details, list of experiments a user is associated with and an instrument scientists instruments.
Will need some way of authenticating against ICAT and storing a users session for the duration of requests.
It will also need a "refresh" method that will be called upon each request to ensure the session doesn't expire.
UPDATE: Should use users.facilities.rl.ac.uk/auth as login mechanism (use similar redirect as implemented for ICAT)
User Office sessions can be converted into ICAT session.
For Tester:
- Connect to datareducedev.isis.cclrc.ac.uk
- sudo su
- export PATH="/usr/local/bin:$PATH"
- python /var/www/autoreduce_webapp/manage.py test autoreduce_webapp.tests.ICATCommunicationTestCase (Note: One test will take longer than the others as it waits for a timeout)
- When asked for ICAT credentials enter your federal ID credentials
Expected output:
[root@datareducedev autoreduce_webapp]# python /var/www/autoreduce_webapp/manage.py test autoreduce_webapp.tests.ICATCommunicationTestCase Creating test database for alias 'default'... .............................. ---------------------------------------------------------------------- Ran 30 tests in 88.709s OK Destroying test database for alias 'default'...
Change History
comment:7 Changed 6 years ago by MarcusNoble
- Status changed from inprogress to verify
- Resolution set to fixed
- Description modified (diff)
comment:9 Changed 6 years ago by Anders Markvardsen
- Status changed from verify to verifying
- Tester set to Anders Markvardsen
comment:10 Changed 6 years ago by Anders Markvardsen
- Status changed from verifying to closed
This is in place. My credentials calles three fails, but this related to my specific limitted permissions within ICAT, which is OK