FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\Report\Test\SchedulerTest Class Reference

Test for unified report. More...

Inheritance diagram for Fossology\Report\Test\SchedulerTest:
Inheritance graph
Collaboration diagram for Fossology\Report\Test\SchedulerTest:
Collaboration graph

Public Member Functions

 setUp ()
 Setup test env.
 
 tearDown ()
 Tear down test env.
 
 testReport ()
 Test report agent. 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.
 

Private Attributes

 $userId = 2
 
 $groupId = 2
 
 $testDb
 
 $dbManager
 
 $testInstaller
 
 $runnerCli
 

Detailed Description

Test for unified report.

Definition at line 30 of file schedulerTest.php.

Member Function Documentation

◆ testReport()

Fossology\Report\Test\SchedulerTest::testReport ( )

Test report agent.

Test:
  1. Generate report an upload
  2. Check if the DB is updated with new value
  3. Check if report file is created
  4. Check if report file size is close to test report
Todo:
Generate the test file and fix the test case

Definition at line 142 of file schedulerTest.php.

Member Data Documentation

◆ $dbManager

DbManager Fossology\Report\Test\SchedulerTest::$dbManager
private

Db Manager object

Definition at line 48 of file schedulerTest.php.

◆ $groupId

int Fossology\Report\Test\SchedulerTest::$groupId = 2
private

Group id to be used

Definition at line 39 of file schedulerTest.php.

◆ $runnerCli

SchedulerTestRunnerCli Fossology\Report\Test\SchedulerTest::$runnerCli
private

The CLI interface for scheduler

Definition at line 56 of file schedulerTest.php.

◆ $testDb

TestPgDb Fossology\Report\Test\SchedulerTest::$testDb
private

Test db

Definition at line 44 of file schedulerTest.php.

◆ $testInstaller

TestInstaller Fossology\Report\Test\SchedulerTest::$testInstaller
private

Test installer object

Definition at line 52 of file schedulerTest.php.

◆ $userId

int Fossology\Report\Test\SchedulerTest::$userId = 2
private

User id to be used

Definition at line 35 of file schedulerTest.php.


The documentation for this class was generated from the following file: