![]() |
FOSSology
4.6.0
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... | |
Tests for Reuser agent and scheduler interaction.
Definition at line 48 of file schedulerTest.php.
|
private |
Get clearings for a given upload id.
| int | $uploadId | |
| int | $groupId |
Definition at line 225 of file schedulerTest.php.
|
protected |
Creates two clearing decisions.
| int | $scope | |
| int | $originallyClearedItemId |
Definition at line 283 of file schedulerTest.php.
|
private |
Run reuser agent with no upload to copy decisions from.
| SchedulerTestRunner | $runner |
Definition at line 335 of file schedulerTest.php.
|
private |
Test on an upload with no clearing decisions.
| SchedulerTestRunner | $runner |
Definition at line 259 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserEmptyReuseSelection | ( | ) |
Test empty reuse selection throws exception.
Definition at line 713 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserInvalidReuseSelectionFormat | ( | ) |
Test invalid reuse selection format throws exception.
Definition at line 694 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserMalformedReuseSelection | ( | ) |
Test malformed reuse selection strings.
Definition at line 747 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserMockedScanWithALocalClearing | ( | ) |
Call runnerReuserScanWithALocalClearing()
Definition at line 365 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserMockedScanWithARepoClearing | ( | ) |
Call runnerReuserScanWithARepoClearing()
Definition at line 444 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserMockedScanWithoutAnyUploadToCopyAndAClearing | ( | ) |
Call runnerReuserScanWithoutAnyUploadToCopyAndAClearing()
Definition at line 315 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserMockedScanWithoutAnyUploadToCopyAndNoClearing | ( | ) |
Call runnerReuserScanWithoutAnyUploadToCopyAndNoClearing()
Definition at line 238 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserMultipleReuseSelectionsValidation | ( | ) |
Test multiple reuse selections validation logic.
Definition at line 628 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserNonStringReuseSelection | ( | ) |
Test non-string reuse selection throws exception.
Definition at line 730 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserRealScanWithALocalClearing | ( | ) |
Call runnerReuserScanWithALocalClearing()
Definition at line 380 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserRealScanWithARepoClearing | ( | ) |
Call runnerReuserScanWithARepoClearing()
Definition at line 459 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserRealScanWithARepoClearingEnhanced | ( | ) |
Call runnerReuserScanWithARepoClearingEnhanced()
Definition at line 542 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserRealScanWithoutAnyUploadToCopyAndAClearing | ( | ) |
Call runnerReuserScanWithoutAnyUploadToCopyAndAClearing()
Definition at line 326 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserRealScanWithoutAnyUploadToCopyAndNoClearing | ( | ) |
Call runnerReuserScanWithoutAnyUploadToCopyAndNoClearing()
Definition at line 250 of file schedulerTest.php.
| Fossology\Reuser\Test\SchedulerTest::testReuserSingleReuseSelectionValidation | ( | ) |
Test single reuse selection validation logic (backward compatibility)
Definition at line 659 of file schedulerTest.php.
|
private |
ClearingDao object
Definition at line 77 of file schedulerTest.php.
|
private |
ClearingDecisionFilter object
Definition at line 85 of file schedulerTest.php.
|
private |
CopyrightDao object
Definition at line 81 of file schedulerTest.php.
|
private |
DBManager to use
Definition at line 65 of file schedulerTest.php.
|
private |
Group id to use
Definition at line 53 of file schedulerTest.php.
|
private |
Highlight Dao
Definition at line 97 of file schedulerTest.php.
|
private |
LicenseDao object
Definition at line 73 of file schedulerTest.php.
|
private |
Scheduler interface
Definition at line 106 of file schedulerTest.php.
|
private |
Test runner
Definition at line 111 of file schedulerTest.php.
|
private |
Test db
Definition at line 61 of file schedulerTest.php.
|
private |
TestInstaller object
Definition at line 69 of file schedulerTest.php.
|
private |
Tree dao
Definition at line 101 of file schedulerTest.php.
|
private |
Upload Dao
Definition at line 89 of file schedulerTest.php.
|
private |
Upload permission
Definition at line 93 of file schedulerTest.php.
|
private |
User id to use
Definition at line 57 of file schedulerTest.php.