|
@@ -34,6 +34,12 @@ func init() {
|
|
type DockerSuite struct {
|
|
type DockerSuite struct {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func (s *DockerSuite) OnTimeout(c *check.C) {
|
|
|
|
+ if daemonPid > 0 && isLocalDaemon {
|
|
|
|
+ signalDaemonDump(daemonPid)
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
func (s *DockerSuite) TearDownTest(c *check.C) {
|
|
func (s *DockerSuite) TearDownTest(c *check.C) {
|
|
unpauseAllContainers()
|
|
unpauseAllContainers()
|
|
deleteAllContainers()
|
|
deleteAllContainers()
|
|
@@ -54,6 +60,10 @@ type DockerRegistrySuite struct {
|
|
d *Daemon
|
|
d *Daemon
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func (s *DockerRegistrySuite) OnTimeout(c *check.C) {
|
|
|
|
+ s.d.DumpStackAndQuit()
|
|
|
|
+}
|
|
|
|
+
|
|
func (s *DockerRegistrySuite) SetUpTest(c *check.C) {
|
|
func (s *DockerRegistrySuite) SetUpTest(c *check.C) {
|
|
testRequires(c, DaemonIsLinux, RegistryHosting)
|
|
testRequires(c, DaemonIsLinux, RegistryHosting)
|
|
s.reg = setupRegistry(c, false, "", "")
|
|
s.reg = setupRegistry(c, false, "", "")
|
|
@@ -82,6 +92,10 @@ type DockerSchema1RegistrySuite struct {
|
|
d *Daemon
|
|
d *Daemon
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func (s *DockerSchema1RegistrySuite) OnTimeout(c *check.C) {
|
|
|
|
+ s.d.DumpStackAndQuit()
|
|
|
|
+}
|
|
|
|
+
|
|
func (s *DockerSchema1RegistrySuite) SetUpTest(c *check.C) {
|
|
func (s *DockerSchema1RegistrySuite) SetUpTest(c *check.C) {
|
|
testRequires(c, DaemonIsLinux, RegistryHosting, NotArm64)
|
|
testRequires(c, DaemonIsLinux, RegistryHosting, NotArm64)
|
|
s.reg = setupRegistry(c, true, "", "")
|
|
s.reg = setupRegistry(c, true, "", "")
|
|
@@ -110,6 +124,10 @@ type DockerRegistryAuthHtpasswdSuite struct {
|
|
d *Daemon
|
|
d *Daemon
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func (s *DockerRegistryAuthHtpasswdSuite) OnTimeout(c *check.C) {
|
|
|
|
+ s.d.DumpStackAndQuit()
|
|
|
|
+}
|
|
|
|
+
|
|
func (s *DockerRegistryAuthHtpasswdSuite) SetUpTest(c *check.C) {
|
|
func (s *DockerRegistryAuthHtpasswdSuite) SetUpTest(c *check.C) {
|
|
testRequires(c, DaemonIsLinux, RegistryHosting)
|
|
testRequires(c, DaemonIsLinux, RegistryHosting)
|
|
s.reg = setupRegistry(c, false, "htpasswd", "")
|
|
s.reg = setupRegistry(c, false, "htpasswd", "")
|
|
@@ -140,6 +158,10 @@ type DockerRegistryAuthTokenSuite struct {
|
|
d *Daemon
|
|
d *Daemon
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func (s *DockerRegistryAuthTokenSuite) OnTimeout(c *check.C) {
|
|
|
|
+ s.d.DumpStackAndQuit()
|
|
|
|
+}
|
|
|
|
+
|
|
func (s *DockerRegistryAuthTokenSuite) SetUpTest(c *check.C) {
|
|
func (s *DockerRegistryAuthTokenSuite) SetUpTest(c *check.C) {
|
|
testRequires(c, DaemonIsLinux, RegistryHosting)
|
|
testRequires(c, DaemonIsLinux, RegistryHosting)
|
|
s.d = NewDaemon(c)
|
|
s.d = NewDaemon(c)
|
|
@@ -175,6 +197,10 @@ type DockerDaemonSuite struct {
|
|
d *Daemon
|
|
d *Daemon
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func (s *DockerDaemonSuite) OnTimeout(c *check.C) {
|
|
|
|
+ s.d.DumpStackAndQuit()
|
|
|
|
+}
|
|
|
|
+
|
|
func (s *DockerDaemonSuite) SetUpTest(c *check.C) {
|
|
func (s *DockerDaemonSuite) SetUpTest(c *check.C) {
|
|
testRequires(c, DaemonIsLinux)
|
|
testRequires(c, DaemonIsLinux)
|
|
s.d = NewDaemon(c)
|
|
s.d = NewDaemon(c)
|
|
@@ -218,6 +244,14 @@ type DockerSwarmSuite struct {
|
|
portIndex int
|
|
portIndex int
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func (s *DockerSwarmSuite) OnTimeout(c *check.C) {
|
|
|
|
+ s.daemonsLock.Lock()
|
|
|
|
+ defer s.daemonsLock.Unlock()
|
|
|
|
+ for _, d := range s.daemons {
|
|
|
|
+ d.DumpStackAndQuit()
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
func (s *DockerSwarmSuite) SetUpTest(c *check.C) {
|
|
func (s *DockerSwarmSuite) SetUpTest(c *check.C) {
|
|
testRequires(c, DaemonIsLinux)
|
|
testRequires(c, DaemonIsLinux)
|
|
}
|
|
}
|