@@ -122,6 +122,7 @@ func createSharedTestCRs() {
122
122
GinkgoHelper ()
123
123
124
124
By ("Creating GrafanaFolder for testing" )
125
+
125
126
folderCR := & v1beta1.GrafanaFolder {
126
127
ObjectMeta : metav1.ObjectMeta {
127
128
Namespace : "default" ,
@@ -134,6 +135,7 @@ func createSharedTestCRs() {
134
135
Expect (k8sClient .Create (testCtx , folderCR )).ToNot (HaveOccurred ())
135
136
136
137
By ("Creating Grafana CRs. One Fake and one External" )
138
+
137
139
intP := 1
138
140
dummy := & v1beta1.Grafana {
139
141
ObjectMeta : metav1.ObjectMeta {
@@ -177,6 +179,7 @@ func createSharedTestCRs() {
177
179
Client : & v1beta1.GrafanaClient {TimeoutSeconds : & intP },
178
180
},
179
181
}
182
+
180
183
Expect (k8sClient .Create (testCtx , dummy )).Should (Succeed ())
181
184
Expect (k8sClient .Create (testCtx , external )).Should (Succeed ())
182
185
@@ -189,6 +192,7 @@ func createSharedTestCRs() {
189
192
Expect (k8sClient .Status ().Update (testCtx , dummy )).ToNot (HaveOccurred ())
190
193
191
194
By ("Reconciling External Grafana" )
195
+
192
196
r := GrafanaReconciler {
193
197
Client : k8sClient ,
194
198
Scheme : k8sClient .Scheme (),
@@ -199,6 +203,7 @@ func createSharedTestCRs() {
199
203
Expect (err ).ToNot (HaveOccurred ())
200
204
201
205
By ("Get External Grafana" )
206
+
202
207
externalGrafanaCr = & v1beta1.Grafana {}
203
208
Expect (k8sClient .Get (testCtx , types.NamespacedName {
204
209
Namespace : external .Namespace ,
0 commit comments