test

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 10 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
	ExpectedCreateOriginAccessControlOutput  *cloudfront.CreateOriginAccessControlOutput
	ExpectedUpdateOriginAccessControlOutput  *cloudfront.UpdateOriginAccessControlOutput
	ExpectedDeleteOriginAccessControlOutput  *cloudfront.DeleteOriginAccessControlOutput
	ExpectedGetOriginAccessControlOutput     *cloudfront.GetOriginAccessControlOutput
}

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

func (*MockCloudFrontAPI) CreateOriginAccessControl added in v0.1.1

func (*MockCloudFrontAPI) DeleteDistribution

func (*MockCloudFrontAPI) DeleteOriginAccessControl added in v0.1.1

func (*MockCloudFrontAPI) GetDistribution

func (*MockCloudFrontAPI) GetOriginAccessControl added in v0.1.1

func (*MockCloudFrontAPI) TagResource

func (*MockCloudFrontAPI) UpdateDistribution

func (*MockCloudFrontAPI) UpdateOriginAccessControl added in v0.1.1

type MockK8sClient

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

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) GroupVersionKindFor added in v0.1.1

func (m *MockK8sClient) GroupVersionKindFor(_ runtime.Object) (schema.GroupVersionKind, error)

func (*MockK8sClient) IsObjectNamespaced added in v0.1.1

func (m *MockK8sClient) IsObjectNamespaced(_ runtime.Object) (bool, error)

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) SubResource added in v0.1.1

func (m *MockK8sClient) SubResource(_ string) client.SubResourceClient

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