@@ -155,15 +155,14 @@ def test_do_distribution_unknown_artifact_type_reports_error(self):
155155 org = "test-org-id" ,
156156 artifact_id = "test-artifact-id" ,
157157 data = {
158- "error_code" : InstallableAppErrorCode .PROCESSING_ERROR .value ,
159- "error_message" : "unsupported artifact type" ,
158+ "error_code" : InstallableAppErrorCode .UNSUPPORTED_ARTIFACT_TYPE .value ,
159+ "error_message" : "This artifact type is not supported for distribution. " ,
160160 },
161161 )
162162 mock_statsd .increment .assert_called_once_with (
163163 "distribution.processing.error" ,
164164 tags = [
165- f"error_code:{ InstallableAppErrorCode .PROCESSING_ERROR .value } " ,
166- "error_message:unsupported artifact type" ,
165+ f"error_code:{ InstallableAppErrorCode .UNSUPPORTED_ARTIFACT_TYPE .value } " ,
167166 "organization_id:test-org-id" ,
168167 ],
169168 )
@@ -186,15 +185,14 @@ def test_do_distribution_invalid_code_signature_reports_skip(self):
186185 org = "test-org-id" ,
187186 artifact_id = "test-artifact-id" ,
188187 data = {
189- "error_code" : InstallableAppErrorCode .SKIPPED .value ,
190- "error_message" : "invalid_signature " ,
188+ "error_code" : InstallableAppErrorCode .INVALID_CODE_SIGNATURE .value ,
189+ "error_message" : "The build's code signature could not be verified. " ,
191190 },
192191 )
193192 mock_statsd .increment .assert_called_once_with (
194193 "distribution.processing.error" ,
195194 tags = [
196- f"error_code:{ InstallableAppErrorCode .SKIPPED .value } " ,
197- "error_message:invalid_signature" ,
195+ f"error_code:{ InstallableAppErrorCode .INVALID_CODE_SIGNATURE .value } " ,
198196 "organization_id:test-org-id" ,
199197 ],
200198 )
@@ -218,15 +216,14 @@ def test_do_distribution_simulator_build_reports_skip(self):
218216 org = "test-org-id" ,
219217 artifact_id = "test-artifact-id" ,
220218 data = {
221- "error_code" : InstallableAppErrorCode .SKIPPED .value ,
222- "error_message" : "simulator " ,
219+ "error_code" : InstallableAppErrorCode .SIMULATOR_BUILD .value ,
220+ "error_message" : "Simulator builds cannot be distributed. " ,
223221 },
224222 )
225223 mock_statsd .increment .assert_called_once_with (
226224 "distribution.processing.error" ,
227225 tags = [
228- f"error_code:{ InstallableAppErrorCode .SKIPPED .value } " ,
229- "error_message:simulator" ,
226+ f"error_code:{ InstallableAppErrorCode .SIMULATOR_BUILD .value } " ,
230227 "organization_id:test-org-id" ,
231228 ],
232229 )
0 commit comments