# Adaptor
Documentation is available here - [ReadtheDocs](https://python-mano-wrappers.readthedocs.io/en/adaptor/).
## Structure
+ `adaptor.py` - Entry point for utilizing the underlying wrappers
+ `wrappers` - Contains REST wrappers for MANO frameworks
- `CommonInterfaces` - Starting point Python Module for implementation that defines an abstract base class according to the ETSI standard
- `OSMClient` - REST wrapper for OpenSource Mano based
- `SONATAClient` - REST wrapper for Sonata based
+ `tests` - Contains test cases for individual wrappers
+ `samples` - Contains sample files needed for testing
## Development
1. Docker compose up from the `src` folder (Detailed instructions in the root README)
+ `docker-compose -f "docker-compose.dev.yml" up -d --build`
2. Once the containers are running, docker attach to the adaptor image to get terminal access
+ Run `docker ps` and copy the container id for src_adaptor image (ex. 1ffb536c1a8e)
+ Run `docker exec -it <PASTE_ID_HERE> /bin/sh -c "[ -e /bin/bash] && /bin/bash || /bin/sh"` with your id <PASTE_ID_HERE> to get terminal access
+ Run `ls` to confirm access
3. Run test cases from the container
+ Run `py.test` to execute all test cases
+ Run `clear && py.test -s tests/osm/test_auth.py` to run all test cases in a file, in this case osm - test_auth.py
+ Run `clear && py.test -s tests/osm/test_auth.py::test_auth` to run one specific test case in a file, in this case osm - test_auth
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
资源分类:Python库 所属语言:Python 资源全名:python-mano-wrappers-0.9.8.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
python-mano-wrappers-0.9.8.tar.gz (53个子文件)
python-mano-wrappers-0.9.8
PKG-INFO 2KB
tests
osm
osm_fixture.py 2KB
test_vnfpkgm.py 7KB
test_auth.py 490B
helpers.py 5KB
__init__.py 0B
test_nsd.py 6KB
config.py 207B
test_admin.py 5KB
test_nslcm.py 8KB
sonata
test_vnfpkgm.py 3KB
test_auth.py 552B
helpers.py 4KB
__init__.py 0B
test_nsd.py 4KB
test_sonpackage.py 3KB
sonata_fixture.py 3KB
config.py 85B
test_admin.py 7KB
test_nslcm.py 7KB
setup.cfg 38B
setup.py 852B
README.md 1KB
python_mano_wrappers.egg-info
PKG-INFO 2KB
requires.txt 9B
SOURCES.txt 1KB
top_level.txt 15B
dependency_links.txt 1B
wrappers
CommonInterface
nspm.py 4KB
nsd.py 5KB
auth.py 298B
sonpackage.py 877B
__init__.py 283B
vnfpkgm.py 4KB
nslcm.py 6KB
nsfm.py 3KB
OSMClient
nspm.py 3KB
nsd.py 12KB
auth.py 2KB
helpers.py 272B
__init__.py 122B
admin.py 7KB
vnfpkgm.py 12KB
nslcm.py 15KB
nsfm.py 2KB
__init__.py 50B
SONATAClient
nsd.py 9KB
auth.py 2KB
sonpackage.py 4KB
__init__.py 154B
admin.py 8KB
vnfpkgm.py 7KB
nslcm.py 14KB
共 53 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功