27 require_once (
'fossologyTestCase.php');
28 require_once (
'TestEnvironment.php');
41 function testcreateSuiUsers()
47 'Read only test user: simple ui,NULL,1,1,NULL,NULL,rouser,n,1,simple',
49 'Download test user:simple ui,NULL,2,1,NULL,NULL,downloader,n,1,simple',
51 'Read/Write test user: simple ui,NULL,3,1,NULL,NULL,rwuser,n,1,simple',
53 'Upload test user: simple ui,NULL,4,1,NULL,NULL,uploader,n,1,simple',
55 'Anaylyze test user: simple ui,NULL,5,1,NULL,NULL,anauser,n,1,simple',
59 foreach($Users as $user => $parms)
61 list($description, $email, $access, $folder,
62 $pass1, $pass2, $Enote, $Bucketpool, $Ui) = split(
',',$parms);
66 $this->fail(
"Could not create folder $user for user $user\n");
68 $page = $this->mybrowser->get(
"$URL?mod=folder_create");
69 $folderId = $this->
getFolderId($user, $page,
'parentid');
71 $added = $this->
addUser($user, $description, $email, $access, $folderId,
72 $pass1 ,$Enote, $Bucketpool, $Ui);
73 if(preg_match(
'/User already exists/',$added, $matches)) {
78 $this->fail(
"User $user was not added to the fossology database\n$added\n");
createFolder($parent=null, $name, $description=null)
addUser($UserName, $Description=NULL, $Email=NULL, $Access=1, $Folder=1, $Password=NULL, $EmailNotify= 'y')
getFolderId($folderName, $page, $selectName)
list_t type structure used to keep various lists. (e.g. there are multiple lists).
Login($User=NULL, $Password=NULL)