def METHOD_NAME(mutable_config, linux_os, monkeypatch, tmpdir):
    """Test that `spack bootstrap mirror` creates a folder that can be ingested by
    `spack bootstrap add`. Here we don't download data, since that would be an
    expensive operation for a unit test.
    """
    old_create = spack.mirror.create
    monkeypatch.setattr(spack.mirror, "create", lambda p, s: old_create(p, []))
    monkeypatch.setattr(spack.spec.Spec, "concretized", lambda p: p)
    # Create the mirror in a temporary folder
    compilers = [
        {
            "compiler": {
                "spec": "gcc@12.0.1",
                "operating_system": "{0.name}{0.version}".format(linux_os),
                "modules": [],
                "paths": {
                    "cc": "/usr/bin",
                    "cxx": "/usr/bin",
                    "fc": "/usr/bin",
                    "f77": "/usr/bin",
                },
            }
        }
    ]
    with spack.config.override("compilers", compilers):
        _bootstrap("mirror", str(tmpdir))
    # Register the mirror
    metadata_dir = tmpdir.join("metadata", "sources")
    _bootstrap("add", "--trust", "test-mirror", str(metadata_dir))
    assert _bootstrap.returncode == 0
    assert any(m["name"] == "test-mirror" for m in spack.bootstrap.core.bootstrapping_sources())