community.internal_test_tools.open_url_test_lookup (0.10.1) — lookup

Test plugin for the open_url test framework (DO NOT USE THIS!)

| "added in version" 0.3.0 of community.internal_test_tools"

Authors: Felix Fontein (@felixfontein)

Install collection

Install with ansible-galaxy collection install community.internal_test_tools:==0.10.1


Add to requirements.yml

  collections:
    - name: community.internal_test_tools
      version: 0.10.1

Description

B(DO NOT USE THIS)!

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Do a lookup
  ansible.builtin.debug:
    msg: "{{ lookup('community.internal_test_tools.open_url_test_lookup', 'https://example.com', method='GET', headers={'foo': 'bar'}) }}"

Inputs

    
data:
    description: Data to send (Base64 encoded).
    type: str

_terms:
    description: URLs to query.
    elements: str
    required: true
    type: list

method:
    default: GET
    description: HTTP method.
    type: str

headers:
    description: HTTP headers.
    type: dict

timeout:
    description:
    - Timeout in seconds
    type: float
    version_added: 0.7.0
    version_added_collection: community.internal_test_tools

url_password:
    description:
    - The password for use with HTTP Basic Authentication.
    type: str
    version_added: 0.7.0
    version_added_collection: community.internal_test_tools

url_username:
    description:
    - The username for use with HTTP Basic Authentication.
    type: str
    version_added: 0.7.0
    version_added_collection: community.internal_test_tools

force_basic_auth:
    description:
    - Force passing C(Authorization) header on the first request when O(url_username)
      and O(url_password) are used.
    type: bool
    version_added: 0.7.0
    version_added_collection: community.internal_test_tools

Outputs

_raw:
  contains:
    content:
      description: Content (Base64 encoded).
      sample: 1.2.3.4
      type: str
    headers:
      description: Headers.
      sample: {}
      type: dict
    status:
      description: HTTP status of request.
      sample: 200
      type: int
  description: Results of HTTP calls.
  elements: dict
  returned: success
  sample:
  - content: 1.2.3.4
    headers: {}
    status: 200
  type: list