test

package
v1.68.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package test contains test only functions for package admin. It's used by admin/admin_test.go and admin/test/admin_test.go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCSDS

func RunCSDS(conn *grpc.ClientConn) error

RunCSDS makes a CSDS RPC.

func RunChannelz

func RunChannelz(conn *grpc.ClientConn) error

RunChannelz makes a channelz RPC.

func RunRegisterTests

func RunRegisterTests(t *testing.T, ec ExpectedStatusCodes)

RunRegisterTests makes a client, runs the RPCs, and compares the status codes.

Types

type ExpectedStatusCodes

type ExpectedStatusCodes struct {
	ChannelzCode codes.Code
	CSDSCode     codes.Code
}

ExpectedStatusCodes contains the expected status code for each RPC (can be OK).

Jump to

Keyboard shortcuts

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