diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-10-04 15:01:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-04 15:01:38 -0400 |
commit | 2f72f17a114f4e20b56deb2c21908d1d4610919c (patch) | |
tree | 27d03a819da8a21414a7a312b5d9d3b8c319ba42 /libpod/network/cni/config_test.go | |
parent | 800e91dafd47c284489be586bd18c3cdf7dc5737 (diff) | |
parent | a726043d0b5c4ff9e59b01f2a48c575d53d67ed0 (diff) | |
download | podman-2f72f17a114f4e20b56deb2c21908d1d4610919c.tar.gz podman-2f72f17a114f4e20b56deb2c21908d1d4610919c.tar.bz2 podman-2f72f17a114f4e20b56deb2c21908d1d4610919c.zip |
Merge pull request #11846 from Luap99/network-reload
CNI networks: reload networks if needed
Diffstat (limited to 'libpod/network/cni/config_test.go')
-rw-r--r-- | libpod/network/cni/config_test.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/libpod/network/cni/config_test.go b/libpod/network/cni/config_test.go index 288cf4626..5b0feb859 100644 --- a/libpod/network/cni/config_test.go +++ b/libpod/network/cni/config_test.go @@ -1020,28 +1020,6 @@ var _ = Describe("Config", func() { Expect(err).To(HaveOccurred()) Expect(err.Error()).To(ContainSubstring("subnet 10.10.0.0/24 is already used on the host or by another config")) }) - - It("remove network should not error when config file does not exists on disk", func() { - name := "mynet" - network := types.Network{Name: name} - _, err := libpodNet.NetworkCreate(network) - Expect(err).To(BeNil()) - - path := filepath.Join(cniConfDir, name+".conflist") - Expect(path).To(BeARegularFile()) - - err = os.Remove(path) - Expect(err).To(BeNil()) - Expect(path).ToNot(BeARegularFile()) - - err = libpodNet.NetworkRemove(name) - Expect(err).To(BeNil()) - - nets, err := libpodNet.NetworkList() - Expect(err).To(BeNil()) - Expect(nets).To(HaveLen(1)) - Expect(nets).ToNot(ContainElement(HaveNetworkName(name))) - }) }) Context("network load valid existing ones", func() { |