- Two agents establish connection using did exchange protocol sdk (didexchange_e2e_sdk)
- Two agents establish connection using did exchange protocol rest api (didexchange_e2e_controller)
- Two agents establish connection using did exchange protocol sdk with public did in invitation (didexchange_public_dids)
- Resolve did document against sidetree-mock (didresolver)
Run all bdd tests using the following make target from project root directory.
make bdd-test
Run tests for aries-js-worker
in the headless browser with:
make bdd-test-js
make clean generate-test-keys agent-rest-docker sample-webhook-docker
Execute the following command inside test/bdd
AGENT_LOG_LEVEL=#log_level# go test -run #name_of_test#
Example
make clean generate-test-keys agent-rest-docker sample-webhook-docker
cd test/bdd
AGENT_LOG_LEVEL=info go test -v -run didexchange_e2e_sdk
If you're interested to start the docker containers manually and run parts of the bdd tests on your own as opposed via the make target mentioned above, then do the following:
-
Navigate to test/bdd/fixtures
-
To start Alice and Bob agents and webhooks, go to
agent-rest
folder and run:
(source .env && docker-compose down && NO_PROXY=* docker-compose up --force-recreate)
-
To start the Demo API hosts for Alice and Bob, open up a new terminal and go to
demo/openapi
folder and run the above command. -
To start Sidetree Mock service, open up a new terminal go to
sidetree-mock
folder and run the same above command. -
Once all the containers above have started, you are ready to run BDD tests manually.
-
To run the tests manually, in a new terminal, navigate to
tests/bdd
folder and run the same test command as mentioned in Run specific bdd test section above by pre-pending the following environment variable:
DISABLE_COMPOSITION=true
The tests will start executing and you will notice logs written to the containers created above depicting their activities and the test results shown in its own terminal created above.