30 require_once (
'fossologyTestCase.php');
31 require_once (
'TestEnvironment.php');
39 protected $roUserFolderId;
40 protected $rwUserFolderId;
41 protected $uploaderFolderId;
42 protected $analyzeFolderId;
43 protected $downLoaderFolderId;
52 'Read only User folder');
53 $this->downLoaderFolderId = $this->
createFolder(1,
'downloader',
54 'downloader User folder');
56 'Read/Write User folder');
57 $this->uploaderFolderId = $this->
createFolder(1,
'uploader',
58 'Uploader User folder');
59 $this->analyzeFolderId = $this->
createFolder(1,
'anauser',
60 'Analyze User folder');
63 function testcreateUiUsers() {
74 "Primary Test User: runs test suites,fosstester,10,1,NULL,NULL, 75 fosstester,y,1,$orig",
77 "test user with NO Email notification,NULL,10,1,NULL,NULL,noemail,NULL, 80 "Jenkins user for test runs started from jenkins,NULL,10,1,NULL,NULL, 83 "Read only User: simple Ui,NULL,1,$this->roUserFolderId,NULL,NULL,'', 86 "download user: simple ui,NULL,2,$this->downLoaderFolderId,NULL,NULL,'', 89 "read/write user: simple ui,NULL,3,$this->rwUserFolderId,NULL,NULL,'', 92 "upload user: simple ui,NULL,4,$this->uploaderFolderId,NULL,NULL,'', 95 "read/write user: simple ui,NULL,5,$this->analyzeFolderId,NULL,NULL,'', 100 $date = date(
'Y-m-d');
101 $time = date(
'h:i:s-a');
102 print
"Starting testcreateUIUsers on: " . $date .
" at " . $time .
"\n";
103 print
"Using Svn Version:$Svn\n";
104 foreach($Users as $user => $params) {
105 list($description, $email, $access, $folder,
106 $block, $blank, $password, $Enote, $bucket, $ui ) = split(
',',$Users[$user]);
107 $added = $this->
addUser($user, $description, $email, $access, $folder,
108 $password, $Enote, $bucket, $ui);
109 if(preg_match(
'/User already exists/',$added, $matches)) {
114 $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')
list_t type structure used to keep various lists. (e.g. there are multiple lists).
Login($User=NULL, $Password=NULL)