Skip to content

Commit

Permalink
fix(tests): Fixes command noun for a few test cases. (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtk54 authored Dec 18, 2018
1 parent 235efa0 commit a32b8a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/pipeline-template/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func TestPipelineGet_notfound(t *testing.T) {
pipelineTemplateCmd.AddCommand(currentCmd)
rootCmd.AddCommand(pipelineTemplateCmd)

args := []string{"pipeline", "get", "--application", "app", "--name", "two", "--gate-endpoint", ts.URL}
args := []string{"pipeline-template", "get", "--application", "app", "--name", "two", "--gate-endpoint", ts.URL}
rootCmd.SetArgs(args)

err := rootCmd.Execute()
Expand Down
4 changes: 2 additions & 2 deletions cmd/pipeline-template/save_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func TestPipelineTemplateSave_missingid(t *testing.T) {
}
defer os.Remove(tempFile.Name())

args := []string{"pipeline", "save", "--file", tempFile.Name(), "--gate-endpoint", ts.URL}
args := []string{"pipeline-template", "save", "--file", tempFile.Name(), "--gate-endpoint", ts.URL}
currentCmd := NewSaveCmd(pipelineTemplateOptions{})
rootCmd := getRootCmdForTest()
pipelineTemplateCmd := NewPipelineTemplateCmd(os.Stdout)
Expand All @@ -177,7 +177,7 @@ func TestPipelineTemplateSave_missingschema(t *testing.T) {
}
defer os.Remove(tempFile.Name())

args := []string{"pipeline", "save", "--file", tempFile.Name(), "--gate-endpoint", ts.URL}
args := []string{"pipeline-template", "save", "--file", tempFile.Name(), "--gate-endpoint", ts.URL}
currentCmd := NewSaveCmd(pipelineTemplateOptions{})
rootCmd := getRootCmdForTest()
pipelineTemplateCmd := NewPipelineTemplateCmd(os.Stdout)
Expand Down

0 comments on commit a32b8a4

Please sign in to comment.