Documentation
¶
Overview ¶
Package circleci mocks the CircleCI API v2 and CircleCI's OAuth issuer on one server: DEVCTL_CIRCLECI_API_URL is the server's URL plus APIPrefix, the path circleci.com serves the API under, and DEVCTL_CIRCLECI_OAUTH_URL is the server's URL. Every response comes from the scenario's route sequences, keyed by the full path ("GET /api/v2/project/gh/owner/repo/pipeline").
Index ¶
Constants ¶
View Source
const APIPrefix = "/api/v2"
APIPrefix is the path the API v2 lives under.
Variables ¶
View Source
var NotFound = sequence.Response{ Status: http.StatusNotFound, Body: map[string]any{"message": "Not Found"}, }
NotFound is what an unscripted route answers, the way circleci.com does.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.