testing

package
v1.0.22 Latest Latest
Warning

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

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

Documentation

Overview

tokens unit tests

Index

Constants

View Source
const TokenOutput = `` /* 2887-byte string literal not displayed */

TokenOutput is a sample response to a Token call.

Variables

View Source
var ExpectedProject = tokens.Project{
	Domain: domain,
	ID:     "a99e9b4e620e4db09a2dfb6e42a01e66",
	Name:   "admin",
}

ExpectedProject contains expected project extracted from token response.

View Source
var ExpectedRoles = []tokens.Role{role}

ExpectedRoles contains expected roles extracted from token response.

View Source
var ExpectedServiceCatalog = tokens.ServiceCatalog{
	Entries: []tokens.CatalogEntry{catalogEntry1, catalogEntry2},
}

ExpectedServiceCatalog contains expected service extracted from token response.

View Source
var ExpectedToken = tokens.Token{
	ID:        testTokenID,
	ExpiresAt: expectedTokenTime,
}
View Source
var ExpectedUser = tokens.User{
	Domain: domain,
	ID:     "0fe36e73809d46aeae6705c39077b1b3",
	Name:   "admin",
}

ExpectedUser contains expected user extracted from token response.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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