forked from vmware/govmomi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bypass lookup svc for STS and SSOadmin clients
- For local clients on vCenter, lookup service can be omitted and local Envoy processes can be used instead, along with 'system-' prefixed variants of SSOAdmin/STS. This avoids the need to discover the vCenter SSO domain and avoids an extra round trip. - Also extends simulator to allow aliasing the same SDK to multiple paths. Moves vimService, ssoadmin, STS to this model. - Using env vars to allow testing this with the simulator in unit tests, but with a sensible defaults (localhost/1080). - Added unit tests for this path (simulate lookupsvc returning the wrong URL and asserting that the STS/ssoadmin clients still function) - Moved the lookup service simulator breaking logic to lookup/simulator.go so it's usable elsewhere. - Tweaked the simulator.Test/Run() methods to not always set up TLS config (since we use HTTP for the ssoadmin/sts client) - Moved sts/client_test.go to the sts_test package to avoid an import cycle (sts/simulator -> sts -> sts/simulator via test code)
- Loading branch information
Showing
12 changed files
with
238 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.