test

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

* Copyright The Microcks Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertBadImplementation

func AssertBadImplementation(t *testing.T, ctx context.Context, microcksContainer *microcks.MicrocksContainer)

AssertBadImplementation helps to assert the endpoint with a bad implementation.

func AssertGoodImplementation

func AssertGoodImplementation(t *testing.T, ctx context.Context, microcksContainer *microcks.MicrocksContainer)

AssertGoodImplementation helps to assert the endpoint with a good implementation.

func ConfigRetrieval

func ConfigRetrieval(t *testing.T, ctx context.Context, microcksContainer *microcks.MicrocksContainer)

ConfigRetrieval tests the configuration.

func MicrocksAsyncKafkaMockingFunctionality

func MicrocksAsyncKafkaMockingFunctionality(t *testing.T, ctx context.Context, kafkaContainer *kafkaTC.KafkaContainer, microcksAsyncMinionContainer *async.MicrocksAsyncMinionContainer)

MicrocksAsyncKafkaMockingFunctionality tests the Microcks async Kafka mocking functionality.

func MicrocksAsyncMockingFunctionality

func MicrocksAsyncMockingFunctionality(t *testing.T, ctx context.Context, microcksAsyncMinionContainer *async.MicrocksAsyncMinionContainer)

MicrocksAsyncMockingFunctionality tests the Microcks async mocking functionality.

func MicrocksContractTestingFunctionality

func MicrocksContractTestingFunctionality(
	t *testing.T,
	ctx context.Context,
	mc *microcks.MicrocksContainer,
	badImpl,
	goodImpl testcontainers.Container)

MicrocksContractTestingFunctionality helps to assert contract testing functionality.

func MicrocksMockingFunctionality

func MicrocksMockingFunctionality(t *testing.T, ctx context.Context, microcksContainer *microcks.MicrocksContainer)

MicrocksMockingFunctionality tests the Microcks mocking functionality.

func MockEndpoints

func MockEndpoints(t *testing.T, ctx context.Context, microcksContainer *microcks.MicrocksContainer)

MockEndpoints tests the mock endpoints.

func PrintMicrocksContainerLogs

func PrintMicrocksContainerLogs(t *testing.T, ctx context.Context, microcksContainer *microcks.MicrocksContainer)

PrintMicrocksContainerLogs prints the Microcks container logs.

func WithNetwork deprecated

func WithNetwork(network string) testcontainers.CustomizeRequestOption

Deprecated: use testcontainers.WithNetwork once it's released. WithNetwork is a custom request option that adds a network to a container. This is a temporary option until the next release of testcontainers-go, which will include this option.

Types

This section is empty.

Jump to

Keyboard shortcuts

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