test_util

package
v0.0.0-...-5e3b14e Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDescribeInstancesOutput

func GenerateDescribeInstancesOutput(empty bool) *ec2.DescribeInstancesOutput

func GenerateInvalidMessage

func GenerateInvalidMessage(t *testing.T) *sqs.ReceiveMessageOutput

func GeneratePlainMessage

func GeneratePlainMessage() util.ASGMessage

func GenerateSqsMessageHandle

func GenerateSqsMessageHandle() string

func GenerateTestMessage

func GenerateTestMessage(t *testing.T) *sqs.ReceiveMessageOutput

func GenerateValidASGMessage

func GenerateValidASGMessage(t *testing.T) *sqs.ReceiveMessageOutput

func GenerateValidSpotMessage

func GenerateValidSpotMessage(t *testing.T) *sqs.ReceiveMessageOutput

Types

type MockAutoScalingClient

type MockAutoScalingClient struct {
	autoscalingiface.AutoScalingAPI
	WasCompleteLifecycleActionCalled bool
	WasHeartbeatCalled               bool
	ReturnError                      bool
}

func NewMockAutoScalingClient

func NewMockAutoScalingClient(returnError bool) *MockAutoScalingClient

type MockEC2Client

type MockEC2Client struct {
	ec2iface.EC2API
	WasDescribeInstancesCalled bool
	ReturnError                bool
	ReturnValue                *ec2.DescribeInstancesOutput
}

func NewMockEC2Client

func NewMockEC2Client(returnError bool) *MockEC2Client

func (*MockEC2Client) DescribeInstances

type MockSQSClient

type MockSQSClient struct {
	sqsiface.SQSAPI
	WasDeleteMessageCalled bool
	ReturnError            bool
}

func NewMockSQSClient

func NewMockSQSClient(returnError bool) *MockSQSClient

func (*MockSQSClient) DeleteMessage

Jump to

Keyboard shortcuts

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