Skip to content
Mitchell Grenier edited this page Nov 12, 2019 · 1 revision

Using goquery in Testing Mode

Due to goquery requiring a backend setup, and APIs you may not support yet, goquery comes with a fully functional testing environment that can be build and stood up using make and docker.

To set it up, run make docker (connecting to a swarm if required), then make deploy. The default configuration of goquery is such that it will look for a test server when no other config is provided so running goquery after that will use your new testing infra.

To find the hosts you just stood up run docker ps and then docker logs <id> where ID is the host identifier of goserver. The line informing you of newly registered hosts provide the UUID in the parentheses and can be used with the .connect command in goquery.

Clone this wiki locally