test

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

README

Atomix Test Example

To run the test:

helmit test ./cmd/helmit-examples --context ../onos-helm-charts

The test example includes tests for Atomix map operations against a Raft database.

To run the tests, use the ./cmd/helmit-examples command, passing the examples/charts directory as the test context:

helmit test ./examples/test/cmd \
    --suite atomix \
    --context examples/charts

To run a specific test, specify the benchmark name with the --test flag:

helmit bench ./examples/test/cmd \
    --suite atomix \
    --test TestMap \
    --context examples/charts

To change the size of the Raft database, set the atomix-raft chart values:

helmit test ./examples/test/cmd \
    --suite atomix \
    --context examples/charts \
    --set atomix-raft.clusters=3 \
    --set atomix-raft.partitions=9 \
    --set atomix-raft.backend.replicas=3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtomixTestSuite

type AtomixTestSuite struct {
	test.Suite
}

AtomixTestSuite is an end-to-end test suite for Atomix

func (*AtomixTestSuite) SetupTestSuite

func (s *AtomixTestSuite) SetupTestSuite() error

SetupTestSuite sets up the Atomix cluster

func (*AtomixTestSuite) TestMap

func (s *AtomixTestSuite) TestMap(t *testing.T)

TestMap tests Atomix map operations

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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