testing

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

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

func HandleListTenantsSuccessfully(t *testing.T)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL