def mk8s_test_config(tmpdir_factory):
    """Provides a mk8s test config

    Returns:
        str: the path to a json config file
    """

    filename = tmpdir_factory.mktemp('data').join('mk8s_config.json').strpath
    config = \
        """
{
  "pytest_zigzag_env_vars": {
    "BUILD_URL": null,
    "BUILD_NUMBER": null,
    "BUILD_ID": null,
    "NODE_NAME": null,
    "JOB_NAME": null,
    "BUILD_TAG": null,
    "JENKINS_URL": null,
    "EXECUTOR_NUMBER": null,
    "WORKSPACE": null,
    "CVS_BRANCH": null,
    "GIT_COMMIT": null,
    "GIT_URL": null,
    "GIT_BRANCH": null,
    "GIT_LOCAL_BRANCH": null,
    "GIT_AUTHOR_NAME": null,
    "GIT_AUTHOR_EMAIL": null,
    "BRANCH_NAME": null,
    "CHANGE_AUTHOR_DISPLAY_NAME": null,
    "CHANGE_AUTHOR": null,
    "CHANGE_BRANCH": null,
    "CHANGE_FORK": null,
    "CHANGE_ID": null,
    "CHANGE_TARGET": null,
    "CHANGE_TITLE": null,
    "CHANGE_URL": null,
    "JOB_URL": null,
    "NODE_LABELS": null,
    "PATH_TO_TEST_EXEC_DIR": null,
    "PWD": null,
    "STAGE_NAME": null
  }
}
"""  # noqa

    with open(filename, 'w') as f:
        f.write(config)

    return filename