<commit_before>---

# Test the bigip_virtual_server module
#
# Running this playbook assumes that you have a BIG-IP installation at the
# ready to receive the commands issued in this Playbook.
#
# This module will run tests against a BIG-IP host to verify that the
# bigip_virtual_server module behaves as expected.
#
# Usage:
#
#    ansible-playbook -i notahost, playbooks/bigip_virtual_server.yaml
#
# Examples:
#
#    Run all tests on the bigip_virtual_server module
#
#    ansible-playbook -i notahost, playbooks/bigip_virtual_server.yaml
#

- name: Test the bigip_virtual_server module
  hosts: "f5-test[0]"
  connection: local
  any_errors_fatal: true

  vars:
    limit_to: '*'
    __metadata__:
      version: 1.0
      tested_platforms:
        - 11.6.0
        - 12.0.0
      callgraph_exclude:
        - pycallgraph.*

        # Ansible related
        - ansible.module_utils.basic.AnsibleModule.*
        - ansible.module_utils.basic.*
        - ansible.module_utils.parsing.*
        - ansible.module_utils._text.*
        - ansible.module_utils.six.*

  environment:
    F5_SERVER: "{{ ansible_host }}"
    F5_USER: "{{ bigip_username }}"
    F5_PASSWORD: "{{ <PASSWORD> }}"
    F5_SERVER_PORT: "{{ bigip_port }}"
    F5_VALIDATE_CERTS: "{{ validate_certs }}"

  roles:
    - bigip_virtual_server<commit_msg>updating vs playbook with ability to test with different connections<commit_after>---

# Test the bigip_virtual_server module
#
# Running this playbook assumes that you have a BIG-IP installation at the
# ready to receive the commands issued in this Playbook.
#
# This module will run tests against a BIG-IP host to verify that the
# bigip_virtual_server module behaves as expected.
#
# Usage:
#
#    ansible-playbook -i notahost, playbooks/bigip_virtual_server.yaml
#
# Examples:
#
#    Run all tests on the bigip_virtual_server module
#
#    ansible-playbook -i notahost, playbooks/bigip_virtual_server.yaml
#

- name: Metadata of bigip_virtual_server
  hosts: localhost
  connection: local

  vars:
    __metadata__:
      version: 1.1
      tested_versions:
        - 12.0.0
        - 12.1.0
        - 12.1.0-hf1
        - 12.1.0-hf2
        - 12.1.1
        - 12.1.1-hf1
        - 12.1.1-hf2
        - 12.1.2
        - 12.1.2-hf1
        - 13.0.0
      tested_platforms:
        - NA
      supported_harnesses:
        - NA
      coding_standards: v3
      callgraph_exclude:
        - pycallgraph.*

        # Ansible related
        - ansible.module_utils.basic.AnsibleModule.*
        - ansible.module_utils.basic.*
        - ansible.module_utils.parsing.*
        - ansible.module_utils._text.*
        - ansible.module_utils.six.*

- name: Test the bigip_virtual_server module - Environment
  hosts: "f5-test[0]"
  connection: local
  any_errors_fatal: true

  environment:
    F5_SERVER: "{{ ansible_host }}"
    F5_USER: "{{ bigip_username }}"
    F5_PASSWORD: "{{ <PASSWORD> }}"
    F5_SERVER_PORT: "{{ bigip_port }}"
    F5_VALIDATE_CERTS: "{{ validate_certs }}"

  tasks:
    - name: Include role - Environment
      import_role:
        name: bigip_virtual_server
        tasks_from: environment.yaml
      tags:
        - environment

- name: Test the bigip_virtual_server module - Provider
  hosts: "f5-test[0]"
  connection: local
  any_errors_fatal: true

  tasks:
    - name: Include role - Environment
      import_role:
        name: bigip_virtual_server
        tasks_from: provider.yaml
      tags:
        - provider

- name: Test the bigip_virtual_server module - Args
  hosts: "f5-test[0]"
  connection: local
  any_errors_fatal: true

  tasks:
    - name: Include role - Args
      import_role:
        name: bigip_virtual_server
        tasks_from: args.yaml
      tags:
        - args
{'fraction_non_alphanumeric': 0.09553117473909553, 'fraction_numerical': 0.020337168852020335, 'mean_word_length': 2.4804469273743015, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1448439', 'n_tokens_mistral': 1299, 'n_tokens_neox': 1237, 'n_words': 292}