(t *testing.T)
| 231 | } |
| 232 | |
| 233 | func TestConvertServiceNetworksOnlyDefault(t *testing.T) { |
| 234 | networkConfigs := networkMap{} |
| 235 | |
| 236 | configs, err := convertServiceNetworks( |
| 237 | nil, networkConfigs, NewNamespace("foo"), "service") |
| 238 | |
| 239 | expected := []swarm.NetworkAttachmentConfig{ |
| 240 | { |
| 241 | Target: "foo_default", |
| 242 | Aliases: []string{"service"}, |
| 243 | }, |
| 244 | } |
| 245 | |
| 246 | assert.NilError(t, err) |
| 247 | assert.Check(t, is.DeepEqual(expected, configs)) |
| 248 | } |
| 249 | |
| 250 | func TestConvertServiceNetworks(t *testing.T) { |
| 251 | networkConfigs := networkMap{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…