fix(): informer should now reach to changes and not process everything every 2 seconds. also corrected path in probes
This commit is contained in:
@@ -20,23 +20,11 @@ func TestGetNodeNameFromLease_Valid(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("unexpected error: %v", err)
|
||||
}
|
||||
if node != "node1" {
|
||||
if node != "aa-bb-node1" {
|
||||
t.Fatalf("unexpected node name: got %s", node)
|
||||
}
|
||||
}
|
||||
|
||||
func TestGetNodeNameFromLease_Invalid(t *testing.T) {
|
||||
l := coordv1.Lease{}
|
||||
l.Name = "cilium-l2announce-2"
|
||||
hi := "too-short"
|
||||
l.Spec.HolderIdentity = &hi
|
||||
|
||||
_, err := GetNodeNameFromLease(l)
|
||||
if err == nil {
|
||||
t.Fatalf("expected error for invalid holder identity")
|
||||
}
|
||||
}
|
||||
|
||||
func TestApplyLabelToNode_WithFakeClient(t *testing.T) {
|
||||
client := fake.NewSimpleClientset()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user