VOL-1904 openolt adapter reconcile. along with the local caches data is stored in kv store as well.
child device cache is not removed as it is used to get child devices,
it will anyway be rebuilt even after adapter restart.
One more cache (flowsUsedByGemPort) got reintroduced recently which will be fixed later.
Updated test files as well.
Change-Id: I43378ff682f29477b22d61a76b0a721e83422853
diff --git a/adaptercore/resourcemanager/resourcemanager_test.go b/adaptercore/resourcemanager/resourcemanager_test.go
index 3c45df5..1eac99f 100644
--- a/adaptercore/resourcemanager/resourcemanager_test.go
+++ b/adaptercore/resourcemanager/resourcemanager_test.go
@@ -428,8 +428,8 @@
type args struct {
PONIntfID uint32
- ONUID uint32
- UNIID uint32
+ ONUID int32
+ UNIID int32
}
tests := []struct {
name string
@@ -477,8 +477,8 @@
type args struct {
ponIntfID uint32
- ONUID uint32
- uniID uint32
+ ONUID int32
+ uniID int32
gemportID uint32
flowStoreCookie uint64
flowCategory string
@@ -625,8 +625,8 @@
func TestOpenOltResourceMgr_IsFlowCookieOnKVStore(t *testing.T) {
type args struct {
ponIntfID uint32
- onuID uint32
- uniID uint32
+ onuID int32
+ uniID int32
flowStoreCookie uint64
}
tests := []struct {
@@ -907,6 +907,7 @@
}},
1,
"HSIA_FLOW",
+ 2000,
},
{
&openolt.Flow{
@@ -914,6 +915,7 @@
},
1,
"EAPOL",
+ 3000,
},
}
tests := []struct {