Browse Source

functional-tester: move "etcd-runner" to "./cmd"

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
e170d40f90

+ 6 - 0
tools/functional-tester/etcd-runner/doc.go → tools/functional-tester/cmd/etcd-runner/main.go

@@ -14,3 +14,9 @@
 
 // etcd-runner is a program for testing etcd clientv3 features against a fault injected cluster.
 package main
+
+import "github.com/coreos/etcd/tools/functional-tester/runner"
+
+func main() {
+	runner.Start()
+}

+ 0 - 22
tools/functional-tester/etcd-runner/main.go

@@ -1,22 +0,0 @@
-// Copyright 2016 The etcd Authors
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// etcd-runner is a command line application that performs tests on etcd.
-package main
-
-import "github.com/coreos/etcd/tools/functional-tester/etcd-runner/command"
-
-func main() {
-	command.Start()
-}

+ 1 - 1
tools/functional-tester/etcd-runner/command/election_command.go → tools/functional-tester/runner/election_command.go

@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-package command
+package runner
 
 import (
 	"context"

+ 1 - 1
tools/functional-tester/etcd-runner/command/error.go → tools/functional-tester/runner/error.go

@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-package command
+package runner
 
 import (
 	"fmt"

+ 1 - 1
tools/functional-tester/etcd-runner/command/global.go → tools/functional-tester/runner/global.go

@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-package command
+package runner
 
 import (
 	"context"

+ 1 - 1
tools/functional-tester/etcd-runner/command/help.go → tools/functional-tester/runner/help.go

@@ -14,7 +14,7 @@
 
 // copied from https://github.com/rkt/rkt/blob/master/rkt/help.go
 
-package command
+package runner
 
 import (
 	"bytes"

+ 1 - 1
tools/functional-tester/etcd-runner/command/lease_renewer_command.go → tools/functional-tester/runner/lease_renewer_command.go

@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-package command
+package runner
 
 import (
 	"context"

+ 1 - 1
tools/functional-tester/etcd-runner/command/lock_racer_command.go → tools/functional-tester/runner/lock_racer_command.go

@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-package command
+package runner
 
 import (
 	"context"

+ 2 - 2
tools/functional-tester/etcd-runner/command/root.go → tools/functional-tester/runner/root.go

@@ -12,8 +12,8 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-// Package command implements individual etcd-runner commands for the etcd-runner utility.
-package command
+// Package runner implements individual etcd-runner commands for the etcd-runner utility.
+package runner
 
 import (
 	"log"

+ 1 - 1
tools/functional-tester/etcd-runner/command/watch_command.go → tools/functional-tester/runner/watch_command.go

@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-package command
+package runner
 
 import (
 	"context"