actionWiremock

populate_from_dir

Adds all mappings found in the passed folder

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaoswm.actions
Namepopulate_from_dir
Returnlist

Usage

JSON

{
  "name": "populate-from-dir",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaoswm.actions",
    "func": "populate_from_dir"
  }
}

YAML

name: populate-from-dir
provider:
  func: populate_from_dir
  module: chaoswm.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
dirstring”.”NoDirectoryDirectory from which load and apply delays from

Returns the list of ids of the mappings added

Signature

def populate_from_dir(
        dir: str = '.',
        configuration: Dict[str, Dict[str, str]] = None) -> List[Any]:
    pass