FOSSology  4.4.0
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 41 of file schedulerTest.php.

Member Function Documentation

◆ getHeartCount()

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 155 of file schedulerTest.php.

◆ testDeciderMockedScanWithForceDecision()

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

@group 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 384 of file schedulerTest.php.

◆ testDeciderMockedScanWithTwoEventAndNoAgentShouldMakeADecision()

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

@group 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 174 of file schedulerTest.php.

◆ testDeciderMockScanWithNoEventsAndOnlyNomosShouldNotMakeADecision()

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

@group Functional

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

Definition at line 244 of file schedulerTest.php.

◆ testDeciderRealScanWithForceDecision()

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

@group 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 398 of file schedulerTest.php.

◆ testDeciderRealScanWithNoEventsAndOnlyNomosShouldNotMakeADecision()

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

@group Functional

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

Definition at line 256 of file schedulerTest.php.

◆ testDeciderRealScanWithTwoEventAndNoAgentShouldMakeADecision()

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

@group 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 187 of file schedulerTest.php.

◆ testDeciderScanWithTwoEventAndNoAgentShouldMakeADecision()

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

Definition at line 300 of file schedulerTest.php.


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