FOSSology  4.4.0
Open Source License Compliance by Open Source Software
ft_cliDelagentTest Class Reference

test the delagent agent thru command line. More...

Inheritance diagram for ft_cliDelagentTest:
Inheritance graph
Collaboration diagram for ft_cliDelagentTest:
Collaboration graph

Public Member Functions

 testDelagentu ()
 test delagent -u More...
 
 testDelagentf ()
 test delagent -f More...
 
 testDelagentUpload ()
 test delagent -U 2 More...
 

Public Attributes

 $EXE_PATH = ""
 
 $PG_CONN
 
 $DB_COMMAND = ""
 
 $DB_NAME = ""
 
 $DB_CONF = ""
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 clean the env
 

Detailed Description

test the delagent agent thru command line.

Functional test delagent agent from cli

Definition at line 18 of file ft_cliDelagentTest.php.

Member Function Documentation

◆ testDelagentf()

ft_cliDelagentTest::testDelagentf ( )

test delagent -f

Test:
  1. Load test db
  2. Get a folder name
  3. Call delagent cli with -f flag
  4. Check if folder name matches

Definition at line 101 of file ft_cliDelagentTest.php.

◆ testDelagentu()

ft_cliDelagentTest::testDelagentu ( )

test delagent -u

Test:
  1. Prepare testdb.
  2. Get the Upload id and filename for a upload.
  3. Call delagent cli with -u flag
  4. Check if the upload id and filename matches.

the file is one executable file

Definition at line 65 of file ft_cliDelagentTest.php.

◆ testDelagentUpload()

ft_cliDelagentTest::testDelagentUpload ( )

test delagent -U 2

Test:
  1. Setup test db
  2. Call delagent cli with -U flag to delete an upload
  3. Check if the upload got deleted

Definition at line 135 of file ft_cliDelagentTest.php.


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