summaryrefslogtreecommitdiff
path: root/libnetwork/endpoint_test.go
Commit message (Collapse)AuthorAgeFilesLines
* libnetwork: return concrete-typed *ControllerCory Snider2023-01-131-2/+1
| | | | | | | | | libnetwork.NetworkController is an interface with a single implementation. https://github.com/golang/go/wiki/CodeReviewComments#interfaces Signed-off-by: Cory Snider <csnider@mirantis.com>
* libnetwork_test: remove in-container special caseCory Snider2022-11-081-3/+1
| | | | | | | | | | | | | | | | | | | The SetupTestOSContext calls were made conditional in https://github.com/moby/libnetwork/pull/148 to work around limitations in runtime.LockOSThread() which existed before Go 1.10. This workaround is no longer necessary now that runtime.UnlockOSThread() needs to be called an equal number of times before the goroutine is unlocked from the OS thread. Unfortunately some tests break when SetupTestOSContext is not skipped. (Evidently this code path has not been exercised in a long time.) A newly-created network namespace is very barebones: it contains a loopback interface in the down state and little else. Even pinging localhost does not work inside of a brand new namespace. Set the loopback interface to up during namespace setup so that tests which need to use the loopback interface can do so. Signed-off-by: Cory Snider <csnider@mirantis.com>
* refactor: move from io/ioutil to io and os packageEng Zer Jun2021-08-271-3/+2
| | | | | | | | The io/ioutil package has been deprecated in Go 1.16. This commit replaces the existing io/ioutil functions with their new definitions in io and os packages. Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
* Update to Go 1.17.0, and gofmt with Go 1.17Sebastiaan van Stijn2021-08-241-0/+1
| | | | Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Fix libnetwork importsBrian Goff2021-06-011-3/+3
| | | | | | | | | After moving libnetwork to this repo, we need to update all the import paths for libnetwork to point to docker/docker/libnetwork instead of docker/libnetwork. This change implements that. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
* reduce parameters for func JoinOptionPriorityfanjiyun2020-05-151-1/+1
| | | | Signed-off-by: fanjiyun <fan.jiyun@zte.com.cn>
* etchosts: additionally include the container's IPv6 address if availableKamil Domański2019-09-041-0/+76
Signed-off-by: Kamil Domański <kamil@domanski.co>