def METHOD_NAME(gk8s_config, monkeypatch):
    monkeypatch.setattr(
        "kubernetes.client.CoreV1Api.read_namespaced_config_map",
        lambda cls, n, ns: KubeResult(data={"foo": "bar"})
    )
    monkeypatch.setattr(
        "kubernetes.client.CoreV1Api.patch_namespaced_config_map",
        lambda cls, n, ns, body: KubeResult(data={"foo": "bar"})
    )
    assert gk8s_config.set_all({"foo": "bar"}) is True