Help us shape the future of Go! Take the 2026 Go Developer Survey

testing

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

trusts unit tests

Index

Constants

View Source
const CreateRequest = `` /* 420-byte string literal not displayed */
View Source
const CreateResponse = `` /* 712-byte string literal not displayed */

Variables

This section is empty.

Functions

func HandleCreateTokenWithTrustID

func HandleCreateTokenWithTrustID(t *testing.T, options tokens.AuthOptionsBuilder, requestJSON string)

HandleCreateTokenWithTrustID verifies that providing certain AuthOptions and Scope results in an expected JSON structure.

func HandleCreateTrust

func HandleCreateTrust(t *testing.T)

HandleCreateTrust creates an HTTP handler at `/OS-TRUST/trusts` on the test handler mux that tests trust creation.

func HandleDeleteTrust

func HandleDeleteTrust(t *testing.T)

HandleDeleteUserSuccessfully creates an HTTP handler at `/users` on the test handler mux that tests user deletion.

Types

This section is empty.

Jump to

Keyboard shortcuts

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