downSpec = models.CNIDelPayload{ InterfaceName: "vx-eth0", ContainerNamespace: containerNamespace.Name(), ContainerID: containerID, } By("adding the container to a network") var err error ipamResult, err = daemonClient.ContainerUp(upSpec) Expect(err).NotTo(HaveOccurred()) }) It("can delete a container that was created before ducatid was restarted", func() { var err error session.Interrupt() Eventually(session, DEFAULT_TIMEOUT).Should(gexec.Exit(0)) Eventually(serverIsAvailable, DEFAULT_TIMEOUT).ShouldNot(Succeed()) ducatiCmd = exec.Command(ducatidPath, "-configFile", configFilePath) session, err = gexec.Start(ducatiCmd, GinkgoWriter, GinkgoWriter) Expect(err).NotTo(HaveOccurred()) Eventually(serverIsAvailable).Should(Succeed()) Expect(filepath.Join(sandboxRepoDir, sandboxName)).To(BeAnExistingFile()) Expect(daemonClient.ContainerDown(downSpec)).To(Succeed()) Expect(filepath.Join(sandboxRepoDir, sandboxName)).NotTo(BeAnExistingFile()) }) }) })