airgun.entities.webhook

Module Contents

Classes

WebhookEntity

ShowAllWebhooks

Navigate to All Webhooks screen.

AddNewWebhook

Navigate to Create Webhook page.

EditWebhook

Navigate to Edit Webhook page.

DeleteWebhook

Search for Webhook and confirm deletion in dialog.

class airgun.entities.webhook.WebhookEntity(browser)
endpoint_path = /webhooks
create(values)

Create new Webhook

Parameters

values – Parameters to be assigned to a Webhook, Name, Subscribe to, Target URL, Template and HTTP Method should be provided

delete(entity_name)

Delete corresponding Webhook

Parameters

entity_name (str) – name of the corresponding Webhook

search(entity_name)

Search for a specific Webhook

read(entity_name, widget_names=None)

Reads content of corresponding Webhook

Parameters

entity_name (str) – name of the corresponding Webhook

Returns

dict representing tabs, with nested dicts representing fields and values

update(entity_name, values)

Update existing Webhook

Parameters
  • entity_name (str) – name of the corresponding Webhook

  • values – parameters to be changed at Webhook

class airgun.entities.webhook.ShowAllWebhooks(obj, navigate_obj, logger=None)

Navigate to All Webhooks screen.

VIEW
step(*args, **kwargs)

Describes the work to be done to get to the destination after the prequisite is met.

This is a default and is generally overridden.

class airgun.entities.webhook.AddNewWebhook(obj, navigate_obj, logger=None)

Navigate to Create Webhook page.

VIEW
prerequisite
step(*args, **kwargs)

Describes the work to be done to get to the destination after the prequisite is met.

This is a default and is generally overridden.

class airgun.entities.webhook.EditWebhook(obj, navigate_obj, logger=None)

Navigate to Edit Webhook page.

Parameters

entity_name – name of the Webhook

VIEW
prerequisite(*args, **kwargs)

Describes a step that must be carried our prior to this one.

This often calls a previous navigate_to, often using one of the helpers, NavigateToSibling which will navigate to a given destination using the same object, or NavigateToAttribute which will navigate to a destination against an object describe by the attribute of the parent object.

This is a default and is generally overridden.

step(*args, **kwargs)

Describes the work to be done to get to the destination after the prequisite is met.

This is a default and is generally overridden.

class airgun.entities.webhook.DeleteWebhook(obj, navigate_obj, logger=None)

Search for Webhook and confirm deletion in dialog.

Parameters

entity_name – name of the Webhook

VIEW
prerequisite(*args, **kwargs)

Describes a step that must be carried our prior to this one.

This often calls a previous navigate_to, often using one of the helpers, NavigateToSibling which will navigate to a given destination using the same object, or NavigateToAttribute which will navigate to a destination against an object describe by the attribute of the parent object.

This is a default and is generally overridden.

step(*args, **kwargs)

Describes the work to be done to get to the destination after the prequisite is met.

This is a default and is generally overridden.