Documentation
¶
Index ¶
- type TestSuite
- func (s *TestSuite) SetupTestSuite(c *input.Context) error
- func (s *TestSuite) TestCompactChanges(t *testing.T)
- func (s *TestSuite) TestCreatedRemovedTarget(t *testing.T)
- func (s *TestSuite) TestDeleteAndRollback(t *testing.T)
- func (s *TestSuite) TestModels(t *testing.T)
- func (s *TestSuite) TestMultipleSet(t *testing.T)
- func (s *TestSuite) TestOfflineDeviceInTopo(t *testing.T)
- func (s *TestSuite) TestOfflineTarget(t *testing.T)
- func (s *TestSuite) TestOneLiveOneDeadDevice(t *testing.T)
- func (s *TestSuite) TestSinglePath(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) TestUnreachableTarget(t *testing.T)
- func (s *TestSuite) TestUpdateDelete(t *testing.T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestSuite ¶
type TestSuite struct {
ConfigReplicaCount int64
// 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) TestCreatedRemovedTarget ¶
TestCreatedRemovedTarget tests set/query of a single GNMI path to a single target that is created, removed, then created again
func (*TestSuite) TestDeleteAndRollback ¶
TestDeleteAndRollback tests target deletion and rollback
func (*TestSuite) TestModels ¶
TestModels tests GNMI operation involving unknown or illegal paths
func (*TestSuite) TestMultipleSet ¶
TestMultipleSet tests multiple query/set/delete of a single GNMI path to a single device
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) TestOfflineTarget ¶
TestOfflineTarget tests set/query of a single GNMI path to a single target that is initially not in the config
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) TestTopoIntegration ¶
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) TestUnreachableTarget ¶
TestUnreachableTarget tests set/query of a single GNMI path to a target that will never respond
func (*TestSuite) TestUpdateDelete ¶
TestUpdateDelete tests update and delete paths in a single GNMI request