Skip to content
Snippets Groups Projects
Commit 9501848b authored by Henry Luetcke's avatar Henry Luetcke Committed by Adam Laskowski
Browse files

test space creation

parent 4174c232
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -8,10 +8,18 @@ pass = true;
%% 1. Login to openBIS
obi = OpenBis();
assert(obi.is_session_active(), 'Session not active')
assert(obi.is_session_active(), 'Session not active');
%% 2. Create space for test
space_name = 'TESTING_SPACE';
try
space = obi.new_space(space_name, 'a space for tests of the Matlab openBIS Toolbox');
catch
disp('Could not create requested space')
rethrow(lasterror)
end
spaces = obi.get_spaces();
assert(any(ismember(spaces.code, space_name)), 'Space has not been created');
%% 3. Create project for test
......@@ -29,7 +37,7 @@ assert(obi.is_session_active(), 'Session not active')
%% 8. Logout
obi.logout()
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment