Ticket #10284 (closed: fixed)

Opened 6 years ago

Last modified 6 years ago

Implement UOWS client in autoreduction

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: #10270 Tester: Anders Markvardsen

Description (last modified by MarcusNoble) (diff)

Create a client to communicate with the User Office webservice to be used by the custom authentication for verifying SessionIDs and getting basic user information to populate the User table with.

Could make use of https://bitbucket.org/jurko/suds for the SOAP communication as it is already being used by the ICAT client.

Will need to handle ws.checkSession(), ws.getPersonDetails() and logout().

For Tester:

  1. Connect to datareducedev.isis.cclrc.ac.uk
  2. sudo su
  3. export PATH="/usr/local/bin:$PATH"
  4. cd /var/www/autoreduce_webapp
  5. python manage.py test autoreduce_webapp.tests.UOWSClientTestCase
  6. When asked for credentials enter your user office system credentials (https://devusers.facilities.rl.ac.uk/auth/)

Expected outcome:

[root@datareducedev autoreduce_webapp]# python /var/www/autoreduce_webapp/manage.py test  autoreduce_webapp.tests.UOWSClientTestCase
Creating test database for alias 'default'...

These tests require that you have a user account on the dev user office system. https://devusers.facilities.rl.ac.uk/auth/
UserOffice WebService Username: marcus.noble@stfc.ac.uk
UserOffice WebService Password:
............
----------------------------------------------------------------------
Ran 12 tests in 83.482s

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

  • Status changed from assigned to inprogress

comment:3 Changed 6 years ago by MarcusNoble

  • Description modified (diff)

comment:4 Changed 6 years ago by MarcusNoble

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

comment:5 Changed 6 years ago by Anders Markvardsen

  • Status changed from verify to verifying
  • Tester set to Anders Markvardsen

comment:6 Changed 6 years ago by Anders Markvardsen

  • Status changed from verifying to closed

The output matched the expected:

Ran 12 tests in 126.026s

OK

Note: See TracTickets for help on using tickets.