FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
Fossology\DeciderJob\Test\SchedulerTest Class Reference

Test interactions between scheduler and agent. More...

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

Public Member Functions

 testDeciderMockedScanWithTwoEventAndNoAgentShouldMakeADecision ()
 
 testDeciderRealScanWithTwoEventAndNoAgentShouldMakeADecision ()
 
 testDeciderMockScanWithNoEventsAndOnlyNomosShouldNotMakeADecision ()
 
 testDeciderRealScanWithNoEventsAndOnlyNomosShouldNotMakeADecision ()
 
 testDeciderScanWithTwoEventAndNoAgentShouldMakeADecision ()
 
 testDeciderMockedScanWithForceDecision ()
 
 testDeciderRealScanWithForceDecision ()
 

Protected Member Functions

 setUp ()
 Setup the objects, database and repository.
 
 tearDown ()
 Destroy objects, database and repository.
 

Private Member Functions

 setUpRepo ()
 Setup test repository.
 
 rmRepo ()
 Destroy test repository.
 
 setUpTables ()
 Create test tables required by agent.
 
 getHeartCount ($output)
 Get the heart count value from the agent output. More...
 
 runnerDeciderScanWithNoEventsAndOnlyNomosShouldNotMakeADecision ($runner)
 run decider with no events
 

Private Attributes

 $testDb
 
 $dbManager
 
 $testInstaller
 
 $licenseDao
 
 $clearingDao
 
 $clearingDecisionProcessor
 
 $agentLicenseEventProcessor
 
 $uploadDao
 
 $uploadPermDao
 
 $highlightDao
 
 $runnerCli
 
 $runnerMock
 

Detailed Description

Test interactions between scheduler and agent.

Definition at line 52 of file schedulerTest.php.

Member Function Documentation

Fossology\DeciderJob\Test\SchedulerTest::getHeartCount (   $output)
private

Get the heart count value from the agent output.

Parameters
string$outputOutput from agent
Returns
int Heart count value, -1 on failure

Definition at line 161 of file schedulerTest.php.

Fossology\DeciderJob\Test\SchedulerTest::testDeciderMockedScanWithForceDecision ( )

Functional

Test:
  1. Insert two clearing events
  2. Run DeciderJobAgent with force rule Mock
  3. Check for decisions (should exist)
  4. Check if events still exists
  5. Check if new event is created

Definition at line 390 of file schedulerTest.php.

Fossology\DeciderJob\Test\SchedulerTest::testDeciderMockedScanWithTwoEventAndNoAgentShouldMakeADecision ( )

Functional

Test:
  1. Insert few clearing events
  2. Run DeciderJobAgent Mock
  3. Check for decisions (should exist)
  4. Check if events still exists

Definition at line 180 of file schedulerTest.php.

Fossology\DeciderJob\Test\SchedulerTest::testDeciderMockScanWithNoEventsAndOnlyNomosShouldNotMakeADecision ( )

Functional

Test:
  1. Create findings with nomos
  2. Run DeciderJobAgent Mock
  3. Check for decisions (should not be empty)

Definition at line 250 of file schedulerTest.php.

Fossology\DeciderJob\Test\SchedulerTest::testDeciderRealScanWithForceDecision ( )

Functional

Test:
  1. Insert two clearing events
  2. Run DeciderJobAgent with force rule Cli
  3. Check for decisions (should exist)
  4. Check if events still exists
  5. Check if new event is created

Definition at line 404 of file schedulerTest.php.

Fossology\DeciderJob\Test\SchedulerTest::testDeciderRealScanWithNoEventsAndOnlyNomosShouldNotMakeADecision ( )

Functional

Test:
  1. Create findings with nomos
  2. Run DeciderJobAgent Cli
  3. Check for decisions (should not be empty)

Definition at line 262 of file schedulerTest.php.

Fossology\DeciderJob\Test\SchedulerTest::testDeciderRealScanWithTwoEventAndNoAgentShouldMakeADecision ( )

Functional

Test:
  1. Insert few clearing events
  2. Run DeciderJobAgent Cli
  3. Check for decisions (should exist)
  4. Check if events still exists

Definition at line 193 of file schedulerTest.php.

Fossology\DeciderJob\Test\SchedulerTest::testDeciderScanWithTwoEventAndNoAgentShouldMakeADecision ( )
Test:
  1. Insert two clearing events
  2. Run DeciderJobAgent

Definition at line 306 of file schedulerTest.php.


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