bsc: Fix the test failure by initializing the osmoExtension
This commit is contained in:
parent
889e86d488
commit
66e565df5e
|
@ -27,7 +27,12 @@ peer address, the lac, if it is connected'>
|
|||
|
||||
BSCConfigItem class >> initWith: aPeer name: aName [
|
||||
^ self new
|
||||
peer: aPeer; name: aName; lac: -1; connected: false; yourself
|
||||
peer: aPeer;
|
||||
name: aName;
|
||||
connected: false;
|
||||
sendOsmoRSIP: false;
|
||||
lac: -1;
|
||||
yourself
|
||||
]
|
||||
|
||||
BSCConfigItem class >> resolveAddress: aPeer [
|
||||
|
|
|
@ -91,16 +91,16 @@ TestCase subclass: BSCConfigTest [
|
|||
|
||||
cfg := BSCConfig new.
|
||||
self shouldnt:
|
||||
[cfg addBSC: '127.0.0.1' withName: 'abc1' andLac: 2311]
|
||||
[cfg addBSC: '127.0.0.1' withName: 'abc1' andLac: 2311 sendOsmoRSIP: false]
|
||||
raise: Exception description: 'Simply adding it'.
|
||||
self should:
|
||||
[cfg addBSC: '127.0.0.1' withName: 'abc2' andLac: 1123]
|
||||
[cfg addBSC: '127.0.0.1' withName: 'abc2' andLac: 1123 sendOsmoRSIP: false]
|
||||
raise: Exception description: 'Same IP is forbidden'.
|
||||
self should:
|
||||
[cfg addBSC: '127.0.0.2' withName: 'abc3' andLac: 2311]
|
||||
[cfg addBSC: '127.0.0.2' withName: 'abc3' andLac: 2311 sendOsmoRSIP: false]
|
||||
raise: Exception description: 'Different IP same lac'.
|
||||
self shouldnt:
|
||||
[cfg addBSC: '127.0.0.2' withName: 'abc4' andLac: 1123]
|
||||
[cfg addBSC: '127.0.0.2' withName: 'abc4' andLac: 1123 sendOsmoRSIP: false]
|
||||
raise: Exception description: 'Different IP, different lac'.
|
||||
|
||||
self assert: cfg bscList size = 2 description: 'Two BSCs should be registered'.
|
||||
|
|
Reference in New Issue