![]() |
FOSSology
4.7.1
Open Source License Compliance by Open Source Software
|
Tests for Reuser agent and scheduler interaction. More...


Protected Member Functions | |
| setUp () | |
| Setup test env. | |
| tearDown () | |
| Tear down test env. | |
| insertDecisionFromTwoEvents ($scope=DecisionScopes::ITEM, $originallyClearedItemId=23) | |
| Creates two clearing decisions. More... | |
Private Member Functions | |
| setUpRepo () | |
| Setup test repo. | |
| rmRepo () | |
| Tear down test repo. | |
| setUpTables () | |
| Setup tables required by the agent. | |
| getHeartCount ($output) | |
| Get the heart count from agent. | |
| getFilteredClearings ($uploadId, $groupId) | |
| Get clearings for a given upload id. More... | |
| runnerReuserScanWithoutAnyUploadToCopyAndNoClearing (SchedulerTestRunner $runner) | |
| Test on an upload with no clearing decisions. More... | |
| runnerReuserScanWithoutAnyUploadToCopyAndAClearing ($runner) | |
| Run reuser agent with no upload to copy decisions from. More... | |
Private Attributes | |
| $groupId = 3 | |
| $userId = 2 | |
| $testDb | |
| $dbManager | |
| $testInstaller | |
| $licenseDao | |
| $clearingDao | |
| $copyrightDao | |
| $clearingDecisionFilter | |
| $uploadDao | |
| $uploadPermDao | |
| $highlightDao | |
| $treeDao | |
| $runnerCli | |
Tests for Reuser agent and scheduler interaction.
Definition at line 47 of file schedulerTest.php.
|
private |
Get clearings for a given upload id.
| int | $uploadId | |
| int | $groupId |
Definition at line 214 of file schedulerTest.php.
|
protected |
Creates two clearing decisions.
| int | $scope | |
| int | $originallyClearedItemId |
Definition at line 260 of file schedulerTest.php.
|
private |
Run reuser agent with no upload to copy decisions from.
| SchedulerTestRunner | $runner |
Definition at line 301 of file schedulerTest.php.
|
private |
Test on an upload with no clearing decisions.
| SchedulerTestRunner | $runner |
Definition at line 236 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserEmptyReuseSelection | ( | ) |
Test empty reuse selection throws exception.
Definition at line 633 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserInvalidReuseSelectionFormat | ( | ) |
Test invalid reuse selection format throws exception.
Definition at line 614 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserMalformedReuseSelection | ( | ) |
Test malformed reuse selection strings.
Definition at line 667 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserMultipleReuseSelectionsValidation | ( | ) |
Test multiple reuse selections validation logic.
Definition at line 548 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserNonStringReuseSelection | ( | ) |
Test non-string reuse selection throws exception.
Definition at line 650 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserRealScanWithALocalClearing | ( | ) |
Call runnerReuserScanWithALocalClearing()
Definition at line 331 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserRealScanWithARepoClearing | ( | ) |
Call runnerReuserScanWithARepoClearing()
Definition at line 395 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserRealScanWithoutAnyUploadToCopyAndAClearing | ( | ) |
Call runnerReuserScanWithoutAnyUploadToCopyAndAClearing()
Definition at line 292 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserRealScanWithoutAnyUploadToCopyAndNoClearing | ( | ) |
Call runnerReuserScanWithoutAnyUploadToCopyAndNoClearing()
Definition at line 227 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserSingleReuseSelectionValidation | ( | ) |
Test single reuse selection validation logic (backward compatibility)
Definition at line 579 of file schedulerTest.php.
|
private |
ClearingDao object
Definition at line 76 of file schedulerTest.php.
|
private |
ClearingDecisionFilter object
Definition at line 84 of file schedulerTest.php.
|
private |
CopyrightDao object
Definition at line 80 of file schedulerTest.php.
|
private |
DBManager to use
Definition at line 64 of file schedulerTest.php.
|
private |
Group id to use
Definition at line 52 of file schedulerTest.php.
|
private |
Highlight Dao
Definition at line 96 of file schedulerTest.php.
|
private |
LicenseDao object
Definition at line 72 of file schedulerTest.php.
|
private |
Scheduler interface
Definition at line 105 of file schedulerTest.php.
|
private |
Test db
Definition at line 60 of file schedulerTest.php.
|
private |
TestInstaller object
Definition at line 68 of file schedulerTest.php.
|
private |
Tree dao
Definition at line 100 of file schedulerTest.php.
|
private |
Upload Dao
Definition at line 88 of file schedulerTest.php.
|
private |
Upload permission
Definition at line 92 of file schedulerTest.php.
|
private |
User id to use
Definition at line 56 of file schedulerTest.php.