-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Cloudstack multiple endpoint for preflight checks (#2559)
* Support Cloudstack multiple endpoint for preflight checks * Update for review comments * Fix unit test failures * Remove debug print * Remove unnecessary file * Remove multierror module * Update to use single cmk object instead of list or map of multiple cmks * Remove ValidateCloudStackConnection when cleaning up VMs * Remove NewProviderCustomNet because it's the same as NewProvider * Avoid using 'failed to' in errors * Remove localAvailabilityZones from Validator * Remove multipleZone from ValidateNetworkPresent * Return list of errors CleanUpCloudstackTestResources * Increase unit test coverage * Increase unit test coverage #2 * Change error format * Change function names to be more descriptive - ValidateZonePresent -> ValidateZoneAndGetId - ValidateDomainPresent -> ValidateDomainAndGetId Change return value of ValidateDomainAndGetId - from CloudStackResourceIdentifier to string because only domainId is used * Add default verifySslValue as a constant * Fix a bug where empty Zone IDs are used in validateMachineConfig * Add error message when validating management api endpoint fails * Make MarkPass message more readable * Fix presubmit job failure
- Loading branch information
Showing
37 changed files
with
1,818 additions
and
849 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
11 changes: 11 additions & 0 deletions
11
pkg/dependencies/testdata/cloudstack_config_multiple_profiles.ini
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Global] | ||
verify-ssl = false | ||
api-key = test-key1 | ||
secret-key = test-secret1 | ||
api-url = http://127.16.0.1:8080/client/api | ||
|
||
[Instance2] | ||
verify-ssl = true | ||
api-key = test-key2 | ||
secret-key = test-secret2 | ||
api-url = http://127.16.0.2:8080/client/api |
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.