clients

package
v0.0.0-...-772ff9c Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: UPL-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClientJob

func CreateClientJob(ns, name string, tc ClientTestCase) *batchv1.Job

CreateClientJob creates a k8s Job based on the test case.

func Execute

func Execute(parentTest *testing.T, testCases []ClientTestCase)

Execute runs all the child test cases.

Types

type ClientTestCase

type ClientTestCase struct {
	// ClientType is the type of test client (e.g. extend or grpc).
	ClientType ClientType
	// Name is the name of the test.
	Name string
	// Cluster is the test Coherence cluster.
	Cluster *CoherenceCluster
	// CacheConfig is the name of the cache configuration file the client can connect to.
	CacheConfig string
	// Test is the test method to run
	Test TestExecution
}

ClientTestCase represents the data required to run a client test case.

type ClientType

type ClientType string

ClientType represents a type of text client

var (
	// ClientTypeExtend is a ClientType representing Extend client tests
	ClientTypeExtend ClientType = "extend"
	// ClientTypeGrpc is a ClientType representing gRPC client tests
	ClientTypeGrpc ClientType = "grpc"
)

type CoherenceCluster

type CoherenceCluster struct {
	// Manifest is the name of the yaml file used to deploy the cluster
	Manifest       string
	Services       map[string]string
	ServiceFQDNs   map[string]string
	ServiceIngress map[string][]corev1.LoadBalancerIngress
	Coherence      v1.Coherence
}

CoherenceCluster represents a running test Coherence cluster

func DeployTestCluster

func DeployTestCluster(testContext helper.TestContext, t *testing.T, yaml string) (*CoherenceCluster, error)

type TestExecution

type TestExecution func(*testing.T, ClientTestCase)

Jump to

Keyboard shortcuts

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