Documentation
¶
Overview ¶
Package fakews serves recorded Databricks API fixtures over httptest so the reader and contract can be tested end to end without a workspace.
Index ¶
Constants ¶
View Source
const ( WorkspaceID int64 = 1111 OtherWorkspaceID int64 = 2222 )
WorkspaceID is the fixture workspace's id; OtherWorkspaceID is a sibling workspace used for multi-bound securables.
Variables ¶
This section is empty.
Functions ¶
func NewStandalone ¶
NewStandalone returns the fake as an http.Handler for fakewsd.
Types ¶
type Route ¶
type Route struct {
Method string `json:"method"`
Path string `json:"path"`
Query map[string]string `json:"query,omitempty"`
Status int `json:"status,omitempty"`
File string `json:"file,omitempty"`
Body json.RawMessage `json:"body,omitempty"`
}
Route is one fixture endpoint. Query entries must all match; the most specific matching route wins.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
fakewsd
command
fakewsd serves the recorded fake workspace on a fixed port so terraform and datatf can be pointed at it during local end-to-end checks:
|
fakewsd serves the recorded fake workspace on a fixed port so terraform and datatf can be pointed at it during local end-to-end checks: |
Click to show internal directories.
Click to hide internal directories.