func TestDefaultNetworkName(t *testing.T) { networks := manifest.Networks{} s := manifest.Service{ Networks: networks, } assert.Equal(t, s.NetworkName(), "") }
func TestNetworkName(t *testing.T) { networks := manifest.Networks{ "foo": manifest.InternalNetwork{ "external": manifest.ExternalNetwork{ Name: "foonet", }, }, } s := manifest.Service{ Networks: networks, } assert.Equal(t, s.NetworkName(), "foonet") }