Initial commit
This commit is contained in:
23
vendor/github.com/hyperhq/libcompose/docker/service_test.go
generated
vendored
Normal file
23
vendor/github.com/hyperhq/libcompose/docker/service_test.go
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
package docker
|
||||
|
||||
/*
|
||||
func TestSpecifiesHostPort(t *testing.T) {
|
||||
servicesWithHostPort := []Service{
|
||||
{serviceConfig: &config.ServiceConfig{Ports: []string{"8000:8000"}}},
|
||||
{serviceConfig: &config.ServiceConfig{Ports: []string{"127.0.0.1:8000:8000"}}},
|
||||
}
|
||||
|
||||
for _, service := range servicesWithHostPort {
|
||||
assert.True(t, service.specificiesHostPort())
|
||||
}
|
||||
|
||||
servicesWithoutHostPort := []Service{
|
||||
{serviceConfig: &config.ServiceConfig{Ports: []string{"8000"}}},
|
||||
{serviceConfig: &config.ServiceConfig{Ports: []string{"127.0.0.1::8000"}}},
|
||||
}
|
||||
|
||||
for _, service := range servicesWithoutHostPort {
|
||||
assert.False(t, service.specificiesHostPort())
|
||||
}
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user