# # This smoketest suite should be used to check, if multiple groups and database instances # work well in openBIS. # In all other aspects test cases should be as simple as possible. # # -- basics pre-login: login -u test -p ensure-exisists-user-x: login -u test_x -p ensure-exisists-user-y: login -u test_y -p pre-login2: login -u test -p common-register-basic-controls: register-materials CONTROL testdata/register-controls/basic-controls.txt register-basic-genes: register-materials GENE testdata/multi-groups/genes.txt register-basic-oligos: register-materials OLIGO testdata/multi-groups/oligos.txt register-group-X: register-group /X register-group-Y: register-group /Y register-role-assignments-multi-groups: register-role-assignments testdata/register-role-assignments/role-assignments-multi-groups.txt # login again to reload group permissions common-login: login -u test -p assign-home-group-x: assign-home-group test_x /X assign-home-group-y: assign-home-group test_y /Y # -- tests to check if commands work if there is no home group # register control layout with the same name, but different owner and content register-X-CL: register-control-layout -p PLATE_GEOMETRY=384_WELLS_16X24 testdata/register-controllayouts/B1B3.txt --sample-identifier /X/CL1 register-Y-CL: register-control-layout -p PLATE_GEOMETRY=384_WELLS_16X24 testdata/register-controllayouts/C1.txt --sample-identifier /Y/CL1 register-main-CL: register-control-layout -p PLATE_GEOMETRY=384_WELLS_16X24 testdata/register-controllayouts/C2.txt --sample-identifier /CL1 get-plate-info-no-home-fails: get-plate-info CL1 get-plate-info-X-CL: get-control-layout-info /X/CL1 -P get-plate-info-Y-CL: get-control-layout-info /Y/CL1 -P get-plate-info-main-CL: get-control-layout-info /CL1 -P register-master-plate-X-MP1: register-master-plate -p PLATE_GEOMETRY=384_WELLS_16X24 testdata/register-master-plates/MP1-mixed.txt batch-code --sample-identifier /X/MP1 -c /CL1 register-master-plate-main-MP1: register-master-plate -p PLATE_GEOMETRY=384_WELLS_16X24 testdata/register-master-plates/MP1-mixed.txt batch-code --sample-identifier /MP1 -c /CL1 register-dilution-plates-with-mp-in-different-group: register-dilution-plates testdata/multi-groups/dilution-plates-with-mp-in-different-group.txt register-dilution-plates-with-mp-in-a-group-but-dp-not: register-dilution-plates testdata/multi-groups/dilution-plates-with-mp-in-a-group-but-dp-not.txt register-dilution-plates-with-cp-in-different-group: register-dilution-plates testdata/multi-groups/dilution-plates-with-cp-in-different-group.txt register-dilution-plates-with-cp-in-a-group-but-dp-not: register-dilution-plates testdata/multi-groups/dilution-plates-with-cp-in-a-group-but-dp-not.txt get-plate-info-A03-undefined: get-plate-info /A03 register-dilution-plates-XY: register-dilution-plates testdata/multi-groups/dilution-plates.txt get-plate-info-A03: get-plate-info /A03 get-plate-info-X-DP: get-plate-info /X/DP1-X -P get-plate-info-Y-DP: get-plate-info /Y/DP1-Y -P get-plate-info-fails-because-control-layout: get-plate-info /X/CL1 -P register-cell-plates-XY: register-cell-plates testdata/multi-groups/cell-plates.txt assign-plate-property-type: assign-plate-property-type DILUTION_PLATE USER.description -f testdata/multi-groups/dilution-plates-description.txt list-dilution-plates-with-new-property: list-plates -P DILUTION_PLATE /x/* /y/* invalidate-main-MP1: invalidate-plates /MP1 get-plate-info-X-MP1: get-plate-info /X/MP1 -P # -- tests to check if group permissions work login-user-x: login -u test_x -p get-plate-info-X-userX-allowed: get-plate-info /X/DP1-X get-plate-info-Y-userY-denied: get-plate-info /Y/DP1-Y register-CL-main-auth-fails: register-control-layout -p PLATE_GEOMETRY=384_WELLS_16X24 testdata/register-controllayouts/C1.txt --sample-identifier /xxx register-CL-Y-auth-fails: register-control-layout -p PLATE_GEOMETRY=384_WELLS_16X24 testdata/register-controllayouts/C1.txt --sample-identifier /Y/xxx list-plates-user-X: list-plates DILUTION_PLATE register-project-X: register-project PROJ-X register-project-Y-auth-fails: register-project /Y/PROJ-Y register-experiments-different-group: register-experiments SIRNA_HCS testdata/multi-groups/experimentConsistentGroup.txt login-user-y: login -u test_y -p get-plate-info-X-userX-denied: get-plate-info /X/DP1-X list-plates-user-Y: list-plates DILUTION_PLATE /Y/* -a list-plates-X-auth-fails: list-plates DILUTION_PLATE /X/*