Closed apuntamb closed 4 years ago
What about GovClouds? Are those shown by this call?
What about GovClouds? Are those shown by this call?
That's what we are currently unaware of. Trying to check with someone who can confirm this with Govcloud credentials.
What about GovClouds? Are those shown by this call?
As per our discussion, we can specifically keep this PR for generic regions and once this will be in, we can take care of gov regions separately as a different PR.
ACK from me, @vijay8451, your turn :)
sure , will give a test run :)
Test Results:
Good:
Requires below are handle as well:
AzureRm
CR Load Regions
button shows An error occurred while testing the connection: Internal Server Error
if does not pass the any fields value however with EC2
it handles pretty well and point to missing fields
When press the button Load Regions
the AzureRm
shows regions list along with error can't be blank
and requires to click on Test Connection
to check the connection however with EC2
it does not shows the same but also do auto check the Test Connection as well
- When press the button
Load Regions
theAzureRm
shows regions list along with errorcan't be blank
and requires to click onTest Connection
to check the connection however withEC2
it does not shows the same but also do auto check theTest Connection as well
IIRC, EC2 don't have any validation on region field that's why it is not showing validation error on test connection.
- When press the button
Load Regions
theAzureRm
shows regions list along with errorcan't be blank
and requires to click onTest Connection
to check the connection however withEC2
it does not shows the same but also do auto check theTest Connection as well
IIRC, EC2 don't have any validation on region field that's why it is not showing validation error on test connection.
Yeah, you are right it is the one reason here , however I have following opinion on it:
Load Regions
it should not show the message can't be blank
because we are trying to fill that place not submitting CR create without it .
can't be blank
should show if anyone is trying to Submit
the CR create request without region then it would be more appropriate.EC2
after click on Load Regions
button it does auto check the Test Connection
as well however with AzureRm
still a manual check after regions get loaded.
- When press the button
Load Regions
theAzureRm
shows regions list along with errorcan't be blank
and requires to click onTest Connection
to check the connection however withEC2
it does not shows the same but also do auto check theTest Connection as well
IIRC, EC2 don't have any validation on region field that's why it is not showing validation error on test connection.
Yeah, you are right it is the one reason here , however I have following opinion on it:
* After press the button `Load Regions` it should not show the message `can't be blank` because we are trying to fill that place not submitting CR create without it .
So, as @kgaikwad mentioned, it's true that EC2 doesn't have any validation for region
field hence, even if you create an EC2 CR without region, it's created.
* Message `can't be blank` should show if anyone is trying to `Submit` the CR create request without region then it would be more appropriate.
Region will be made optional for creating a CR similar to EC2, so that it won't show can't be blank
message.
* In `EC2` after click on `Load Regions` button it does auto check the `Test Connection` as well however with `AzureRm` still a manual check after regions get loaded.
For this and the other fields to show can't be blank
instead of Internal Server Error 500
on Test Connection in case of empty input fields, I am creating a separate PR for the same and will reference it here.
@vijay8451 @ShimShtein PR #84 handles the test connection method to show errors on empty input fields.
@vijay8451 @ShimShtein PR #84 handles the test connection method to show errors on empty input fields.
Sounds good to me , ACK :+1:
Merged, thanks @apuntamb!
build failures are related, will fix the tests.