##### SUMMARY

Running tests on collections which have dependencies with the `--docker` option is not currently supported. Only the collection being tested is copied into the container.

All collections in the same collection root should be copied into the container. Support for dependencies in other collection roots will not be supported. It will be up to the user to make sure all the necessary dependencies are already installed in the same collection root. If unnecessary collections are present, those will be copied as well.

##### ISSUE TYPE

Feature Idea

##### COMPONENT NAME

ansible-test

"""Register the given payload callback."""
        self.payload_callbacks.append(callback)
def data_init():  
    """Initialize provider plugins."""
    provider_types = (
        'layout',
        'source',
    )
    for provider_type in provider_types:
        import_plugins('provider/%s' % provider_type)
    try:
        context = DataContext()
    except ProviderNotFoundForPath:
        options = [
            ' - an Ansible collection: {...}/ansible_collections/{namespace}/{collection}/',
        ]
        if ANSIBLE_SOURCE_ROOT:
            options.insert(0, ' - the Ansible source: %s/' % ANSIBLE_SOURCE_ROOT)
        raise ApplicationError('''The current working directory must be at or below:
%s
Current working directory: %s''' % ('\n'.join(options), os.getcwd()))
    return context
def data_context():  
    """Return the current data context."""
    try:
        return data_context.instance
    except AttributeError:
        data_context.instance = data_init()
        return data_context.instance