test

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCloudFrontAPI

type MockCloudFrontAPI struct {
	mock.Mock
	cloudfrontiface.CloudFrontAPI
	ExpectedGetDistributionConfigOutput      *cloudfront.GetDistributionConfigOutput
	ExpectedUpdateDistributionOutput         *cloudfront.UpdateDistributionOutput
	ExpectedCreateDistributionWithTagsOutput *cloudfront.CreateDistributionWithTagsOutput
	ExpectedTagResourceOutput                *cloudfront.TagResourceOutput
	ExpectedGetDistributionOutput            *cloudfront.GetDistributionOutput
}

MockCloudFrontAPI is a mocked cloudfrontiface.CloudFrontAPI to be used during testing

func (*MockCloudFrontAPI) DeleteDistribution

func (*MockCloudFrontAPI) GetDistribution

func (*MockCloudFrontAPI) TagResource

func (*MockCloudFrontAPI) UpdateDistribution

type MockK8sClient

type MockK8sClient struct {
	mock.Mock
	ExpectedStatusWriter client.StatusWriter
	ExpectedScheme       *runtime.Scheme
	ExpectedRESTMapper   meta.RESTMapper
}

MockK8sClient is a mocked client.Client to be used during testing

func (*MockK8sClient) Create

func (m *MockK8sClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error

func (*MockK8sClient) Delete

func (m *MockK8sClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error

func (*MockK8sClient) DeleteAllOf

func (m *MockK8sClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error

func (*MockK8sClient) Get

func (*MockK8sClient) List

func (m *MockK8sClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

func (*MockK8sClient) Patch

func (m *MockK8sClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error

func (*MockK8sClient) RESTMapper

func (m *MockK8sClient) RESTMapper() meta.RESTMapper

func (*MockK8sClient) Scheme

func (m *MockK8sClient) Scheme() *runtime.Scheme

func (*MockK8sClient) Status

func (m *MockK8sClient) Status() client.StatusWriter

func (*MockK8sClient) Update

func (m *MockK8sClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error

type MockResourceTaggingAPI

type MockResourceTaggingAPI struct {
	mock.Mock
	resourcegroupstaggingapiiface.ResourceGroupsTaggingAPIAPI
	ExpectedGetResourcesOutput *resourcegroupstaggingapi.GetResourcesOutput
}

MockResourceTaggingAPI is a mocked resourcegroupstaggingapiiface.ResourceGroupsTaggingAPIAPI to be used during testing

Jump to

Keyboard shortcuts

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