Documentation ¶
Index ¶
- type TestSuite
- func (s *TestSuite) SetupTestSuite(c *input.Context) error
- func (s *TestSuite) TestCrashedTarget(t *testing.T)
- func (s *TestSuite) TestCreatedRemovedTarget(t *testing.T)
- func (s *TestSuite) TestDeleteAndRollback(t *testing.T)
- func (s *TestSuite) TestDeletePathLeaf(t *testing.T)
- func (s *TestSuite) TestDeleteRoot(t *testing.T)
- func (s *TestSuite) TestDeleteUpdate(t *testing.T)
- func (s *TestSuite) TestGetAllTargets(t *testing.T)
- func (s *TestSuite) TestGetOperationAfterNodeRestart(t *testing.T)
- func (s *TestSuite) TestGetState(t *testing.T)
- func (s *TestSuite) TestModels(t *testing.T)
- func (s *TestSuite) TestMultipleSet(t *testing.T)
- func (s *TestSuite) TestOfflineTarget(t *testing.T)
- func (s *TestSuite) TestSetOperationAfterNodeRestart(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) 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) TestCrashedTarget ¶ added in v0.10.24
TestCrashedTarget tests that a crashed target receives proper configuration restoration
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) TestDeletePathLeaf ¶ added in v0.10.22
TestDeletePathLeaf checks that when a leaf node is removed, its path is removed
func (*TestSuite) TestDeleteRoot ¶ added in v0.10.22
TestDeleteRoot checks that when a root node is removed, its path is removed
func (*TestSuite) TestDeleteUpdate ¶ added in v0.10.24
TestDeleteUpdate tests update of a path after a previous deletion of a parent path
func (*TestSuite) TestGetAllTargets ¶ added in v0.10.22
TestGetAllTargets tests retrieval of all target IDs via path.Target="*"
func (*TestSuite) TestGetOperationAfterNodeRestart ¶ added in v0.10.15
TestGetOperationAfterNodeRestart tests a Get operation after restarting the onos-config node
func (*TestSuite) TestGetState ¶ added in v0.10.20
TestGetState tests query/set/delete of a single GNMI path to a single device
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) TestOfflineTarget ¶
TestOfflineTarget tests set/query of a single GNMI path to a single target that is initially not connected to onos-config
func (*TestSuite) TestSetOperationAfterNodeRestart ¶ added in v0.10.15
TestSetOperationAfterNodeRestart tests a Set operation after restarting the onos-config node
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) TestUpdateDelete ¶
TestUpdateDelete tests update and delete paths in a single GNMI request