##### SUMMARY

Add integration tests for the varnames lookup plugin.

##### ISSUE TYPE

Feature Idea

##### COMPONENT NAME

varnames lookup plugin

description: List of Python regex patterns to search for in variable names.
        required: True
"""
EXAMPLES = """
- name: List variables that start with qz_
  debug: msg="{{ lookup('varnames', '^qz_.+')}}"
  vars:
    qz_1: hello
    qz_2: world
    qa_1: "I won't show"
    qz_: "I won't show either"
- name: Show all variables
  debug: msg="{{ lookup('varnames', '.+')}}"
- name: Show variables with 'hosts' in their names
  debug: msg="{{ lookup('varnames', 'hosts')}}"
- name: Find several related variables that end specific way
  debug: msg="{{ lookup('varnames', '.+_zone$', '.+_location$') }}"
"""
RETURN = """
_value:
  description:
    - List of the variable names requested.
  type: list
"""
import re
from ansible.errors import AnsibleError
from ansible.module_utils._text import to_native
from ansible.module_utils.six import string_types
from ansible.plugins.lookup import LookupBase
class LookupModule(LookupBase):