tests/e2e: rename to "snapshotCount"

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
release-3.4
Gyuho Lee 2018-05-18 15:27:48 -07:00
parent 2847232096
commit 31094e5616
4 changed files with 8 additions and 8 deletions

View File

@ -108,7 +108,7 @@ type etcdProcessClusterConfig struct {
metricsURLScheme string
snapCount int // default is 10000
snapshotCount int // default is 10000
clientTLS clientConnType
clientCertAuthEnabled bool
@ -175,8 +175,8 @@ func (cfg *etcdProcessClusterConfig) etcdServerProcessConfigs() []*etcdServerPro
if cfg.execPath == "" {
cfg.execPath = binPath
}
if cfg.snapCount == 0 {
cfg.snapCount = etcdserver.DefaultSnapshotCount
if cfg.snapshotCount == 0 {
cfg.snapshotCount = etcdserver.DefaultSnapshotCount
}
etcdCfgs := make([]*etcdServerProcessConfig, cfg.clusterSize)
@ -217,7 +217,7 @@ func (cfg *etcdProcessClusterConfig) etcdServerProcessConfigs() []*etcdServerPro
"--initial-advertise-peer-urls", purl.String(),
"--initial-cluster-token", cfg.initialToken,
"--data-dir", dataDirPath,
"--snapshot-count", fmt.Sprintf("%d", cfg.snapCount),
"--snapshot-count", fmt.Sprintf("%d", cfg.snapshotCount),
}
args = addV2Args(args)
if cfg.forceNewCluster {

View File

@ -242,7 +242,7 @@ func testCtlV2Backup(t *testing.T, snapCount int, v3 bool) {
defer os.RemoveAll(backupDir)
etcdCfg := configNoTLS
etcdCfg.snapCount = snapCount
etcdCfg.snapshotCount = snapCount
epc1 := setupEtcdctlTest(t, &etcdCfg, false)
// v3 put before v2 set so snapshot happens after v3 operations to confirm

View File

@ -39,7 +39,7 @@ func TestEtcdCorruptHash(t *testing.T) {
cfg := configNoTLS
// trigger snapshot so that restart member can load peers from disk
cfg.snapCount = 3
cfg.snapshotCount = 3
testCtl(t, corruptTest, withQuorum(),
withCfg(cfg),

View File

@ -38,7 +38,7 @@ func TestReleaseUpgrade(t *testing.T) {
copiedCfg := configNoTLS
copiedCfg.execPath = lastReleaseBinary
copiedCfg.snapCount = 3
copiedCfg.snapshotCount = 3
copiedCfg.baseScheme = "unix" // to avoid port conflict
epc, err := newEtcdProcessCluster(&copiedCfg)
@ -113,7 +113,7 @@ func TestReleaseUpgradeWithRestart(t *testing.T) {
copiedCfg := configNoTLS
copiedCfg.execPath = lastReleaseBinary
copiedCfg.snapCount = 10
copiedCfg.snapshotCount = 10
copiedCfg.baseScheme = "unix"
epc, err := newEtcdProcessCluster(&copiedCfg)