mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 06:10:23 -04:00
22 lines
540 B
Go
22 lines
540 B
Go
![]() |
package daemon // import "github.com/docker/docker/daemon"
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/docker/docker/api/types/network"
|
||
|
"github.com/docker/docker/errdefs"
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
// Test case for 35752
|
||
|
func TestVerifyNetworkingConfig(t *testing.T) {
|
||
|
name := "mynet"
|
||
|
endpoints := make(map[string]*network.EndpointSettings, 1)
|
||
|
endpoints[name] = nil
|
||
|
nwConfig := &network.NetworkingConfig{
|
||
|
EndpointsConfig: endpoints,
|
||
|
}
|
||
|
err := verifyNetworkingConfig(nwConfig)
|
||
|
assert.True(t, errdefs.IsInvalidParameter(err))
|
||
|
}
|