def METHOD_NAME():
    """
    Test salt.modules.vault.read_secret function for v2 of kv secret backend
    with specified key
    """
    # given path secrets/mysecret generate v2 output
    version = {
        "v2": True,
        "data": "secrets/data/mysecret",
        "metadata": "secrets/metadata/mysecret",
        "type": "kv",
    }
    mock_version = MagicMock(return_value=version)
    mock_vault = MagicMock()
    mock_vault.return_value.status_code = 200
    v2_return = {
        "data": {
            "data": {"akey": "avalue"},
            "metadata": {
                "created_time": "2018-10-23T20:21:55.042755098Z",
                "destroyed": False,
                "version": 13,
                "deletion_time": "",
            },
        }
    }
    mock_vault.return_value.json.return_value = v2_return
    with patch.dict(vault.__utils__, {"vault.make_request": mock_vault}), patch.dict(
        vault.__utils__, {"vault.is_v2": mock_version}
    ):
        vault_return = vault.read_secret("/secret/my/secret", "akey")
    assert vault_return == "avalue"