Documentation
¶
Overview ¶
Package ascodetest is an in-memory Watchtower project API for the as-code tests: it follows the REST shapes of the kinds table (list pages, POST create, PUT/PATCH/DELETE by id or name).
Index ¶
Constants ¶
const Org = "org_test"
Org is the org id the fake serves for the org-scoped kinds.
const Project = "prj_test"
Project is the project id the fake serves.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
*httptest.Server
Calls []string
// Secrets are the check-secret values the API received.
Secrets []string
// contains filtered or unexported fields
}
Server is the fake; Calls records "METHOD path" lines.