##### SUMMARY

Support collection roles as integration test targets.

Now that https://github.com/ansible/ansible/issues/59462 has been merged, ansible-test can be updated to support running integration test targets that are collection roles.

The planned convention is to look for targets under `roles/test/` and allow use of target-specific plugins from `plugins/{plugin_type}/test/{target_name}/`.

##### ISSUE TYPE

Feature Idea

##### COMPONENT NAME

ansible-test

##### ADDITIONAL INFORMATION

This will allow integration test targets to be written using collections instead of pre-collection roles.
is_subdir,
    to_text,
    to_bytes,
)
from .data import (
    data_context,
)
MODULE_EXTENSIONS = '.py', '.ps1'
try:
    TCompletionTarget = t.TypeVar('TCompletionTarget', bound='CompletionTarget')
except AttributeError:
    TCompletionTarget = None  
try:
    TIntegrationTarget = t.TypeVar('TIntegrationTarget', bound='IntegrationTarget')
except AttributeError:
    TIntegrationTarget = None  
def find_target_completion(target_func, prefix):
    """
    :type target_func: () -> collections.Iterable[CompletionTarget]
    :type prefix: unicode
    :rtype: list[str]
    """
    try:
        targets = target_func()
        short = os.environ.get('COMP_TYPE') == '63'  
        matches = walk_completion_targets(targets, prefix, short)
        return matches
    except Exception as ex:  
        return [u'%s' % ex]
def walk_completion_targets(targets, prefix, short=False):