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


Public Member Functions | |
| testSpdxForNormalUploadtreeTable () | |
| Test spdx agent for RDF. More... | |
| testSpdxForSpecialUploadtreeTable () | |
| Test spdx agent for RDF. More... | |
| runJobFromJobque ($uploadId, $jobId) | |
| Run jobs from queue. More... | |
| getReportFilepathFromJob ($uploadId, $jobId) | |
| Get the file path for report from DB. More... | |
| runAndTestReportRDF ($uploadId=1) | |
| Create RDF report and check it. More... | |
Protected Member Functions | |
| setUp () | |
| Setup test db. | |
| tearDown () | |
| Teardown test db. | |
| verifyRdf ($filepath) | |
| Use SPDX toolkit to verify RDF file format. More... | |
| pullSpdxTools () | |
| Pull SPDX toolkit from github if not found. More... | |
| verifyJavaIsInstalled () | |
| Verify if java is intalled on the system. | |
Private Member Functions | |
| setUpRepo () | |
| Setup test repo. | |
| rmRepo () | |
| Teardown test repo. | |
| setUpTables () | |
| Setup tables required for test. | |
| getHeartCount ($output) | |
| Get the heart count from agent. | |
Private Attributes | |
| $userId = 2 | |
| $groupId = 2 | |
| $testDb | |
| $dbManager | |
| $testInstaller | |
| $runnerCli | |
Tests for Spdx agent and scheduler interaction.
Definition at line 32 of file schedulerTest.php.
| Fossology\Spdx\Test\SchedulerTest::getReportFilepathFromJob | ( | $uploadId, | |
| $jobId | |||
| ) |
Get the file path for report from DB.
| int | $uploadId | |
| int | $jobId |
Definition at line 190 of file schedulerTest.php.
|
protected |
Pull SPDX toolkit from github if not found.
Definition at line 253 of file schedulerTest.php.
| Fossology\Spdx\Test\SchedulerTest::runAndTestReportRDF | ( | $uploadId = 1 | ) |
Create RDF report and check it.
| int | $uploadId | Default 1 |
Definition at line 213 of file schedulerTest.php.
| Fossology\Spdx\Test\SchedulerTest::runJobFromJobque | ( | $uploadId, | |
| $jobId | |||
| ) |
Run jobs from queue.
| int | $uploadId | |
| int | $jobId |
Definition at line 175 of file schedulerTest.php.
| Fossology\Spdx\Test\SchedulerTest::testSpdxForNormalUploadtreeTable | ( | ) |
Test spdx agent for RDF.
Calls runAndTestReportRDF()
Definition at line 145 of file schedulerTest.php.
| Fossology\Spdx\Test\SchedulerTest::testSpdxForSpecialUploadtreeTable | ( | ) |
Test spdx agent for RDF.
Calls runAndTestReportRDF() with a special uploadtree table
Definition at line 157 of file schedulerTest.php.
|
protected |
Use SPDX toolkit to verify RDF file format.
| string | $filepath | File to verify |
Definition at line 236 of file schedulerTest.php.
|
private |
DBManager to use
Definition at line 50 of file schedulerTest.php.
|
private |
Group id to be used
Definition at line 41 of file schedulerTest.php.
|
private |
SchedulerTestRunnerCli object
Definition at line 58 of file schedulerTest.php.
|
private |
Test db
Definition at line 46 of file schedulerTest.php.
|
private |
TestInstaller object
Definition at line 54 of file schedulerTest.php.
|
private |
User id to be used
Definition at line 37 of file schedulerTest.php.