Fauxbus

Globus moves research data between universities, national labs, and HPC centers, and its API is how institutions script the access side of that: group rosters, permissions, transfer monitoring. There is no sandbox, emulator, or local mode. The Globus SDK has a testing module, but it’s canned responses inside a Python process — its own docs call the payloads “a best approximation” — so it can’t back a real socket. If your test opens one, you’re talking to production, with real credentials, against real groups that real people are in.

My data platform, Root Cellar, mirrors institutional rosters into Globus groups. I wanted that logic running in CI on every push, and I didn’t want a Globus tenancy in dev. Fauxbus is what I built instead: a standalone HTTP server that imitates the Globus API on the wire. Point globus-sdk at localhost:9800 and run your existing suite.

What it is

A fake, not a mock. A mock lives inside your test process and your code has to know about it. A fake listens on a port, so the client library you ship is the client library you test.

What it implements today (v0.6.0):

  • Groups: all fourteen GroupsClient methods of globus-sdk 4.8.1 and all eleven batch membership verbs.
  • Auth: the client-credentials grant, token introspection and revocation, and the OIDC authorization-code flow, so a real identity broker can sign in a seeded test user. I tested the broker path against Keycloak 26.0.
  • The Globus login, as of 0.5.0: native apps signing in with PKCE and no secret, refresh tokens, and identity lookups. An unmodified Globus-login app runs its whole login against Fauxbus with only its configuration changed.
  • Transfer task monitoring: the three endpoint_manager_* calls a service uses to watch other people’s transfers. No bytes move — a task is bookkeeping.
  • Guest collections and permissions, as of 0.6.0: a GCS Manager for each seeded endpoint, guest collections, and Transfer’s access rules. A test can submit a person’s transfer, and Fauxbus allows or refuses it from the guest collection’s permissions, resolved through that person’s groups and their parent groups.

0.5.0 also added fauxbus.testing, an in-process harness and pytest fixture, for suites that would rather not run a container.

Anything it doesn’t implement returns a loud 501 with a pointer to file an issue. It never returns a silent wrong answer.

Failing on purpose

The useful part is controlled failure. Everything test-harness-shaped lives under /_fauxbus/, a prefix no Globus API will claim:

curl -X POST localhost:9800/_fauxbus/failures   -d '{"path": "/v2/groups/*", "status": 429, "times": 1}'

That arms one 429 on the next matching request. One of the conformance tests arms it, calls get_my_groups() through the unmodified SDK, and checks that the SDK’s own retry layer absorbs it.

The control plane also dumps the whole world as JSON for assertions and resets it between tests, restoring the seed file byte-for-byte. Time is a logical clock that only moves when a test POSTs to /_fauxbus/tick. There is no uuid4 in the codebase — ids are uuid5 hashes with a counter held in world state — so the Nth group has the same UUID locally and in CI.

Every response shape carries a truth grade: recorded (matches a fixture in the SDK), documented (stated in Globus docs but not seen on the wire), or provisional (my best inference). Provisional shapes are marked PROVISIONAL in the code — 85 marked lines today, up from 45 at 0.4.0, mostly from the new guest-collection surface — and tracked as open obligations. There is no Globus tenancy to record against, so that number can’t drop to zero yet.

Size

I checked these against the repo and a local run:

  • 84 commits, 2026-07-30 to 2026-11-10. First tagged release (v0.1.0) came six days in; eight tags so far, v0.1.0 through v0.6.0.
  • About 9,600 lines of Python in src/ (over half of it world.py, the state model) and about 7,500 lines of tests.
  • 418 tests at the 0.6.0 tag, 53 of them through the real globus-sdk 4.8.1.
  • A 2,859-line design spec, SPEC.md, with a changelog entry per version.
  • Zero runtime dependencies. The container image is Python’s Alpine base plus one stdlib-only wheel, and it carries a CycloneDX SBOM generated from a clean virtualenv. The SBOM lists fauxbus and pip.

How it’s used in CI

Root Cellar’s dev stack runs Fauxbus as a sibling container next to Keycloak and installs it from PyPI at a pinned version. Its tests drive the real SDK against the fake, including the Transfer watcher path, before the 0.4.0 tag existed.

Fauxbus’s own pipeline (Woodpecker) runs on every push:

  • lint and the full suite on Python 3.11, 3.12, and 3.13, with a flag that turns a missing globus-sdk into a hard error
  • a wheel build, then a container build with a boot check and an SBOM assertion
  • a grype scan that fails on anything Medium or above that isn’t individually acknowledged with a package version and a reason
  • a PyPI publish on tag push, behind a guard that refuses a tag pointing at a .dev0 version

Two things that went wrong

A green suite that tested nothing. The conformance file starts with pytest.importorskip("globus_sdk"). With the SDK missing, that deletes the whole file and the run reports 48 passed, 1 skipped. Green, with no SDK tested. The fix is an environment variable that CI sets, which turns the missing import into a collection error.

Four methods nobody had driven through the SDK. Before the first tag, the audit found that four of the fourteen GroupsClient methods only had hand-written HTTP tests. Those prove my guess about the endpoint, not the SDK’s version of it. We read the request-building code out of the installed wheel and wrote conformance tests against that. All four passed first try, but I’d been lucky rather than right, and the check is now a CI gate.

Built with Claude

The code was written by Claude agents running on Manifest, my multi-agent harness. 83 of the 84 commits carry a Claude co-author trailer. One agent wrote the founding spec, another ran the project (CI, releases, the pre-tag audit), and the Root Cellar agent consumed the release and reported back. I set the requirements, chose the license and release conditions, and reviewed.

Status

Published on PyPI as 0.6.0 (MIT, classified Pre-Alpha) and used as a dev and CI fixture by one consumer, Root Cellar. It has no other users that I know of. Root Cellar asked for the guest-collection work in 0.6.0, but its pins are still at 0.4.0; moving them is its next step. Provisional response shapes remain, and the Transfer data plane is out of scope on purpose — Fauxbus will fake the API and never the byte movement. The main branch is on the 0.7.0 dev line.

pipx install fauxbus
fauxbus serve --port 9800

It is not affiliated with Globus or the University of Chicago. It imitates publicly documented wire behavior for local testing and contains none of their code.