WireMock
populate_from_dir
Adds all mappings found in the passed folder
Below are the details and signature of the activity Python module.
Type | |
Module | chaoswm.utils |
Name | can_connect_to |
Return | boolean |
Usage
JSON
{
"name": "can-connect-to",
"type": "",
"provider": {
"type": "python",
"module": "chaoswm.utils",
"func": "can_connect_to",
"arguments": {
"host": "",
"port": 0
}
}
}
YAML
name: can-connect-to
provider:
arguments:
host: ""
port: 0
func: can_connect_to
module: chaoswm.utils
type: python
type: ""
Arguments
Name | Type | Default | Required | Title | Description |
---|---|---|---|---|---|
host | string | Yes | Hostname | WireMock hostname | |
port | integer | Yes | Port | WireMock port |
Signature
def can_connect_to(host: str, port: int) -> bool:
pass