fixtures

package
v4.2.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const SAMLOktaAuthRequestID = `_4d84cad1-1c61-4e4f-8ab6-1358b8d0da77`
View Source
const SAMLOktaAuthnResponseXML = `` /* 7629-byte string literal not displayed */
View Source
const SAMLOktaCertPEM = `` /* 1318-byte string literal not displayed */
View Source
const SAMLOktaConnectorV2 = `` /* 2657-byte string literal not displayed */
View Source
const SAMLOktaSSO = `https://dev-813354.oktapreview.com/app/gravitationaldev813354_teleportsaml_1/exkafftca6RqPVgyZ0h7/sso/saml`
View Source
const SigningCertPEM = `` /* 1158-byte string literal not displayed */
View Source
const SigningKeyPEM = `` /* 1674-byte string literal not displayed */
View Source
const UUID = "11111111-1111-1111-1111-111111111111"

UUID is the unique identifier used in tests

View Source
const UserCertificateLegacy = `` /* 1325-byte string literal not displayed */

UserCertificateLegacy is a SSH user certificate in the old legacy format.

View Source
const UserCertificateStandard = `` /* 1461-byte string literal not displayed */

UserCertificateRolesAndTraits is a SSH user certificate in the standard format with roles "admin" and traits "logins": []string{"foo"}.

Variables

View Source
var PEMBytes = map[string][]byte{
	"ecdsa": []byte(`-----BEGIN EC PRIVATE KEY-----
MHcCAQEEINGWx0zo6fhJ/0EAfrPzVFyFC9s18lBt3cRoEDhS3ARooAoGCCqGSM49
AwEHoUQDQgAEi9Hdw6KvZcWxfg2IDhA7UkpDtzzt6ZqJXSsFdLd+Kx4S3Sx4cVO+
6/ZOXRnPmNAlLUqjShUsUBBngG0u2fqEqA==
-----END EC PRIVATE KEY-----`),
	"rsa": []byte(`-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAz1MArBKUGR4pHEwGS8PC6buJcjY7IHd5E8N7bDezVlmkZhz3
2bMLCkKpoHGrcgL5UmiyTjcMZkfp/mVVkqGGQo+7ufiSbrUMgWhXpy0JL+ec2THY
9Q2LTF4VXE5Q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X9JAkFKu5HQKBgQDMavaI7wPP1I9lcxFEyPi8HWmfwGLzHhqQbNVG
gQx9haKV4PbjHtbx5uMF089FIacyLnjWaP/ydH6US9IIZ2ohTPjC8g876NenRCZd
MHeDg2Bs7/XZsIrn6vo7kXmQSoQKA8O2E7rYSigUayBKa/+5thbnjKlEP+slBzmp
1zVRrQKBgHmGNSOpSuQiHRn9YuzZ/h5dX8jCLf+wHJzymCC1wVur8IxJjhhSuOIp
7JPquig/B6L2pNoxPa41VDGawQjJY5m4l3ap/oJj61HBB+Auf29BWXqg7V7B7XMB
NFJgTFxC2o3mVBkQ/s6FeDl62hpMheCuO6jRYbZjsM2tUeAKORws
-----END RSA PRIVATE KEY-----`),
}

Functions

func DeepCompare

func DeepCompare(c *check.C, a, b interface{})

DeepCompare uses gocheck DeepEquals but provides nice diff if things are not equal

func ExpectAccessDenied

func ExpectAccessDenied(c *check.C, err error)

ExpectAccessDenied expects error to be access denied

func ExpectAlreadyExists

func ExpectAlreadyExists(c *check.C, err error)

ExpectAlreadyExists expects already exists error

func ExpectBadParameter

func ExpectBadParameter(c *check.C, err error)

ExpectBadParameter expects bad parameter error

func ExpectCompareFailed

func ExpectCompareFailed(c *check.C, err error)

ExpectCompareFailed expects compare failed error

func ExpectConnectionProblem

func ExpectConnectionProblem(c *check.C, err error)

ExpectConnectionProblem expects connection problem error

func ExpectNotFound

func ExpectNotFound(c *check.C, err error)

ExpectNotFound expects not found error

Types

This section is empty.

Jump to

Keyboard shortcuts

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