Skip to content

fix: point two requests at the fixtures that make them reachable - #38

Merged
roncodes merged 1 commit into
mainfrom
fix/multi-org-driver-and-network
Aug 12, 2026
Merged

fix: point two requests at the fixtures that make them reachable#38
roncodes merged 1 commit into
mainfrom
fix/multi-org-driver-and-network

Conversation

@roncodes

Copy link
Copy Markdown
Member

Switch Driver Organization

It sent {{driver_id}} and {{organization_id}} — the driver Create a Driver made, who belongs to one organization, and the organization they are already in. switchOrganization rejects both conditions: "Driver is already on this organizations session."

It now uses a driver that belongs to more than one, switching to the other.

The description now states the precondition, which was previously invisible in the published reference: the driver must already belong to the target organization, and it must not be their current one. A driver created through POST /drivers belongs to a single organization, so the example says why it uses a different one.

List Network Stores

It authenticated with the collection's store key. The endpoint requires a network session and rejects a store key with "Stores cannot have stores!". It now sends a network key via a request-level Authorization header, and the description explains the requirement.

Both variables come from fixtures the contract run seeds — neither a second-organization membership nor a network can be created through the public API (fleetbase/fleetbase#603).

🤖 Generated with Claude Code

Switch Driver Organization sent {{driver_id}} and {{organization_id}}.
  That is the driver Create a Driver made — who belongs to one organization — and
  the organization they are already in. switchOrganization rejects both: "Driver
  is already on this organizations session." It now uses a driver that belongs to
  more than one, switching to the other.

  The description states the precondition, which was previously invisible: the
  driver must already belong to the target, and it must not be their current one.

List Network Stores authenticated with the store key.
  The endpoint requires a NETWORK session and rejects a store key with "Stores
  cannot have stores!". It now sends a network key, and says so.

Both variables come from fixtures the contract run seeds, because neither a
second-organization membership nor a network can be created through the public
API (fleetbase/fleetbase#603).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@roncodes
roncodes merged commit 2f5a669 into main Aug 12, 2026
1 check passed
@roncodes
roncodes deleted the fix/multi-org-driver-and-network branch August 12, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant