Skip to content

A simple REST API to calculate the minumun devops engineer needed to to call in in addition to the devops manager in order to maintain all servers in all currently active datacenters.

License

Notifications You must be signed in to change notification settings

regiluze/minimun-DE-retriever

Repository files navigation

minimun-DE-retriever

A simple REST API to calculate the minumun devops engineer needed to to call in in addition to the devops manager in order to maintain all servers in all currently active datacenters.

Dev environment set up

create virtual environment

mkvirtualenv -p /usr/local/bin/python3.5 minumum-DE-retriever

setup virtual environment

pip install -r requirements.txt
pip install -r requirements-dev.txt

Run tests

Run all tests

./dev/all_tests.sh

Run unit tests

./dev/unit_tests.sh

Run acceptance tests

./dev/acceptance_tests.sh

Server start up

./bin/startup_app.sh

Example

curl -X PUT 'http://localhost:5000/minumum-de-retriever'  -H 'Content-Type: application/json' -d '{"DE_capacity":7, "DM_capacity": 5, "data_centers": [{"name": "Paris", "servers": 23}]}'

About

A simple REST API to calculate the minumun devops engineer needed to to call in in addition to the devops manager in order to maintain all servers in all currently active datacenters.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published