Integrate verification framework

Verification framework is integrated with:
  - integration tests (by default)
  - `ETCD_VERIFY=all etcdctl snapshot restore` command
  - etcd shutdown when running with `ETCD_VERIFY=all` env.
This commit is contained in:
Piotr Tabor
2021-04-27 17:10:41 +02:00
parent 47b28b600a
commit c4b13a5c83
8 changed files with 51 additions and 21 deletions

View File

@@ -21,6 +21,7 @@ import (
"reflect"
"testing"
"github.com/stretchr/testify/assert"
"go.etcd.io/etcd/client/v2"
)
@@ -65,6 +66,7 @@ func TestRestartMember(t *testing.T) {
}
func TestLaunchDuplicateMemberShouldFail(t *testing.T) {
BeforeTest(t)
size := 3
c := NewCluster(t, size)
m := c.Members[0].Clone(t)
@@ -78,6 +80,9 @@ func TestLaunchDuplicateMemberShouldFail(t *testing.T) {
if err := m.Launch(); err == nil {
t.Errorf("unexpect successful launch")
} else {
t.Logf("launch failed as expected: %v", err)
assert.Contains(t, err.Error(), "has already been bootstrapped")
}
}