Documentation ¶
Index ¶
- Constants
- type Agent
- type Agents
- type AuthResponse
- type Case
- type Connector
- type Framework
- type HttpResponse
- type IdentityProvider
- type Matcher
- func (m *Matcher) Contains(s, contains interface{}, msgAndArgs ...interface{})
- func (m *Matcher) Empty(object interface{}, msgAndArgs ...interface{})
- func (m *Matcher) Equal(expected, actual interface{}, msgAndArgs ...interface{})
- func (m *Matcher) Fail(msg ...string)
- func (m *Matcher) Failf(format string, args ...interface{})
- func (m *Matcher) False(value bool, msgAndArgs ...interface{})
- func (m *Matcher) LastResponse() *HttpResponse
- func (m *Matcher) Len(object interface{}, len int, msgAndArgs ...interface{})
- func (m *Matcher) Log(msg string)
- func (m *Matcher) Logf(format string, args ...interface{})
- func (m *Matcher) MockServer(name string) *MockServer
- func (m *Matcher) Must(err error)
- func (m *Matcher) NoError(err error, msg ...string)
- func (m *Matcher) NotEmpty(object interface{}, msgAndArgs ...interface{})
- func (m *Matcher) NotNil(object interface{}, msg ...string)
- func (m *Matcher) ResetConnection()
- func (m *Matcher) StatusCode(code int, msgAndArgs ...interface{})
- func (m *Matcher) True(value bool, msgAndArgs ...interface{})
- type MockServer
- type Proxy
- func (p *Proxy) Backend(b *configv2.Backend)
- func (p *Proxy) Cleanup() error
- func (p *Proxy) ClearConf()
- func (p *Proxy) Connector(name string, m *MockServer)
- func (p *Proxy) DashboardBackend() *configv2.Backend
- func (p *Proxy) MockServer(m *Matcher, name string) *MockServer
- func (p *Proxy) RPCPermission(v *configv2.RPCPermission)
- func (p *Proxy) Reload() error
- func (p *Proxy) Role(r *configv2.Role)
- func (p *Proxy) URL(subdomain string, pathAnd ...string) string
- func (p *Proxy) User(u *database.User)
- type Scenario
- func (f *Scenario) AfterAll(fn func(m *Matcher))
- func (f *Scenario) AfterEach(fn func(m *Matcher))
- func (f *Scenario) BeforeAll(fn func(m *Matcher))
- func (f *Scenario) BeforeEach(fn func(m *Matcher))
- func (f *Scenario) Context(name string, fn func(s *Scenario))
- func (f *Scenario) Defer(fn func())
- func (f *Scenario) It(name string, fn func(m *Matcher))
- func (f *Scenario) Step(name string, fn func(s *Scenario))
- func (f *Scenario) Subject(fn func(m *Matcher))
Constants ¶
View Source
const (
RootUserId = "root@e2e.f110.dev"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) FollowRedirect ¶ added in v0.10.0
func (*Agent) ParseLastResponseBody ¶ added in v0.10.0
func (*Agent) SaveCookie ¶ added in v0.10.0
func (a *Agent) SaveCookie()
type Agents ¶
type Agents struct {
// contains filtered or unexported fields
}
func NewAgents ¶
func NewAgents(domain string, ca *x509.Certificate, sessionStore *session.SecureCookieStore) *Agents
func (*Agents) Authorized ¶
Authorized returns the agent for authorized user. This agent uses the cookie secret.
func (*Agents) DecodeCookieValue ¶ added in v0.10.0
func (*Agents) Unauthorized ¶
type AuthResponse ¶ added in v0.10.0
type Connector ¶ added in v0.11.0
type Connector struct {
// contains filtered or unexported fields
}
func NewConnector ¶ added in v0.11.0
func NewConnector(name string, m *MockServer, proxyCACert *x509.Certificate) (*Connector, error)
type HttpResponse ¶ added in v0.10.0
func (*HttpResponse) FindCookie ¶ added in v0.10.0
func (h *HttpResponse) FindCookie(name string) *http.Cookie
type IdentityProvider ¶
type IdentityProvider struct { *http.Server Issuer string PrivateKey *rsa.PrivateKey // contains filtered or unexported fields }
func NewIdentityProvider ¶
func NewIdentityProvider() (*IdentityProvider, error)
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
func (*Matcher) Contains ¶ added in v0.10.0
func (m *Matcher) Contains(s, contains interface{}, msgAndArgs ...interface{})
func (*Matcher) Empty ¶ added in v0.10.0
func (m *Matcher) Empty(object interface{}, msgAndArgs ...interface{})
func (*Matcher) Equal ¶
func (m *Matcher) Equal(expected, actual interface{}, msgAndArgs ...interface{})
func (*Matcher) LastResponse ¶
func (m *Matcher) LastResponse() *HttpResponse
func (*Matcher) MockServer ¶ added in v0.11.0
func (m *Matcher) MockServer(name string) *MockServer
func (*Matcher) NotEmpty ¶ added in v0.10.0
func (m *Matcher) NotEmpty(object interface{}, msgAndArgs ...interface{})
func (*Matcher) ResetConnection ¶
func (m *Matcher) ResetConnection()
func (*Matcher) StatusCode ¶ added in v0.10.0
type MockServer ¶ added in v0.11.0
type MockServer struct { Port int // contains filtered or unexported fields }
func NewMockServer ¶ added in v0.11.0
func NewMockServer() (*MockServer, error)
func (*MockServer) Requests ¶ added in v0.11.0
func (s *MockServer) Requests() []*http.Request
func (*MockServer) Start ¶ added in v0.11.0
func (s *MockServer) Start() error
func (*MockServer) Stop ¶ added in v0.11.0
func (s *MockServer) Stop() error
type Proxy ¶
type Proxy struct { Domain string DomainHost string CA *x509.Certificate // contains filtered or unexported fields }
func (*Proxy) Connector ¶ added in v0.11.0
func (p *Proxy) Connector(name string, m *MockServer)
func (*Proxy) DashboardBackend ¶ added in v0.11.0
func (*Proxy) MockServer ¶ added in v0.11.0
func (p *Proxy) MockServer(m *Matcher, name string) *MockServer
func (*Proxy) RPCPermission ¶ added in v0.11.0
func (p *Proxy) RPCPermission(v *configv2.RPCPermission)
type Scenario ¶
type Scenario struct { Name string // contains filtered or unexported fields }
func NewScenario ¶
func (*Scenario) BeforeEach ¶
Click to show internal directories.
Click to hide internal directories.