Documentation
¶
Overview ¶
Package acctz provides helper APIs to simplify writing acctz test cases.
Index ¶
- Constants
- Variables
- func SendFailCliCommand(t *testing.T, dut *ondatra.DUTDevice) []*acctzpb.RecordResponse
- func SendGnmiRPCs(t *testing.T, dut *ondatra.DUTDevice) []*acctzpb.RecordResponse
- func SendGnoiRPCs(t *testing.T, dut *ondatra.DUTDevice) []*acctzpb.RecordResponse
- func SendGnsiRPCs(t *testing.T, dut *ondatra.DUTDevice) []*acctzpb.RecordResponse
- func SendGribiRPCs(t *testing.T, dut *ondatra.DUTDevice) []*acctzpb.RecordResponse
- func SendP4rtRPCs(t *testing.T, dut *ondatra.DUTDevice) []*acctzpb.RecordResponse
- func SendShellCommand(t *testing.T, dut *ondatra.DUTDevice) []*acctzpb.RecordResponse
- func SendSuccessCliCommand(t *testing.T, dut *ondatra.DUTDevice) []*acctzpb.RecordResponse
- func SetupUsers(t *testing.T, dut *ondatra.DUTDevice, configureFailCliRole bool)
Constants ¶
const ( // SuccessUsername is the username for a successful test. SuccessUsername = "acctztestuser" // FailUsername is the username for a failed test. FailUsername = "bilbo" )
Variables ¶
var ( // TestPaths is the list of paths to be tested for acctz. TestPaths = []string{gnmiCapabilitiesPath, gnoiPingPath, gnsiGetPath, gribiGetPath, p4rtCapabilitiesPath} )
Functions ¶
func SendFailCliCommand ¶
SendFailCliCommand Setup test CLI command (failed) to be used in the acctz client tests.
func SendGnmiRPCs ¶
SendGnmiRPCs Setup gNMI test RPCs (successful and failed) to be used in the acctz client tests.
func SendGnoiRPCs ¶
SendGnoiRPCs Setup gNOI test RPCs (successful and failed) to be used in the acctz client tests.
func SendGnsiRPCs ¶
SendGnsiRPCs Setup gNSI test RPCs (successful and failed) to be used in the acctz client tests.
func SendGribiRPCs ¶
SendGribiRPCs Setup gRIBI test RPCs (successful and failed) to be used in the acctz client tests.
func SendP4rtRPCs ¶
SendP4rtRPCs Setup P4RT test RPCs (successful and failed) to be used in the acctz client tests.
func SendShellCommand ¶
SendShellCommand Setup test shell command (successful) to be used in the acctz client tests.
func SendSuccessCliCommand ¶
SendSuccessCliCommand Setup test CLI command (successful) to be used in the acctz client tests.
Types ¶
This section is empty.