Skip to content
Configuration service for Wazo using REST APIs
Python Other
  1. Python 99.9%
  2. Other 0.1%
Branch: master
Clone or download
fblackburn1 registrar: set default deletable to True
otherwise registrar.get() can return deletable=null
Latest commit d0353af Sep 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contribs/docker/certs contribs: remove useless README Mar 7, 2018
debian debian: rename packaging Jun 7, 2019
etc rename xivo-prov{d,isioning} to wazo-provd Aug 8, 2019
integration_tests registrar: set default deletable to True Sep 12, 2019
wazo_confd registrar: set default deletable to True Sep 12, 2019
.dockerignore simplify dockerfile Jul 28, 2015
.gitignore
AUTHORS AUTHORS: update wazo name Jan 17, 2019
CHANGELOG.md changelog: add access features Sep 4, 2019
Dockerfile Update docker to buster Aug 23, 2019
LICENSE update LICENSE file Jun 14, 2017
README.md rename xivo-prov{d,isioning} to wazo-provd Aug 8, 2019
requirements.txt buster: switch back to master.zip Sep 4, 2019
setup.cfg allow running pytest from the root directory without executing integr… Jun 10, 2018
setup.py config: add access features Sep 4, 2019
test-requirements.txt buster: switch back to master.zip Sep 4, 2019
tox.ini tox: rename xivo-confd to wazo-confd Jun 7, 2019

README.md

wazo-confd

Build Status

XiVO CONFD is a web server that provides a RESTful service for configuring and managing a Wazo server. Further details on how to use the API can be found on the Wazo API web site

Installing wazo-confd

The server is already provided as a part of Wazo. Please refer to the documentation for further details on installing one.

Running unit tests

apt-get install libpq-dev python-dev libffi-dev libyaml-dev
pip install tox
tox --recreate -e py27

Running integration tests

You need Docker installed.

cd integration_tests
pip install -U -r test-requirements.txt
make test-setup
make test

Development

Modified database

You need the repos xivo-manage-db up-to-date.

  1. git clone https://github.com/wazo-pbx/xivo-manage-db
  2. MANAGE_DB_DIR=../../xivo-manage-db make update-db
  3. Execute the steps above to run integration tests

Modified wazo-provd

You need the repos wazo-provd up-to-date.

  1. git clone https://github.com/wazo-pbx/wazo-provd
  2. PROVD_DIR=../../wazo-provd make build-provd
  3. Execute the steps above to run integration tests

Mounting libraries

In case you need to mount libraries (xivo-dao, xivo-bus, lib-python) inside the wazo-confd container:

  1. Uncomment the confd volumes in integration_tests/assets/docker-compose.yml
  2. Set the environment variable: export LOCAL_GIT_REPOS=/parent/directory/to/all/git/repos
  3. Execute the steps above to run integration tests

Profiling

  • pip install gprof2dot
  • apt-get install graphviz
  • set the profile directory configuration
  • process file in directory with the following command:

gprof2dot -f pstats <directory>/<file> | dot -Tpng -o output.png

You can’t perform that action at this time.