projects
/
osm
/
SO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'v2.0'
[osm/SO.git]
/
rwlaunchpad
/
plugins
/
rwautoscaler
/
test
/
utest_autoscaler_dts.py
diff --git
a/rwlaunchpad/plugins/rwautoscaler/test/utest_autoscaler_dts.py
b/rwlaunchpad/plugins/rwautoscaler/test/utest_autoscaler_dts.py
index
78342ce
..
c00ca11
100644
(file)
--- a/
rwlaunchpad/plugins/rwautoscaler/test/utest_autoscaler_dts.py
+++ b/
rwlaunchpad/plugins/rwautoscaler/test/utest_autoscaler_dts.py
@@
-37,7
+37,8
@@
from gi.repository import (
RwLaunchpadYang as launchpadyang,
RwVnfrYang,
RwVnfdYang,
RwLaunchpadYang as launchpadyang,
RwVnfrYang,
RwVnfdYang,
- RwNsdYang
+ RwNsdYang,
+ VnfrYang
)
)
@@
-97,10
+98,9
@@
class MockStore():
store.get_vnfd = mock.MagicMock(return_value=mock_vnfd)
store.get_vnfd = mock.MagicMock(return_value=mock_vnfd)
- mock_vnfr = RwVnfrYang.YangData_Vnfr_VnfrCatalog_Vnfr.from_dict({
- 'id': '1',
- 'vnfd_ref': '1',
- })
+ mock_vnfr = RwVnfrYang.YangData_Vnfr_VnfrCatalog_Vnfr.from_dict({'id': '1'})
+ mock_vnfr.vnfd = VnfrYang.YangData_Vnfr_VnfrCatalog_Vnfr_Vnfd.from_dict({'id': '1'})
+
store.get_vnfr = mock.MagicMock(return_value=mock_vnfr)
mock_nsr = RwNsrYang.YangData_Nsr_NsInstanceOpdata_Nsr.from_dict({
store.get_vnfr = mock.MagicMock(return_value=mock_vnfr)
mock_nsr = RwNsrYang.YangData_Nsr_NsInstanceOpdata_Nsr.from_dict({