Skip to content

Commit 5fb09b1

Browse files
committed
Adding negative tests for invalid bucket path
1 parent bfcfd70 commit 5fb09b1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/tZarrCreate.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ function invalidFilePath(testcase)
5555

5656
% Non-text input
5757
testcase.verifyError(@()zarrcreate([],testcase.ArrSize),errID);
58+
59+
% Invalid bucket path
60+
errID = 'MATLAB:Zarr:invalidS3URL';
61+
inpPath = 'https://invalid/arr/path';
62+
testcase.verifyError(@()zarrcreate(inpPath,[10 10]),errID);
63+
64+
inpPath = 'http://invalid/arr/path';
65+
testcase.verifyError(@()zarrcreate(inpPath,[10 10]),errID);
5866
end
5967

6068
function pathContainingInvalidChars(testcase)

0 commit comments

Comments
 (0)