0de2e55b13
* append appropriate urls when scaffolding * make dispatch for rest-api * fix dispatch for rest-json * fix moto/core/response to obtain path and body parameters * small fixes * remove unused import * fix get_int_param * Add features of things and thing-types * fix scaffold * basic crud of cert * support basic CRUD of policy * refactor * fix formatting of scaffold * support principal_pocicy * support thing_principal * update readme * escape service to handle service w/ hyphen like iot-data * escape service w/ hyphen * fix regexp to extract region from url * escape service * Implement basic iota-data feature * iot-data shadow delta * update readme * remove unused import * remove comment * fix syntax * specify region when creating boto3 client for test * use uuid for seed of generating cert id * specify region_name to iotdata client in test * specify region to boto3 client in moto response * excude iot and iotdata tests on server mode * fix handling of thingTypeName in describe-thing * test if server is up for iot
51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
SHELL := /bin/bash
|
|
|
|
ifeq ($(TEST_SERVER_MODE), true)
|
|
# exclude test_iot and test_iotdata for now
|
|
# because authentication of iot is very complicated
|
|
TEST_EXCLUDE := --exclude='test_iot.*'
|
|
else
|
|
TEST_EXCLUDE :=
|
|
endif
|
|
|
|
init:
|
|
@python setup.py develop
|
|
@pip install -r requirements.txt
|
|
|
|
lint:
|
|
flake8 moto
|
|
|
|
test: lint
|
|
rm -f .coverage
|
|
rm -rf cover
|
|
@nosetests -sv --with-coverage --cover-html ./tests/ $(TEST_EXCLUDE)
|
|
test_server:
|
|
@TEST_SERVER_MODE=true nosetests -sv --with-coverage --cover-html ./tests/
|
|
|
|
aws_managed_policies:
|
|
scripts/update_managed_policies.py
|
|
|
|
upload_pypi_artifact:
|
|
python setup.py sdist bdist_wheel upload
|
|
|
|
push_dockerhub_image:
|
|
docker build -t motoserver/moto .
|
|
docker push motoserver/moto
|
|
|
|
tag_github_release:
|
|
git tag `python setup.py --version`
|
|
git push origin `python setup.py --version`
|
|
|
|
publish: implementation_coverage \
|
|
upload_pypi_artifact \
|
|
tag_github_release \
|
|
push_dockerhub_image
|
|
|
|
implementation_coverage:
|
|
./scripts/implementation_coverage.py > IMPLEMENTATION_COVERAGE.md
|
|
git commit IMPLEMENTATION_COVERAGE.md -m "Updating implementation coverage"
|
|
|
|
scaffold:
|
|
@pip install -r requirements-dev.txt > /dev/null
|
|
exec python scripts/scaffold.py
|