Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Sage-1407] Add support for beehive ID in /register API. (#25)
* added -b flag to specify beehive * added support for beehive_id in registration api * restrict exposed bk-api port to localhost. upped mysql version from 8.0.20 to 8.0.29 for arm64 support. * added Makefile to run tests and setup / teardown services * using shorter ./ instead of PWD for relative paths * added note about retry * added TODO about contextmanager for db * added test cases for registering with specific beehive. replaced prints with logging and turned down default level to INFO. * updated tests for specific beehive registration. using POST instead of GET for endpoint. * added note about locks * removed unused block * removed echo lines as this output is sent directly to registration service. * make svc-up inits test keys. make svc-down cleans up volumes. * using docker-compose to exec command * added tests for valid node ids * minor clean up * added note * moved app creation into create_app function to provide us with a cleaner way to later create instances for testing * removed unused node_id * removed unused config.update * using test discovery and -v flag to show test names * added comment on random node id. use random beehive id for assign beehive test. * replaced raw http status codes with HTTPStatus constants * added -s flag to curl. added --no-TTY to docker-compose exec to allow running in CI. * addressed comments in pr * using Makefile for managing services and tests in CI. restore TTY for pytest step. * falling back to old docker command, but using docker-compose ps to get container id * falling back to old docker command for ssh check, but using docker-compose ps to get container id * updated log message
- Loading branch information