Ejemplo n.º 1
0
def dynamic_create_audit_with_control(request):
    """Create Program and Control, map Control to Program, create Audit
  under Program and dynamically make manipulations on Control (update,
  delete, ...) via REST API according to fixturename. Fixturename is indirect
  parameter that get from 'request.param' and have to be string or boolean.
  Return: lib.entities.entity.AssessmentTemplateEntity
  """
    yield (dynamic_fixtures.generate_snapshots_fixtures(request.param)
           if request.param else None)
Ejemplo n.º 2
0
def dynamic_create_audit_with_control(request):
  """Create Program and Control, map Control to Program, create Audit
  under Program and dynamically make manipulations on Control (update,
  delete, ...) via REST API according to fixturename. Fixturename is indirect
  parameter that get from 'request.param' and have to be string or boolean.
  Return: lib.entities.entity.AssessmentTemplateEntity
  """
  yield (dynamic_fixtures.generate_snapshots_fixtures(request.param) if
         request.param else None)
Ejemplo n.º 3
0
def _snapshots_fixtures(fixturename):
    """Generate snapshot fixtures used generation of common fixtures and return
  dictionary of executed common fixtures in scope of snapshot fixtures.
  """
    return dynamic_fixtures.generate_snapshots_fixtures(fixturename)
Ejemplo n.º 4
0
def _snapshots_fixtures(fixturename):
  """Generate snapshot fixtures used generation of common fixtures and return
  dictionary of executed common fixtures in scope of snapshot fixtures.
  """
  return dynamic_fixtures.generate_snapshots_fixtures(fixturename)