Documentation ¶
Index ¶
- func NewTopoClient() (toposdk.Client, error)
- type TestSuite
- func (s *TestSuite) SetupTestSuite(c *input.Context) error
- func (s *TestSuite) TestCompactChanges(t *testing.T)
- func (s *TestSuite) TestCreatedRemovedDevice(t *testing.T)
- func (s *TestSuite) TestDelete(t *testing.T)
- func (s *TestSuite) TestDeviceState(t *testing.T)
- func (s *TestSuite) TestModels(t *testing.T)
- func (s *TestSuite) TestMultipleSet(t *testing.T)
- func (s *TestSuite) TestOfflineDevice(t *testing.T)
- func (s *TestSuite) TestOfflineDeviceInTopo(t *testing.T)
- func (s *TestSuite) TestOneLiveOneDeadDevice(t *testing.T)
- func (s *TestSuite) TestSinglePath(t *testing.T)
- func (s *TestSuite) TestSingleState(t *testing.T)
- func (s *TestSuite) TestSubscribe(t *testing.T)
- func (s *TestSuite) TestSubscribeOnce(t *testing.T)
- func (s *TestSuite) TestSubscribeStateDiags(t *testing.T)
- func (s *TestSuite) TestSubscribeStateGnmi(t *testing.T)
- func (s *TestSuite) TestTopoIntegration(t *testing.T)
- func (s *TestSuite) TestTransaction(t *testing.T)
- func (s *TestSuite) TestTreePath(t *testing.T)
- func (s *TestSuite) TestUnreachableDevice(t *testing.T)
- func (s *TestSuite) TestUpdateDelete(t *testing.T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTopoClient ¶ added in v0.10.12
NewTopoClient creates a new topo SDK client
Types ¶
type TestSuite ¶
type TestSuite struct {
// contains filtered or unexported fields
}
TestSuite is the onos-config GNMI test suite
func (*TestSuite) SetupTestSuite ¶
SetupTestSuite sets up the onos-config GNMI test suite
func (*TestSuite) TestCompactChanges ¶
TestCompactChanges tests the CompactChanges and Snapshot RPCs on the Admin gRPC interface. This 1) sets up 2 simulators 2a) makes 2 gnmi change on sim 1 2b) makes 3 gnmi changes on sim 2 2c) makes another gnmi change on both sim1 and sim2 3) waits for the network changes to be complete (and for the simulators to start) 4) calls compact_changes to create a snapshot 5) retrieves the snapshot using both Get and List 6) makes another NW change 7) make sure the aggregate config includes snapshot + subsequent change See also TestSnapshotErrors
func (*TestSuite) TestCreatedRemovedDevice ¶
TestCreatedRemovedDevice tests set/query of a single GNMI path to a single device that is created, removed, then created again
func (*TestSuite) TestDelete ¶ added in v0.6.16
TestDelete :
func (*TestSuite) TestDeviceState ¶
TestDeviceState tests that a device is connected and available.
func (*TestSuite) TestModels ¶
TestModels tests GNMI operation involving unknown or illegal paths
func (*TestSuite) TestMultipleSet ¶ added in v0.6.15
TestMultipleSet tests multiple query/set/delete of a single GNMI path to a single device
func (*TestSuite) TestOfflineDevice ¶
TestOfflineDevice tests set/query of a single GNMI path to a single device that is initially not in the config
func (*TestSuite) TestOfflineDeviceInTopo ¶
TestOfflineDeviceInTopo tests set/query of a single GNMI path to a single device that is in the config but offline
func (*TestSuite) TestOneLiveOneDeadDevice ¶
TestOneLiveOneDeadDevice tests GNMI operations to an offline device followed by operations to a connected device
func (*TestSuite) TestSinglePath ¶
TestSinglePath tests query/set/delete of a single GNMI path to a single device
func (*TestSuite) TestSingleState ¶
TestSingleState tests query of a single GNMI path of a read/only value to a single device
func (*TestSuite) TestSubscribe ¶
TestSubscribe tests a stream subscription to updates to a device
func (*TestSuite) TestSubscribeOnce ¶
TestSubscribeOnce tests subscription ONCE mode
func (*TestSuite) TestSubscribeStateDiags ¶
TestSubscribeStateDiags tests a stream subscription to updates to a device using the diags API
func (*TestSuite) TestSubscribeStateGnmi ¶
TestSubscribeStateGnmi tests a stream subscription to updates to a device
func (*TestSuite) TestTopoIntegration ¶ added in v0.10.12
TestTopoIntegration checks that the correct topology entities and relations are created
func (*TestSuite) TestTransaction ¶
TestTransaction tests setting multiple paths in a single request and rolling it back
func (*TestSuite) TestTreePath ¶
TestTreePath tests create/set/delete of a tree of GNMI paths to a single device
func (*TestSuite) TestUnreachableDevice ¶
TestUnreachableDevice tests set/query of a single GNMI path to a device that will never respond
func (*TestSuite) TestUpdateDelete ¶
TestUpdateDelete tests update and delete paths in a single GNMI request
Source Files ¶
- compactChanges.go
- createremovedevicetest.go
- deletetest.go
- devicestatetest.go
- modelstest.go
- multiplesettest.go
- offlinedevicetest.go
- offlineintopotest.go
- oneliveonedeadtest.go
- singlepathtest.go
- singlestatetest.go
- subscribestatediagstest.go
- subscribestategnmitest.go
- subscribetest.go
- subscribetestutils.go
- suite.go
- topotest.go
- transactiontest.go
- treepathtest.go
- unreachabledevicetest.go
- updatedeletetest.go