Failing when port is specified with labels

Resolves #522
Kompose will give FATAL error if labels are given but ports are not defined
This commit is contained in:
Suraj Narwade committed 2017-06-15 09:30:01 +05:30
1 parent 49ada134ae
commit 209cda28d2
5 files changed
+47 -1

No files matched your search

+4
View File
@@ -200,6 +200,10 @@ convert::expect_success_and_warning "kompose --provider openshift -f $KOMPOSE_RO
# Test regarding validating dockerfilepath
convert::expect_failure "kompose -f $KOMPOSE_ROOT/script/test/fixtures/dockerfilepath/docker-compose.yml convert --stdout"
# Test regarding while label (nodeport or loadbalancer ) is provided but not ports
convert::expect_failure "kompose -f $KOMPOSE_ROOT/script/test/fixtures/label-port/docker-compose.yml convert --stdout"
######
# Test the output file behavior of kompose convert
# Default behavior without -o