portmap: Don't accept a port number of 0
authorCasey Callendrello <casey.callendrello@coreos.com>
Wed, 14 Jun 2017 18:05:44 +0000 (20:05 +0200)
committerCasey Callendrello <casey.callendrello@coreos.com>
Thu, 15 Jun 2017 12:00:04 +0000 (14:00 +0200)
commit83ec9bb73fc32eb5f8524cf13af1869aff23b189
tree2bf26beefb0a0e28efdb676c9a9e1e1a61c9a4d5
parent45650feb3235863a70af4873791d43dac7868869
portmap: Don't accept a port number of 0

This also adds more testing around configuration parsing.
plugins/meta/portmap/main.go
plugins/meta/portmap/portmap_integ_test.go
plugins/meta/portmap/portmap_test.go