* add support for and identity-driven bindPoints in controller * cannot use ListenOptions as it pulls the go sdk into xweb :( * more generic log message * add ziti cli login tests in prep for continuing adding identity support in controller * updates to tests * updates to tests * rebase with main * allow login testing to external overlay * more changes to allow a zitified ziti cli. add a test for testing login and ensure it works over a zitified connection * refactor bindPoints to a module * rebase with main * no functional changes, just major refactoring based on PR requests. encapsulated all tests state into loginTestState, moved overlay to testutil * rework a couple of util funcs to be cleaner per PR feedback * make the new func more useful * run tests via github action * update changelog and remove unnecssary serveTls for now * update from xweb v2 to v3 * change where factory is added and fix compilation issue of a test * linting changes, move ascode test to cli_tests and activate via cli_tests * use proper go build * forgot to set the bin location * fix timeout on test * different errors on linux, windows and on gh runners * cleanup after self-pr review * use longer name to prevent codespell issues... * additional changelog and add addressable terminator support * fix out of control concatenation in cache file. fix ipv6 checking * updates based on newer sdk and edge api client * ensure oidc sessions auth for both older and newer commands * add better error when url is empty and update changelog * codespell fixes * remove extraneous file * update to 1.3.0 to kick off CI * PR related changes. add interface enforcer and refactor networkIdentity * go tidied * fix golangci-lint and ha quickstart test * keep fixing golanglint-ci... lol * golanglint i was sure i'd fixed * fix login test * should fix ziti ops verify traffic as well * fix verify traffic when all login information is supplied as well * make all the timeouts longer? seems to run fine locally but fail in actions
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.
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)
# From project root
go test -v -tags "quickstart automated" ./ziti/cmd/edge/... -run TestEdgeQuickstartAutomated
# From relative README path
go test -v -tags "quickstart automated" ../../ziti/cmd/edge/... -run TestEdgeQuickstartAutomated
Manual
The manual test utilizes an existing network and runs performQuickstartTest. Use the manual method to test
any network, anywhere, by adjusting the environment variables as necessary.
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
To run the manual test, edit the environment variables as necessary and execute the following from the project root
# Optionally adjust environment variable values as needed
ZITI_USER="admin"
ZITI_PWD="admin"
ZITI_CTRL_EDGE_ADVERTISED_ADDRESS="ziti-edge-controller"
ZITI_CTRL_EDGE_ADVERTISED_PORT="1280"
ZITI_ROUTER_NAME="ziti-edge-router"
# From project root
go test -v -tags "quickstart manual" ./ziti/cmd/edge/... -run TestEdgeQuickstartManual
# From relative README path
go test -v -tags "quickstart manual" ../../ziti/cmd/edge/... -run TestEdgeQuickstartManual