@@ -120,6 +120,7 @@ func newNameSpace(name, rv string, labels map[string]string) *corev1.Namespace {
120120}
121121
122122func addNamespace (t * testing.T , f * nameSpaceFixture , nsObj * corev1.Namespace ) {
123+ t .Logf ("Calling add namespace event" )
123124 f .nsController .addNamespace (nsObj )
124125 if f .nsController .workqueue .Len () == 0 {
125126 t .Logf ("Add Namespace: worker queue length is 0 " )
@@ -130,11 +131,15 @@ func addNamespace(t *testing.T, f *nameSpaceFixture, nsObj *corev1.Namespace) {
130131
131132func updateNamespace (t * testing.T , f * nameSpaceFixture , oldNsObj , newNsObj * corev1.Namespace ) {
132133 addNamespace (t , f , oldNsObj )
134+ t .Logf ("Complete add namespace event" )
135+
136+ t .Logf ("Updating kubeinformer namespace object" )
133137 err := f .kubeInformer .Core ().V1 ().Namespaces ().Informer ().GetIndexer ().Update (newNsObj )
134138 if err != nil {
135139 f .t .Errorf ("Error updating namespace to informer: %v" , err )
136140 }
137141
142+ t .Logf ("Calling update namespace event" )
138143 f .nsController .updateNamespace (oldNsObj , newNsObj )
139144 if f .nsController .workqueue .Len () == 0 {
140145 t .Logf ("Update Namespace: worker queue length is 0 " )
@@ -145,10 +150,14 @@ func updateNamespace(t *testing.T, f *nameSpaceFixture, oldNsObj, newNsObj *core
145150
146151func deleteNamespace (t * testing.T , f * nameSpaceFixture , nsObj * corev1.Namespace , isDeletedFinalStateUnknownObject IsDeletedFinalStateUnknownObject ) {
147152 addNamespace (t , f , nsObj )
153+ t .Logf ("Complete add namespace event" )
154+
155+ t .Logf ("Updating kubeinformer namespace object" )
148156 err := f .kubeInformer .Core ().V1 ().Namespaces ().Informer ().GetIndexer ().Delete (nsObj )
149157 if err != nil {
150158 f .t .Errorf ("Error deleting namespace to informer: %v" , err )
151159 }
160+ t .Logf ("Calling delete namespace event" )
152161 if isDeletedFinalStateUnknownObject {
153162 tombstone := cache.DeletedFinalStateUnknown {
154163 Key : nsObj .Name ,
0 commit comments