You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docker-controller-scala-core/src/main/scala/com/github/j5ik2o/dockerController/DockerControllerHelper.scala
Copy file name to clipboardExpand all lines: docker-controller-scala-scalatest/src/main/scala/com/github/j5ik2o/dockerController/DockerControllerSpecSupport.scala
+14-6Lines changed: 14 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,11 @@ trait DockerControllerSpecSupport extends SuiteMixin with DockerControllerHelper
15
15
testName: Option[String]
16
16
):Boolean= {
17
17
if (this.createRemoveLifecycle == createRemoveLifecycle) {
18
+
beforeCreateContainers()
18
19
for (dockerController <- dockerControllers) {
19
20
createDockerContainer(dockerController, testName)
20
21
}
22
+
afterCreateContainers()
21
23
true
22
24
} elsefalse
23
25
}
@@ -27,9 +29,11 @@ trait DockerControllerSpecSupport extends SuiteMixin with DockerControllerHelper
27
29
testName: Option[String]
28
30
):Boolean= {
29
31
if (this.startStopLifecycle == startStopLifecycle) {
32
+
beforeStartContainers()
30
33
for (dockerController <- dockerControllers) {
31
34
startDockerContainer(dockerController, testName)
32
35
}
36
+
afterStartContainers()
33
37
true
34
38
} elsefalse
35
39
}
@@ -39,9 +43,11 @@ trait DockerControllerSpecSupport extends SuiteMixin with DockerControllerHelper
39
43
testName: Option[String]
40
44
):Boolean= {
41
45
if (this.startStopLifecycle == startStopLifecycle) {
46
+
beforeStopContainers()
42
47
for (dockerController <- dockerControllers) {
43
48
stopDockerContainer(dockerController, testName)
44
49
}
50
+
afterStopContainers()
45
51
true
46
52
} elsefalse
47
53
}
@@ -51,17 +57,23 @@ trait DockerControllerSpecSupport extends SuiteMixin with DockerControllerHelper
51
57
testName: Option[String]
52
58
):Boolean= {
53
59
if (this.createRemoveLifecycle == createRemoveLifecycle) {
0 commit comments