testing

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestAppConfig = map[string]interface{}{
	"app": map[string]interface{}{
		"name": "Rownd (dev)",
		"id":   "290167281732813315",
		"schema": map[string]interface{}{
			"email": map[string]interface{}{
				"display_name":             "Email",
				"type":                     "string",
				"data_category":            "pii_basic",
				"required":                 false,
				"owned_by":                 "user",
				"user_visible":             true,
				"revoke_after":             "1 month",
				"required_retention":       "none",
				"collection_justification": "This piece of personal data is needed to make your customer experience the best it can be. We do not resell this data.",
				"opt_out_warning":          "By turning off your e-mail, your account will no longer work as designed. You may not be able to log-in, get updates, or reset your password",
			},
		},
	},
}

TestAppConfig provides a mock app configuration for testing

Functions

func GenerateTestToken

func GenerateTestToken() (string, error)

GenerateTestToken creates a test JWT token for testing

func GetKeys

func GetKeys() (ed25519.PublicKey, ed25519.PrivateKey)

GetKeys returns the test key pair

Types

This section is empty.

Jump to

Keyboard shortcuts

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