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
t.Logf("Check that the in-workspace webhook was NOT called")
213
-
require.Zero(t, testWebhooks[targetPath].Calls(), "in-workspace webhook should not have been called")
214
-
215
212
t.Logf("Check that the logicalcluster annotation on the object that triggered webhook is matching the target cluster")
216
213
require.Equal(t, targetWS.Spec.Cluster, clusterInReviewObject.Load(), "expected that the object passed to the webhook has correct kcp.io/cluster annotation set")
214
+
215
+
t.Logf("Create an APIBinding in workspace %q that points to the today-cowboys export", sourcePath)
t.Logf("Check that the logicalcluster annotation on the object that triggered webhook is matching the source cluster")
238
+
require.Equal(t, sourceWS.Spec.Cluster, clusterInReviewObject.Load(), "expected that the object passed to the webhook has correct kcp.io/cluster annotation set")
239
+
240
+
t.Logf("Check that the in-workspace webhook was NOT called")
241
+
require.Zero(t, testWebhooks[targetPath].Calls(), "in-workspace webhook should not have been called")
t.Logf("Check that the in-workspace webhook was NOT called")
386
-
require.Zero(t, testWebhooks[targetPath].Calls(), "in-workspace webhook should not have been called")
387
-
388
410
t.Logf("Check that the logicalcluster annotation on the object that triggered webhook is matching the target cluster")
389
411
require.Equal(t, targetWS.Spec.Cluster, clusterInReviewObject.Load(), "expected that the object passed to the webhook has correct kcp.io/cluster annotation set")
412
+
413
+
t.Logf("Create an APIBinding in workspace %q that points to the today-cowboys export", sourcePath)
t.Logf("Check that the logicalcluster annotation on the object that triggered webhook is matching the source cluster")
436
+
require.Equal(t, sourceWS.Spec.Cluster, clusterInReviewObject.Load(), "expected that the object passed to the webhook has correct kcp.io/cluster annotation set")
437
+
438
+
t.Logf("Check that the in-workspace webhook was NOT called")
439
+
require.Zero(t, testWebhooks[targetPath].Calls(), "in-workspace webhook should not have been called")
0 commit comments