def already_installed_valid_config(request):
    """Returns a bundle configuration, using the name of the test function
    as the name of the bundle being installed.
    """
    return """\
---
cog_bundle_version: 4
name: {0}
description: a fake bundle for testing bundle installation in cogctl
version: 2.0.0
docker:
  image: mycompany/{0}
  tag: 2.0.0
commands:
  echo:
    executable: "/bundle/echo"
    description: Echoes what it's passed
    rules:
    - allow
""".format(request.function.__name__)