Code Review
/
ric-plt
/
e2mgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
x2_reset_response.go was added
[ric-plt/e2mgr.git]
/
E2Manager
/
rNibWriter
/
rNibWriter_test.go
diff --git
a/E2Manager/rNibWriter/rNibWriter_test.go
b/E2Manager/rNibWriter/rNibWriter_test.go
index
14abb1a
..
63a5d18
100644
(file)
--- a/
E2Manager/rNibWriter/rNibWriter_test.go
+++ b/
E2Manager/rNibWriter/rNibWriter_test.go
@@
-131,10
+131,8
@@
func TestUpdateNodebInfoMissingInventoryNameFailure(t *testing.T) {
assert.Equal(t, common.VALIDATION_ERROR, rNibErr.GetCode())
}
assert.Equal(t, common.VALIDATION_ERROR, rNibErr.GetCode())
}
-func TestUpdateNodebInfoMissingGlobalNbId
Failure
(t *testing.T) {
+func TestUpdateNodebInfoMissingGlobalNbId(t *testing.T) {
inventoryName := "name"
inventoryName := "name"
- plmnId := "02f829"
- nbId := "4a952a0a"
writerPool = nil
sdlInstanceMock := initSdlInstanceMock(namespace, 1)
w := GetRNibWriter()
writerPool = nil
sdlInstanceMock := initSdlInstanceMock(namespace, 1)
w := GetRNibWriter()
@@
-148,16
+146,12
@@
func TestUpdateNodebInfoMissingGlobalNbIdFailure(t *testing.T) {
var setExpected []interface{}
nodebNameKey := fmt.Sprintf("RAN:%s", inventoryName)
var setExpected []interface{}
nodebNameKey := fmt.Sprintf("RAN:%s", inventoryName)
- nodebIdKey := fmt.Sprintf("ENB:%s:%s", plmnId, nbId)
setExpected = append(setExpected, nodebNameKey, data)
setExpected = append(setExpected, nodebNameKey, data)
- setExpected = append(setExpected, nodebIdKey, data)
-
sdlInstanceMock.On("Set", []interface{}{setExpected}).Return(e)
rNibErr := w.UpdateNodebInfo(nodebInfo)
sdlInstanceMock.On("Set", []interface{}{setExpected}).Return(e)
rNibErr := w.UpdateNodebInfo(nodebInfo)
- assert.NotNil(t, rNibErr)
- assert.Equal(t, common.VALIDATION_ERROR, rNibErr.GetCode())
+ assert.Nil(t, rNibErr)
}
func TestSaveEnb(t *testing.T) {
}
func TestSaveEnb(t *testing.T) {