Ticket #10284 (closed: fixed)
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:
- Connect to datareducedev.isis.cclrc.ac.uk
- sudo su
- export PATH="/usr/local/bin:$PATH"
- cd /var/www/autoreduce_webapp
- python manage.py test autoreduce_webapp.tests.UOWSClientTestCase
- 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
Note: See
TracTickets for help on using
tickets.