def METHOD_NAME(is_v2, vaultkv, request):
    """
    Test ext_pillar functionality for KV v1/2
    """
    is_v2 = request.getfixturevalue(is_v2)
    vaultkv = request.getfixturevalue(vaultkv)
    with patch.dict(
        vault.__utils__,
        {"vault.is_v2": Mock(return_value=is_v2), "vault.make_request": vaultkv},
    ):
        ext_pillar = vault.ext_pillar("testminion", {}, "path=secret/path")
        vaultkv.assert_called_once_with("GET", "v1/" + is_v2["data"])
        assert "foo" in ext_pillar
        assert "metadata" not in ext_pillar
        assert "data" not in ext_pillar
        assert ext_pillar["foo"] == "bar"