@@ -18,6 +18,8 @@ package controlplane_test
18
18
19
19
import (
20
20
"context"
21
+ "fmt"
22
+ "time"
21
23
22
24
kauthn "k8s.io/api/authorization/v1"
23
25
"sigs.k8s.io/controller-runtime/pkg/client"
@@ -32,8 +34,11 @@ import (
32
34
var _ = Describe ("Control Plane" , func () {
33
35
It ("should start and stop successfully with a default root shard" , func () {
34
36
plane := & Kcp {}
37
+ By (fmt .Sprintf ("starting the plane at %s" , time .Now ()))
35
38
Expect (plane .Start ()).To (Succeed ())
39
+ By (fmt .Sprintf ("stopping the plane at %s" , time .Now ()))
36
40
Expect (plane .Stop ()).To (Succeed ())
41
+ By (fmt .Sprintf ("stopped the plane at %s" , time .Now ()))
37
42
})
38
43
It ("should use the given shard when starting, if present" , func () {
39
44
rootShard := & Shard {}
@@ -52,20 +57,30 @@ var _ = Describe("Control Plane", func() {
52
57
// contract, but it's not clear how much else we actually need to handle, or
53
58
// whether or not this is a safe operation.
54
59
plane := & Kcp {}
60
+ By (fmt .Sprintf ("starting the plane at %s" , time .Now ()))
55
61
Expect (plane .Start ()).To (Succeed ())
62
+ By (fmt .Sprintf ("stopping the plane at %s" , time .Now ()))
56
63
Expect (plane .Stop ()).To (Succeed ())
64
+ By (fmt .Sprintf ("stopped the plane at %s" , time .Now ()))
65
+
66
+ By (fmt .Sprintf ("starting the plane at %s" , time .Now ()))
57
67
Expect (plane .Start ()).To (Succeed ())
68
+ By (fmt .Sprintf ("stopping the plane at %s" , time .Now ()))
58
69
Expect (plane .Stop ()).To (Succeed ())
70
+ By (fmt .Sprintf ("stopped the plane at %s" , time .Now ()))
59
71
})
60
72
61
73
Context ("after having started" , func () {
62
74
var plane * Kcp
63
75
BeforeEach (func () {
64
76
plane = & Kcp {}
77
+ By (fmt .Sprintf ("starting the plane at %s" , time .Now ()))
65
78
Expect (plane .Start ()).To (Succeed ())
66
79
})
67
80
AfterEach (func () {
81
+ By (fmt .Sprintf ("stopping the plane at %s" , time .Now ()))
68
82
Expect (plane .Stop ()).To (Succeed ())
83
+ By (fmt .Sprintf ("stopped the plane at %s" , time .Now ()))
69
84
})
70
85
71
86
It ("should provision a working legacy user and legacy kubectl" , func () {
0 commit comments