Documentation ¶
Overview ¶
go:build integration
Index ¶
- Constants
- func CreateFile(t *testing.T, contents []byte) *os.File
- func GetConfigID(t *testing.T, env TestEnvironment, service string, configNumber int) string
- func GetCustomSchemaTestToken(t *testing.T, env TestEnvironment) string
- func GetEnvVarOrSkip(t *testing.T, varname string) string
- func GetMultiConfigTestToken(t *testing.T, env TestEnvironment) string
- func GetTestDomain(t *testing.T, env TestEnvironment) string
- func GetTestToken(t *testing.T, env TestEnvironment) string
- func GetVaultSignatureTestToken(t *testing.T, env TestEnvironment) string
- func IntegrationAuditVaultConfig(t *testing.T, env TestEnvironment) *pangea.Config
- func IntegrationConfig(t *testing.T, env TestEnvironment) *pangea.Config
- func IntegrationCustomSchemaConfig(t *testing.T, env TestEnvironment) *pangea.Config
- func IntegrationMultiConfigConfig(t *testing.T, env TestEnvironment) *pangea.Config
- func SetupServer() (mux *http.ServeMux, serverURL string, teardown func())
- func TestBody(t *testing.T, r *http.Request, want string)
- func TestConfig(url string) *pangea.Config
- func TestMethod(t *testing.T, r *http.Request, want string)
- func TestNewRequestAndDoFailure(t *testing.T, method string, f func(cfg *pangea.Config) error)
- type CustomSchemaEvent
- type TestEnvironment
Constants ¶
View Source
const ( Live TestEnvironment = "LVE" Develop = "DEV" Staging = "STG" )
Variables ¶
This section is empty.
Functions ¶
func GetConfigID ¶
func GetCustomSchemaTestToken ¶
func GetCustomSchemaTestToken(t *testing.T, env TestEnvironment) string
func GetMultiConfigTestToken ¶
func GetMultiConfigTestToken(t *testing.T, env TestEnvironment) string
func GetTestDomain ¶
func GetTestDomain(t *testing.T, env TestEnvironment) string
func GetTestToken ¶
func GetTestToken(t *testing.T, env TestEnvironment) string
func GetVaultSignatureTestToken ¶
func GetVaultSignatureTestToken(t *testing.T, env TestEnvironment) string
func IntegrationAuditVaultConfig ¶
func IntegrationAuditVaultConfig(t *testing.T, env TestEnvironment) *pangea.Config
func IntegrationConfig ¶
func IntegrationConfig(t *testing.T, env TestEnvironment) *pangea.Config
func IntegrationCustomSchemaConfig ¶
func IntegrationCustomSchemaConfig(t *testing.T, env TestEnvironment) *pangea.Config
func IntegrationMultiConfigConfig ¶
func IntegrationMultiConfigConfig(t *testing.T, env TestEnvironment) *pangea.Config
func SetupServer ¶
SetupServer sets up a test HTTP server
Tests should register handlers on mux which provide mock responses for the API method being tested.
func TestConfig ¶
Types ¶
type CustomSchemaEvent ¶
type CustomSchemaEvent struct { Message string `json:"message"` FieldInt int `json:"field_int,omitempty"` FieldBool bool `json:"field_bool,omitempty"` FieldStrShort string `json:"field_str_short,omitempty"` FieldStrLong string `json:"field_str_long,omitempty"` FieldTime *pu.PangeaTimestamp `json:"field_time,omitempty"` // TenantID field TenantID string `json:"tenant_id,omitempty"` }
func (*CustomSchemaEvent) SetTenant ¶
func (e *CustomSchemaEvent) SetTenant(tid string)
func (*CustomSchemaEvent) Tenant ¶
func (e *CustomSchemaEvent) Tenant() string
type TestEnvironment ¶
type TestEnvironment string
Click to show internal directories.
Click to hide internal directories.