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

test delagent cli More...

Inheritance diagram for ft_DelagentTest:
Inheritance graph
Collaboration diagram for ft_DelagentTest:
Collaboration graph

Public Member Functions

 upload_testdata ()
 upload testdata prepare testdata for delagent, upload one tar file and schedule all agents More...
 
 test_delagentu ()
 test delagent -u More...
 
 test_delagentu_wronguser ()
 test delagent -u with wrong user More...
 

Public Attributes

 $SYSCONF_DIR
 
 $DB_NAME
 
 $PG_CONN
 
 $DB_COMMAND
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 clean the env
 

Detailed Description

test delagent cli

Definition at line 16 of file ft_DelagentTest.php.

Member Function Documentation

◆ test_delagentu()

ft_DelagentTest::test_delagentu ( )

test delagent -u

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

Definition at line 105 of file ft_DelagentTest.php.

◆ test_delagentu_wronguser()

ft_DelagentTest::test_delagentu_wronguser ( )

test delagent -u with wrong user

Test:
  1. Get the Upload id and filename for a upload.
  2. Call delagent cli with -u flag but wrong user
  3. Check that upload id and filename should not match.

Definition at line 132 of file ft_DelagentTest.php.

◆ upload_testdata()

ft_DelagentTest::upload_testdata ( )

upload testdata prepare testdata for delagent, upload one tar file and schedule all agents

upload a tar file to one specified path

get upload id that you just upload for testing

Definition at line 27 of file ft_DelagentTest.php.


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