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
}, wait.ForeverTestTimeout, 100*time.Millisecond, "failed to create cowboy resource")
210
210
211
-
t.Logf("Check that the in-workspace webhook was NOT called")
212
-
require.Zero(t, testWebhooks[targetPath].Calls(), "in-workspace webhook should not have been called")
213
-
214
211
t.Logf("Check that the logicalcluster annotation on the object that triggered webhook is matching the target cluster")
215
212
require.Equal(t, targetWS.Spec.Cluster, clusterInReviewObject.Load(), "expected that the object passed to the webhook has correct kcp.io/cluster annotation set")
213
+
214
+
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")
237
+
require.Equal(t, sourceWS.Spec.Cluster, clusterInReviewObject.Load(), "expected that the object passed to the webhook has correct kcp.io/cluster annotation set")
238
+
239
+
t.Logf("Check that the in-workspace webhook was NOT called")
240
+
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")
385
-
require.Zero(t, testWebhooks[targetPath].Calls(), "in-workspace webhook should not have been called")
386
-
387
409
t.Logf("Check that the logicalcluster annotation on the object that triggered webhook is matching the target cluster")
388
410
require.Equal(t, targetWS.Spec.Cluster, clusterInReviewObject.Load(), "expected that the object passed to the webhook has correct kcp.io/cluster annotation set")
411
+
412
+
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")
435
+
require.Equal(t, sourceWS.Spec.Cluster, clusterInReviewObject.Load(), "expected that the object passed to the webhook has correct kcp.io/cluster annotation set")
436
+
437
+
t.Logf("Check that the in-workspace webhook was NOT called")
438
+
require.Zero(t, testWebhooks[targetPath].Calls(), "in-workspace webhook should not have been called")
0 commit comments