A Discovery Node is the metadata and indexing layer for the Audius Protocol.
See the dev-tools README.
audius-compose up
curl http://audius-protocol-discovery-provider-1:5000/health_check
Unit & integration tests are run through a side-car docker container alongside the main audius stack.
First, ensure your developer stack is running
audius-compose up
# If running elasticsearch tests, ensure the stack is run with an elasticsearch container
audius-compose up --elasticsearch-replicas 1
Run tests
# Run all tests
docker exec -it audius-protocol-discovery-provider-test-1 pytest
# Run unit tests
docker exec -it audius-protocol-discovery-provider-test-1 pytest src
# Run integration tests
docker exec -it audius-protocol-discovery-provider-test-1 pytest integration_tests
# A single test
docker exec -it audius-protocol-discovery-provider-test-1 pytest src/api/v1/api_unit_test.py