Skip to content

Commit

Permalink
roachtest: add acceptance/version-upgrade
Browse files Browse the repository at this point in the history
Move the version-upgrade acceptance test to a new
acceptance/version-upgrade roachtest.

See cockroachdb#29151

Release note: None
  • Loading branch information
petermattis committed Sep 4, 2018
1 parent 14b53bc commit c5bed83
Show file tree
Hide file tree
Showing 4 changed files with 302 additions and 345 deletions.
12 changes: 0 additions & 12 deletions pkg/acceptance/localcluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,18 +319,6 @@ func (c *Cluster) makeNode(ctx context.Context, nodeIdx int, cfg NodeConfig) (*N
return n, ch
}

// RemoveNodeData removes the given node's data directory.
func (c *Cluster) RemoveNodeData(nodeIdx int) error {
dir := c.Cfg.PerNodeCfg[nodeIdx].DataDir
return os.RemoveAll(dir)
}

// ReplaceBinary replaces the binary that will be used for the specified node
// after its next restart.
func (c *Cluster) ReplaceBinary(nodeIdx int, bin string) {
c.Nodes[nodeIdx].Cfg.ExtraArgs[0] = bin
}

// waitForFullReplication waits for the cluster to be fully replicated.
func (c *Cluster) waitForFullReplication() {
for i := 1; true; i++ {
Expand Down
333 changes: 0 additions & 333 deletions pkg/acceptance/version_upgrade_test.go

This file was deleted.

1 change: 1 addition & 0 deletions pkg/cmd/roachtest/acceptance.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func registerAcceptance(r *registry) {
{"gossip/restart-node-one", runGossipRestartNodeOne},
{"rapid-restart", runRapidRestart},
{"status-server", runStatusServer},
{"version-upgrade", runVersionUpgrade},
}
for _, tc := range testCases {
tc := tc
Expand Down
Loading

0 comments on commit c5bed83

Please sign in to comment.