waft.mark module

waft.mark.defect(jira_id: str, title: str, warning: str | None = None)

Marker to associate a JIRA defect with a test.

Parameters:
  • jira_id (str) – JIRA ID

  • title (str) – Defect title

  • warning (Optional[str]) – Custom message to log (in addition to the defect reference) when called dynamically

waft.mark.warp_consumer() MarkDecorator

Marker to indicate test is for consumer WARP.

waft.mark.warp_fresh_install() MarkDecorator

Marker to indicate test requires WARP to be freshly (re)installed before test begins.

waft.mark.warp_mdm_parameters(**kwargs) MarkDecorator

Marker to specify MDM configuration parameters for WARP Zero Trust.

Parameters:
  • **kwargs – specify any supported option and value as keyword arguments…

  • organization (str) – Name of the organization.

  • gateway_unique_id (Optional[str]) – Optional unique identifier for the gateway.

  • service_mode (str) – Operating mode of the service (defaults to ‘warp’).

  • onboarding (bool) – Whether onboarding is enabled (defaults to True).

  • switch_locked (bool) – Whether the switch is locked (defaults to False).

  • auto_connect (Optional[int]) – Auto-connect timeout in seconds, if applicable.

  • support_url (Optional[str]) – URL for customer support, if provided.

  • override_api_ep (Optional[str]) – Override default API endpoint, if provided.

  • override_doh_ep (Optional[str]) – Override default DNS over HTTPS endpoint, if provided.

  • override_warp_ep (Optional[str]) – Override default WARP endpoint, if provided.

  • unique_client_id (Optional[str]) – Unique client identifier, if provided.

  • display_name (Optional[str]) – Display name, if provided.

  • auth_client_id (Optional[str]) – Authentication client identifier, if provided. Set by TRM, by default.

  • auth_client_secret (Optional[str]) – Authentication client secret, if provided. Set by TRM, by default.

waft.mark.warp_uninstalled() MarkDecorator

Marker to indicate test requires WARP to be uninstalled before test begins.

waft.mark.warp_zero_trust(organization: str | None = None, dynamic: bool = False, enroll: Literal['token', 'identity', False] = 'token') MarkDecorator

Marker to indicate test is for WARP Zero Trust.

Parameters:
  • organization – Name of a static org for the test node to be enrolled in

  • dynamic – True to use a dynamically provisioned org, mutually exclusive to naming a static org (Default: False)

  • enroll – Method to use to enroll test node in given organization: service auth token (default), identity, or False (to not enroll)