New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unwanted text in product settings RadioGroup option #3030
Conversation
@@ -199,6 +218,7 @@ class SettingsTest < self | |||
def update_params(oidc_id: nil) | |||
@update_params ||= { service: | |||
{ intentions_required: '0', | |||
deployment_option: 'service_mesh_istio', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this line I wanted to test that we can actually change the Deployment option, also that the Istio option was available and that everything was working as expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is incorrect to set it globally like that. I see tests that expect it to be apicast. I don't know how they pass. But either case, in your test case, you can do:
put admin_service_path(service), params: update_params(deployment_option: 'service_mesh_istio')
Then check value is what you expect. For example you can do this on line 93 instead of setting it directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes make sense to me.
@@ -199,6 +218,7 @@ class SettingsTest < self | |||
def update_params(oidc_id: nil) | |||
@update_params ||= { service: | |||
{ intentions_required: '0', | |||
deployment_option: 'service_mesh_istio', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is incorrect to set it globally like that. I see tests that expect it to be apicast. I don't know how they pass. But either case, in your test case, you can do:
put admin_service_path(service), params: update_params(deployment_option: 'service_mesh_istio')
Then check value is what you expect. For example you can do this on line 93 instead of setting it directly.
Fix Product > Integration > Settings: Unwanted text in product settings RadioGroup deployment option
Fix Product > Integration > Settings: Unwanted text in product settings RadioGroup deployment option
Fix Product > Integration > Settings: Unwanted text in product settings RadioGroup deployment option
Which issue(s) this PR fixes
THREESCALE-8556 Unwanted text in product settings RadioGroup option
Verification steps
Special notes for your reviewer:
After some considerations, I've decided to delete the unwanted text form the
en.yml
file instead of hiding it. That text was hidden at version 2.7 and has been like that since, so it made more sense to simply delete it.