community.internal_test_tools.fetch_url_test_module (0.10.1) — module

Test module for fetch_url test framework (DO NOT USE THIS!)

| "added in version" 0.1.1 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: Does nothing
  community.internal_test_tools.fetch_url_test_module:
    call_sequence: []

Inputs

    
fail_me:
    default: false
    description: If set to V(true), fails the module.
    type: bool
    version_added: 0.3.0
    version_added_collection: community.internal_test_tools

set_changed:
    default: false
    description: If set to V(true), claims the module changed something.
    type: bool
    version_added: 0.3.0
    version_added_collection: community.internal_test_tools

call_sequence:
    description: List of HTTP calls to make.
    elements: dict
    required: true
    suboptions:
      data:
        description:
        - Data to send (Base64 encoded).
        - Mutually exclusive with O(call_sequence[].data_path).
        type: str
      data_path:
        description:
        - File to read data from.
        - Mutually exclusive with O(call_sequence[].data).
        type: path
        version_added: 0.3.0
        version_added_collection: community.internal_test_tools
      force_basic_auth:
        description:
        - Force passing C(Authorization) header on the first request when O(call_sequence[].url_username)
          and O(call_sequence[].url_password) are used.
        type: bool
        version_added: 0.7.0
        version_added_collection: community.internal_test_tools
      headers:
        description: HTTP headers.
        type: dict
      method:
        default: GET
        description: HTTP method.
        type: str
      timeout:
        description:
        - Timeout in seconds
        type: float
        version_added: 0.7.0
        version_added_collection: community.internal_test_tools
      url:
        description: The URL.
        required: true
        type: str
      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
    type: list

Outputs

call_results:
  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