raise(SanityCheckError,"Multiple model types found: #{model_types}")unlessmodel_types.count==1
raise(SanityCheckError,_("Multiple model types found: %{model_types}")%{model_types: model_types})unlessmodel_types.count==1
raise(SanityCheckError,"Mount point #{mounted_as} not found in #{model_class}.")unlessmodel_has_mount
raise(SanityCheckError,_("Mount point %{mounted_as} not found in %{model_class}.")%{mounted_as: mounted_as,model_class: model_class})unlessmodel_has_mount
end
end
# rubocop: disable CodeReuse/ActiveRecord
# rubocop: disable CodeReuse/ActiveRecord
...
@@ -110,9 +110,9 @@ module ObjectStorage
...
@@ -110,9 +110,9 @@ module ObjectStorage
returnifargs.count==4
returnifargs.count==4
caseargs.count
caseargs.count
when3thenraiseSanityCheckError,"Job is missing the `model_type` argument."
when3thenraiseSanityCheckError,_("Job is missing the `model_type` argument.")
else
else
raiseSanityCheckError,"Job has wrong arguments format."
raiseSanityCheckError,_("Job has wrong arguments format.")
All [supported environment variables are here](https://gitlab.com/gitlab-org/gitlab-qa/blob/master/docs/what_tests_can_be_run.md#supported-environment-variables).
All [supported environment variables are here](https://gitlab.com/gitlab-org/gitlab-qa/blob/master/docs/what_tests_can_be_run.md#supported-environment-variables).
...
@@ -121,7 +123,7 @@ tests that are expected to fail while a fix is in progress (similar to how
...
@@ -121,7 +123,7 @@ tests that are expected to fail while a fix is in progress (similar to how