mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 15:28:05 +00:00
d6a99165c6
Signed-off-by: gberl002 <geoff.berl@netfoundry.io>
Running Quickstart Tests
The quickstart test ensures a network is minimally functional by creating a service that intercepts the controller's edge HTTP/API plane, then obtains a valid http response by dialing that service.
The following environment variables are referenced for network information.
ZITI_USER- defaults toadminZITI_PWD- defaults toadminZITI_CTRL_EDGE_ADVERTISED_ADDRESS- defaults toziti-edge-controllerZITI_CTRL_EDGE_ADVERTISED_PORT- defaults to1280ZITI_ROUTER_NAME- defaults toziti-edge-router
Automated
The automated test starts up an ephemeral OpenZiti network and runs performQuickstartTest.
To run the automated edge test, execute the following from the project root (environment variables are auto populated)
go test -v -tags "quickstart automated" ./ziti/cmd/edge/... -run TestEdgeQuickstsart
Manual
The manual test utilizes an existing network and runs performQuickstartTest.
To run the manual test, edit the environment variables as necessary and execute the following from the project root
go test -v -tags "quickstart manual" ./ziti/cmd/edge/... -run TestSimpleWebService