testapi

package
v0.0.0-...-c35b4de Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB
View Source
var LongLivedAuthorizationHeader = map[string]string{
	"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNhYTMwMmU1LWRlNGItNGY0Zi1iMjQ0LTM5YjE0MDMzZTgxYSIsImVtYWlsIjoiYWRtaW5AYWRtaW4uY29tIiwicm9sZSI6IlJPTEVfQURNSU4iLCJleHAiOjIzMzM5NjUzODR9.dp3536IfMiALac72g3WuoXSbGLgiLB7Txz6E5uCL9iI",
}

Functions

func TestConfig

func TestConfig() *config.AppConfig

Types

type ApiScenario

type ApiScenario struct {
	Name               string
	Method             string
	Url                string
	Body               io.Reader
	RequestHeaders     map[string]string
	ExpectedStatus     int
	ExpectedContent    []string
	NotExpectedContent []string
}

func (*ApiScenario) Test

func (scenario *ApiScenario) Test(t *testing.T)

Jump to

Keyboard shortcuts

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