Documentation ¶
Index ¶
- Constants
- Variables
- func Exec(name string, args ...string) (string, error)
- func GetBusDriverSpec() string
- type E2ESuite
- type Given
- type Then
- func (t *Then) EventSourcePodPortForward(localPort, remotePort int) *Then
- func (t *Then) ExpectEventBusDeleted() *Then
- func (t *Then) ExpectEventSourcePodLogContains(regex string, options ...testutil.PodLogCheckOption) *Then
- func (t *Then) ExpectNoSensorPodFound() *Then
- func (t *Then) ExpectSensorPodLogContains(regex string, options ...testutil.PodLogCheckOption) *Then
- func (t *Then) SensorPodPortForward(localPort, remotePort int) *Then
- func (t *Then) TerminateAllPodPortForwards() *Then
- func (t *Then) When() *When
- type When
- func (w *When) And(block func()) *When
- func (w *When) CreateEventBus() *When
- func (w *When) CreateEventSource() *When
- func (w *When) CreateSensor() *When
- func (w *When) DeleteEventBus() *When
- func (w *When) DeleteEventSource() *When
- func (w *When) DeleteSensor() *When
- func (w *When) Exec(name string, args []string, block func(t *testing.T, output string, err error)) *When
- func (w *When) Given() *Given
- func (w *When) Then() *Then
- func (w *When) Wait(timeout time.Duration) *When
- func (w *When) WaitForEventBusReady() *When
- func (w *When) WaitForEventSourceReady() *When
- func (w *When) WaitForSensorReady() *When
Constants ¶
View Source
const ( Namespace = "argo-events" Label = "argo-events-e2e" LabelValue = "true" EventBusName = "argo-events-e2e" )
Variables ¶
View Source
var ( E2EEventBusSTAN = `apiVersion: argoproj.io/v1alpha1 kind: EventBus metadata: name: default spec: nats: native: auth: token` E2EEventBusJetstream = `apiVersion: argoproj.io/v1alpha1 kind: EventBus metadata: name: default spec: jetstream: version: latest` E2EEventBusKafka = `apiVersion: argoproj.io/v1alpha1 kind: EventBus metadata: name: default spec: kafka: url: kafka-broker:9092` )
Functions ¶
func GetBusDriverSpec ¶ added in v1.7.1
func GetBusDriverSpec() string
Types ¶
type E2ESuite ¶
func (*E2ESuite) BeforeTest ¶
func (*E2ESuite) CheckError ¶
func (*E2ESuite) DeleteResources ¶
func (s *E2ESuite) DeleteResources()
func (*E2ESuite) SetupSuite ¶
func (s *E2ESuite) SetupSuite()
func (*E2ESuite) TearDownSuite ¶
func (s *E2ESuite) TearDownSuite()
type Given ¶
type Given struct {
// contains filtered or unexported fields
}
func (*Given) EventBus ¶
creates an EventBus based on the parameter, this may be:
1. A file name if it starts with "@" 2. Raw YAML.
func (*Given) EventSource ¶
creates an EventSource based on the parameter, this may be:
1. A file name if it starts with "@" 2. Raw YAML.
type Then ¶
type Then struct {
// contains filtered or unexported fields
}
func (*Then) EventSourcePodPortForward ¶
func (*Then) ExpectEventBusDeleted ¶
func (*Then) ExpectEventSourcePodLogContains ¶
func (t *Then) ExpectEventSourcePodLogContains(regex string, options ...testutil.PodLogCheckOption) *Then
look for regex match in Sensor pod's log if countOpt != nil, look for specific count of regex match; else look for at least one instance
func (*Then) ExpectNoSensorPodFound ¶ added in v1.7.2
func (*Then) ExpectSensorPodLogContains ¶
func (t *Then) ExpectSensorPodLogContains(regex string, options ...testutil.PodLogCheckOption) *Then
look for regex match in EventSource pod's log if countOpt != nil, look for specific count of regex match; else look for at least one instance
func (*Then) SensorPodPortForward ¶
func (*Then) TerminateAllPodPortForwards ¶
type When ¶
type When struct {
// contains filtered or unexported fields
}
func (*When) CreateEventBus ¶
func (*When) CreateEventSource ¶
func (*When) CreateSensor ¶
func (*When) DeleteEventBus ¶
func (*When) DeleteEventSource ¶ added in v1.7.1
func (*When) DeleteSensor ¶ added in v1.7.1
func (*When) WaitForEventBusReady ¶
func (*When) WaitForEventSourceReady ¶
func (*When) WaitForSensorReady ¶
Click to show internal directories.
Click to hide internal directories.