shepherd_test

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Test App/Cluster state data
	TestCloudletKey = edgeproto.CloudletKey{
		Organization: "testoperator",
		Name:         "testcloudlet",
	}
	TestCloudlet = edgeproto.Cloudlet{
		Key: TestCloudletKey,
	}
	TestClusterKey = edgeproto.ClusterKey{
		Name:         "testcluster",
		Organization: "",
	}
	TestClusterInst = edgeproto.ClusterInst{
		Key:         TestClusterKey,
		Deployment:  cloudcommon.DeploymentTypeDocker,
		CloudletKey: TestCloudletKey,
	}
	TestAutoProvPolicyKey = edgeproto.PolicyKey{
		Name: "autoprov",
	}
	TestAutoProvPolicy = edgeproto.AutoProvPolicy{
		Key:                   TestAutoProvPolicyKey,
		UndeployClientCount:   3,
		UndeployIntervalCount: 3,
		Cloudlets: []*edgeproto.AutoProvCloudlet{
			&edgeproto.AutoProvCloudlet{
				Key: TestCloudletKey,
			},
		},
	}
	TestAppKey = edgeproto.AppKey{
		Name: "App",
	}
	TestApp = edgeproto.App{
		Key:         TestAppKey,
		AccessPorts: "tcp:1234",
		AccessType:  edgeproto.AccessType_ACCESS_TYPE_LOAD_BALANCER,
		AutoProvPolicies: []string{
			TestAutoProvPolicyKey.Name,
		},
	}
	TestAppInstKey = edgeproto.AppInstKey{
		Name:         "AppInstTest",
		Organization: TestAppKey.Organization,
	}
	TestAppInst = edgeproto.AppInst{
		Key:         TestAppInstKey,
		AppKey:      TestApp.Key,
		ClusterKey:  TestClusterKey,
		CloudletKey: TestCloudletKey,
		State:       edgeproto.TrackedState_READY,
		HealthCheck: dme.HealthCheck_HEALTH_CHECK_OK,
		Liveness:    edgeproto.Liveness_LIVENESS_AUTOPROV,
		MappedPorts: []dme.AppPort{
			dme.AppPort{
				Proto:      dme.LProto_L_PROTO_TCP,
				PublicPort: 1234,
			},
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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