Documentation ¶
Overview ¶
tenants unit tests
Index ¶
Constants ¶
View Source
const ListOutput = `` /* 244-byte string literal not displayed */
ListOutput provides a single page of Tenant results.
Variables ¶
View Source
var BlueTeam = tenants.Tenant{ ID: "9876", Name: "Blue Team", Description: "The team that is blue", Enabled: false, }
BlueTeam is a Tenant fixture.
View Source
var ExpectedTenantSlice = []tenants.Tenant{RedTeam, BlueTeam}
ExpectedTenantSlice is the slice of tenants expected to be returned from ListOutput.
View Source
var RedTeam = tenants.Tenant{ ID: "1234", Name: "Red Team", Description: "The team that is red", Enabled: true, }
RedTeam is a Tenant fixture.
Functions ¶
func HandleListTenantsSuccessfully ¶
HandleListTenantsSuccessfully creates an HTTP handler at `/tenants` on the test handler mux that responds with a list of two tenants.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.