19 require_once (
'fossologyTestCase.php');
20 require_once (
'TestEnvironment.php');
28 protected $roUserFolderId;
29 protected $rwUserFolderId;
30 protected $uploaderFolderId;
31 protected $analyzeFolderId;
32 protected $downLoaderFolderId;
41 'Read only User folder');
42 $this->downLoaderFolderId = $this->
createFolder(1,
'downloader',
43 'downloader User folder');
45 'Read/Write User folder');
46 $this->uploaderFolderId = $this->
createFolder(1,
'uploader',
47 'Uploader User folder');
48 $this->analyzeFolderId = $this->
createFolder(1,
'anauser',
49 'Analyze User folder');
52 function testcreateUiUsers() {
63 "Primary Test User: runs test suites,fosstester,10,1,NULL,NULL,
64 fosstester,y,1,$orig",
66 "test user with NO Email notification,NULL,10,1,NULL,NULL,noemail,NULL,
69 "Jenkins user for test runs started from jenkins,NULL,10,1,NULL,NULL,
72 "Read only User: simple Ui,NULL,1,$this->roUserFolderId,NULL,NULL,'',
75 "download user: simple ui,NULL,2,$this->downLoaderFolderId,NULL,NULL,'',
78 "read/write user: simple ui,NULL,3,$this->rwUserFolderId,NULL,NULL,'',
81 "upload user: simple ui,NULL,4,$this->uploaderFolderId,NULL,NULL,'',
84 "read/write user: simple ui,NULL,5,$this->analyzeFolderId,NULL,NULL,'',
89 $date = date(
'Y-m-d');
90 $time = date(
'h:i:s-a');
91 print
"Starting testcreateUIUsers on: " . $date .
" at " . $time .
"\n";
92 print
"Using Svn Version:$Svn\n";
93 foreach($Users as $user => $params) {
94 list($description, $email, $access, $folder,
95 $block, $blank, $password, $Enote, $bucket, $ui ) = explode(
',',$Users[$user]);
96 $added = $this->
addUser($user, $description, $email, $access, $folder,
97 $password, $Enote, $bucket, $ui);
98 if(preg_match(
'/User already exists/',$added, $matches)) {
103 $this->fail(
"User $user was not added to the fossology database\n$added\n");
addUser($UserName, $Description=NULL, $Email=NULL, $Access=1, $Folder=1, $Password=NULL, $EmailNotify='y')
createFolder($parent, $name, $description=null)
Login($User=NULL, $Password=NULL)
list_t type structure used to keep various lists. (e.g. there are multiple lists).