openmicroscopy/openmicroscopy — pull request #2651 by sbesson (2014-06-17 19:20:17+00:00)
Title: Fix CLI import as with -g argument (rebased onto develop)

This is the same as gh-2620 but rebased onto develop.

----

Fixes http://trac.openmicroscopy.org.uk/ome/ticket/12288

With this PR, the CLI import as functionality should now properly work in multi-group, i.e.
```
bin/omero import --sudo root -u username -s servername -g groupname file
```
should import file as user `user` in group `groupname`.

Also check the integration tests previously marked as `xfail` now pass.

Note the first integration test `testImportMultiGroup` was wrongly marked as xfail. Reason of failure was the connection arguments used for the test i.e. using session key was taking precedence over group argument. This should also be fixed via the restructuring of the `set_conn_args` method.