Ticket #10242 (closed: fixed)

Opened 6 years ago

Last modified 6 years ago

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:

  1. Connect to datareducedev.isis.cclrc.ac.uk
  2. sudo su
  3. export PATH="/usr/local/bin:$PATH"
  4. 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)
  5. 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:1 Changed 6 years ago by MarcusNoble

  • Status changed from new to assigned

comment:2 Changed 6 years ago by MarcusNoble

  • Blocked By 10252 added

comment:3 Changed 6 years ago by MarcusNoble

  • Blocking 10270 added

comment:4 Changed 6 years ago by MarcusNoble

  • Description modified (diff)

comment:5 Changed 6 years ago by MarcusNoble

  • Status changed from assigned to inprogress

comment:6 Changed 6 years ago by MarcusNoble

  • Blocked By 10252 removed

comment:7 Changed 6 years ago by MarcusNoble

  • Status changed from inprogress to verify
  • Resolution set to fixed
  • Description modified (diff)

comment:8 Changed 6 years ago by MarcusNoble

  • 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

Note: See TracTickets for help on using tickets.