tutils

package
v0.0.0-...-3fdbec2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthString0 = GetCompleteBase64Header("000000")

org_id 000000

View Source
var AuthString0WithoutEntitlements = GetBase64HeaderWithoutEntitlements("000000")
View Source
var AuthString1 = GetCompleteBase64Header("000001")

org_id 000001

View Source
var FedAuth = getBase64Header(fedoraHeader, "User")

Functions

func DeleteResponseBody

func DeleteResponseBody(t *testing.T, url string) (int, string)

func GetBase64HeaderWithoutEntitlements

func GetBase64HeaderWithoutEntitlements(orgId string) string

returns a base64 encoded string of the idHeader without the orgId

func GetCompleteBase64Header

func GetCompleteBase64Header(orgId string) string

returns a base64 encoded string of the idHeader

func GetResponseBody

func GetResponseBody(t *testing.T, url string, auth *string) (int, string)

func GetResponseError

func GetResponseError(url string) (*http.Response, error)

func PostResponseBody

func PostResponseBody(t *testing.T, url string, compose interface{}) (int, string)

func PutResponseBody

func PutResponseBody(t *testing.T, url string, compose interface{}) (int, string)

Types

type PSQLContainer

type PSQLContainer struct {
	// contains filtered or unexported fields
}

func NewPSQLContainer

func NewPSQLContainer() (*PSQLContainer, error)

func (*PSQLContainer) NewDB

func (p *PSQLContainer) NewDB(ctx context.Context) (db.DB, error)

func (*PSQLContainer) Stop

func (p *PSQLContainer) Stop() error

type TernMigrateOptions

type TernMigrateOptions struct {
	MigrationsDir string
	Hostname      string
	DBName        string
	DBPort        string
	DBUser        string
	DBPassword    string
	SSLMode       string
}

Jump to

Keyboard shortcuts

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