ifw-ccf  2.0.0
Functions | Variables
test_utils Namespace Reference

Functions

def redis_get (port, node)
 Read the value of a key from the associated Redis DB. More...
 
def oldb_check_val_larger (port, key, value, timeout)
 
def send_cmd (uri, request, payload, timeout)
 Execute the client as a function. More...
 
def wait_for_state (uri, state, timeout)
 Wait for the given state with the given timeout(s). More...
 
def create_dataroot (directory)
 Create the DATAROOT directory. More...
 
def check_verify_fits_file (fits_file)
 Check and verify the given FITS file. More...
 
def extract_rec_status_property (rec_status, property)
 Extract a specific feature from the RecStatus (YAML) ASCII dump. More...
 
def check_fits_cube_gen_help_page (option)
 Generate and check the command line help-page provided by ccfFitsCubeGen. More...
 
def invoke_fits_cube_gen_check (size, noise, magnitude, data_type, nb_of_images, max_shift_per_image, max_total_shift, output_file)
 Invoke the tool and check the generated file. More...
 

Variables

def val = oldb_check_val_larger(8989, 'TestCcf2.statistics.CcfProc1Pub3Thr.frame_count', 10)
 

Function Documentation

◆ check_fits_cube_gen_help_page()

def test_utils.check_fits_cube_gen_help_page (   option)

Generate and check the command line help-page provided by ccfFitsCubeGen.

◆ check_verify_fits_file()

def test_utils.check_verify_fits_file (   fits_file)

Check and verify the given FITS file.

◆ create_dataroot()

def test_utils.create_dataroot (   directory)

Create the DATAROOT directory.

◆ extract_rec_status_property()

def test_utils.extract_rec_status_property (   rec_status,
  property 
)

Extract a specific feature from the RecStatus (YAML) ASCII dump.

◆ invoke_fits_cube_gen_check()

def test_utils.invoke_fits_cube_gen_check (   size,
  noise,
  magnitude,
  data_type,
  nb_of_images,
  max_shift_per_image,
  max_total_shift,
  output_file 
)

Invoke the tool and check the generated file.

Parameters corresponds to the command line options.

◆ oldb_check_val_larger()

def test_utils.oldb_check_val_larger (   port,
  key,
  value,
  timeout 
)

◆ redis_get()

def test_utils.redis_get (   port,
  node 
)

Read the value of a key from the associated Redis DB.

◆ send_cmd()

def test_utils.send_cmd (   uri,
  request,
  payload,
  timeout 
)

Execute the client as a function.

◆ wait_for_state()

def test_utils.wait_for_state (   uri,
  state,
  timeout 
)

Wait for the given state with the given timeout(s).

Variable Documentation

◆ val

def test_utils.val = oldb_check_val_larger(8989, 'TestCcf2.statistics.CcfProc1Pub3Thr.frame_count', 10)