Add missing azure error code (#48520)
In #47176 we changed the internal HTTP server that emulates the Azure Storage service so that it includes a response body for injected errors. This fixed most of the issues reported in #47120 but sadly I missed to map one error to its Azure equivalent, and it triggered some CI failures today. Closes #47120
This commit is contained in:
parent
9a89ed891e
commit
06d2cc5cef
|
@ -67,8 +67,10 @@ final class TestUtils {
|
|||
return StorageErrorCodeStrings.BLOB_NOT_FOUND;
|
||||
case INTERNAL_SERVER_ERROR:
|
||||
return StorageErrorCodeStrings.INTERNAL_ERROR;
|
||||
case SERVICE_UNAVAILABLE:
|
||||
return StorageErrorCodeStrings.SERVER_BUSY;
|
||||
default:
|
||||
return null;
|
||||
throw new IllegalArgumentException("Error code [" + status.getStatus() + "] is not mapped to an existing Azure code");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue