cmd: make createDeployment a private function

This commit is contained in:
Alexander Campbell
2017-05-25 12:30:19 -07:00
parent f9913c4948
commit 066dbb7206
2 changed files with 3 additions and 4 deletions

View File

@@ -80,6 +80,6 @@ func TestCreateDeploymentNoImage(t *testing.T) {
cmd := NewCmdCreateDeployment(f, buf, buf)
cmd.Flags().Set("dry-run", "true")
cmd.Flags().Set("output", "name")
err := CreateDeployment(f, buf, buf, cmd, []string{depName})
err := createDeployment(f, buf, buf, cmd, []string{depName})
assert.Error(t, err, "at least one image must be specified")
}