Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix vvctl e2e #486

Merged
merged 1 commit into from
Oct 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions test/e2e/vcctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Use "vcctl job [command] --help" for more information about a command.
})

It("Command: vcctl job list --help", func() {
home := os.Getenv("HOME")
kubeConfig := os.Getenv("KUBECONFIG")
var output = `
list job information

Expand All @@ -90,7 +90,7 @@ Usage:
Flags:
--all-namespaces list jobs in all namespaces
-h, --help help for list
-k, --kubeconfig string (optional) absolute path to the kubeconfig file (default "` + home + `/.kube/config")
-k, --kubeconfig string (optional) absolute path to the kubeconfig file (default "` + kubeConfig + `")
-s, --master string the address of apiserver
-n, --namespace string the namespace of job (default "default")
-S, --scheduler string list job with specified scheduler name
Expand All @@ -107,7 +107,7 @@ Global Flags:
})

It("Command: vkctl job suspend -n {$JobName} --help", func() {
home := os.Getenv("HOME")
kubeConfig := os.Getenv("KUBECONFIG")
var output = `
abort a job

Expand All @@ -116,7 +116,7 @@ Usage:

Flags:
-h, --help help for suspend
-k, --kubeconfig string (optional) absolute path to the kubeconfig file (default "` + home + `/.kube/config")
-k, --kubeconfig string (optional) absolute path to the kubeconfig file (default "` + kubeConfig + `")
-s, --master string the address of apiserver
-N, --name string the name of job
-n, --namespace string the namespace of job (default "default")
Expand All @@ -132,7 +132,7 @@ Global Flags:
})

It("vkctl job resume -n {$JobName} --help", func() {
home := os.Getenv("HOME")
kubeConfig := os.Getenv("KUBECONFIG")
var output = `
resume a job

Expand All @@ -141,7 +141,7 @@ Usage:

Flags:
-h, --help help for resume
-k, --kubeconfig string (optional) absolute path to the kubeconfig file (default "` + home + `/.kube/config")
-k, --kubeconfig string (optional) absolute path to the kubeconfig file (default "` + kubeConfig + `")
-s, --master string the address of apiserver
-N, --name string the name of job
-n, --namespace string the namespace of job (default "default")
Expand All @@ -157,7 +157,7 @@ Global Flags:
})

It("vkctl job run --help", func() {
home := os.Getenv("HOME")
kubeConfig := os.Getenv("KUBECONFIG")
var output = `
run job by parameters from the command line

Expand All @@ -168,7 +168,7 @@ Flags:
-f, --filename string the yaml file of job
-h, --help help for run
-i, --image string the container image of job (default "busybox")
-k, --kubeconfig string (optional) absolute path to the kubeconfig file (default "` + home + `/.kube/config")
-k, --kubeconfig string (optional) absolute path to the kubeconfig file (default "` + kubeConfig + `")
-L, --limits string the resource limit of the task (default "cpu=1000m,memory=100Mi")
-s, --master string the address of apiserver
-m, --min int the minimal available tasks of job (default 1)
Expand Down