projects
/
osm
/
SO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add MANO project role support
[osm/SO.git]
/
common
/
python
/
rift
/
mano
/
config_data
/
test
/
test_converter.py
diff --git
a/common/python/rift/mano/config_data/test/test_converter.py
b/common/python/rift/mano/config_data/test/test_converter.py
index
1bfd7d7
..
0354c2b
100644
(file)
--- a/
common/python/rift/mano/config_data/test/test_converter.py
+++ b/
common/python/rift/mano/config_data/test/test_converter.py
@@
-17,20
+17,23
@@
import pytest
import uuid
import pytest
import uuid
-from gi.repository import NsdYang, VnfdYang
+from gi.repository import (
+ ProjectNsdYang as NsdYang,
+ ProjectVnfdYang as VnfdYang,
+ )
from ..config import ConfigPrimitiveConvertor
import yaml
@pytest.fixture(scope="function")
def nsd():
from ..config import ConfigPrimitiveConvertor
import yaml
@pytest.fixture(scope="function")
def nsd():
- catalog = NsdYang.YangData_
Nsd
_NsdCatalog()
+ catalog = NsdYang.YangData_
RwProject_Project
_NsdCatalog()
nsd = catalog.nsd.add()
nsd.id = str(uuid.uuid1())
return nsd
@pytest.fixture(scope="function")
def vnfd():
nsd = catalog.nsd.add()
nsd.id = str(uuid.uuid1())
return nsd
@pytest.fixture(scope="function")
def vnfd():
- catalog = VnfdYang.YangData_
Vnfd
_VnfdCatalog()
+ catalog = VnfdYang.YangData_
RwProject_Project
_VnfdCatalog()
vnfd = catalog.vnfd.add()
vnfd.id = str(uuid.uuid1())
return vnfd
vnfd = catalog.vnfd.add()
vnfd.id = str(uuid.uuid1())
return vnfd
@@
-287,7
+290,7
@@
initial_config_primitive:
cidr: 10.10.10.2/30
"""
cidr: 10.10.10.2/30
"""
- catalog = VnfdYang.YangData_
Vnfd
_VnfdCatalog()
+ catalog = VnfdYang.YangData_
RwProject_Project
_VnfdCatalog()
expected_vnfd = catalog.vnfd.add()
vnf_config = expected_vnfd.vnf_configuration
expected_vnfd.id = vnfd.id
expected_vnfd = catalog.vnfd.add()
vnf_config = expected_vnfd.vnf_configuration
expected_vnfd.id = vnfd.id
@@
-374,7
+377,7
@@
def test_nsd_merge(nsd, convertor):
Vlan ID: '3000'
"""
Vlan ID: '3000'
"""
- catalog = NsdYang.YangData_
Nsd
_NsdCatalog()
+ catalog = NsdYang.YangData_
RwProject_Project
_NsdCatalog()
expected_nsd = catalog.nsd.add()
expected_nsd.id = nsd.id
expected_nsd.service_primitive.add().from_dict(
expected_nsd = catalog.nsd.add()
expected_nsd.id = nsd.id
expected_nsd.service_primitive.add().from_dict(