Skip to content

Commit 00949ca

Browse files
Punakshi Chaandpchaand
andcommitted
MESH-000-Cache log add (#980)
* MESH-0000: Add Len() method to caches and log cache lengths in controllers * MESH-0000: Add Len() method to caches and log cache lengths in controllers (#978) Co-authored-by: pchaand <[email protected]> * MESH-0000: Add Len() method to mock caches in virtualservice tests --------- Co-authored-by: pchaand <[email protected]>
1 parent 46388b1 commit 00949ca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

admiral/pkg/controller/istio/virtualservice_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,9 @@ func (m *MockVirtualServiceCache) GetVSProcessStatus(*v1alpha3.VirtualService) s
12791279
func (m *MockVirtualServiceCache) UpdateVSProcessStatus(*v1alpha3.VirtualService, string) error {
12801280
return m.Error
12811281
}
1282+
func (m *MockVirtualServiceCache) Len() int {
1283+
return 0
1284+
}
12821285

12831286
type MockIdentityNamespaceVirtualServiceCache struct {
12841287
}
@@ -1292,3 +1295,6 @@ func (m MockIdentityNamespaceVirtualServiceCache) Delete(*v1alpha3.VirtualServic
12921295
func (m MockIdentityNamespaceVirtualServiceCache) Get(string) map[string]*v1alpha3.VirtualService {
12931296
return nil
12941297
}
1298+
func (m MockIdentityNamespaceVirtualServiceCache) Len() int {
1299+
return 0
1300+
}

0 commit comments

Comments
 (0)