allow to set image without a tag

This commit is contained in:
Nestor
2019-05-10 17:27:49 +02:00
parent 540e4023da
commit e4159d9411
2 changed files with 22 additions and 3 deletions

View File

@@ -84,6 +84,18 @@ func TestSetImage(t *testing.T) {
" name: image1",
}},
},
{
description: "<image>=<image>",
given: given{
args: []string{"ngnix=localhost:5000/my-project/ngnix"},
},
expected: expected{
fileOutput: []string{
"images:",
"- name: ngnix",
" newName: localhost:5000/my-project/ngnix",
}},
},
{
given: given{
args: []string{"ngnix=localhost:5000/my-project/ngnix:dev-01"},