2022-03-18 18:07:08 +00:00
|
|
|
import { Provisioner, Organization, Project, Workspace, UserResponse } from "../api/types"
|
2022-01-26 00:36:26 +00:00
|
|
|
|
2022-03-18 18:07:08 +00:00
|
|
|
export const MockSessionToken = { session_token: "my-session-token" }
|
|
|
|
|
|
|
|
export const MockAPIKey = { key: "my-api-key" }
|
|
|
|
|
|
|
|
export const MockUser: UserResponse = {
|
2022-01-26 00:36:26 +00:00
|
|
|
id: "test-user-id",
|
|
|
|
username: "TestUser",
|
|
|
|
email: "test@coder.com",
|
|
|
|
created_at: "",
|
|
|
|
}
|
|
|
|
|
|
|
|
export const MockProject: Project = {
|
|
|
|
id: "project-id",
|
|
|
|
created_at: "",
|
|
|
|
updated_at: "",
|
|
|
|
organization_id: "test-org",
|
|
|
|
name: "Test Project",
|
|
|
|
provisioner: "test-provisioner",
|
|
|
|
active_version_id: "",
|
|
|
|
}
|
|
|
|
|
|
|
|
export const MockProvisioner: Provisioner = {
|
|
|
|
id: "test-provisioner",
|
|
|
|
name: "Test Provisioner",
|
|
|
|
}
|
|
|
|
|
|
|
|
export const MockOrganization: Organization = {
|
|
|
|
id: "test-org",
|
|
|
|
name: "Test Organization",
|
|
|
|
created_at: "",
|
|
|
|
updated_at: "",
|
|
|
|
}
|
2022-01-26 03:50:31 +00:00
|
|
|
|
|
|
|
export const MockWorkspace: Workspace = {
|
|
|
|
id: "test-workspace",
|
|
|
|
name: "Test-Workspace",
|
|
|
|
created_at: "",
|
|
|
|
updated_at: "",
|
|
|
|
project_id: "project-id",
|
|
|
|
owner_id: "test-user-id",
|
|
|
|
}
|