Adds field validation to Google Cloud runner registration
What does this MR do and why?
This change adds field by field validation to the "Specify environment" form in the Google Cloud Runner registration step.
As the user inputs data, each of the fields is validated according to the expected syntax so users can easily identify if they have added the data correctly.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Simulate a SaaS instance in your GDK
- Enable the feature flag
echo "Feature.enable(:google_cloud_support_feature_flag)" | rails c
- Visit project creation views (should not be available on admin and groups for now)
- Select google cloud radio option (for platform)
- Create runner
- New options should show for register view if you chose the google cloud platform option
- Existing runner options should still show for other platform selections
- Fill the form values with incorrect values. They should lead you to input correct fields like:
"Google cloud project ID": "dev-gcp-s3c-integrati-9abafed1",
"region": "us-central1",
"zone": "us-central1-a",
"machine": "n2d-standard-2"
- Click the
Show instructions
button and you should be able to see the instructions (or a button prompting you to fix the values)
Related to #444240 (closed)
Edited by Miguel Rincon