Skip to content
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

fix(test): update blob paths used in storage.it.ITStorageTest#testDownloadPublicBlobWithoutAuthentication #759

Merged
merged 1 commit into from
Mar 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2125,11 +2125,11 @@ public void testDownloadPublicBlobWithoutAuthentication() {

// try to download blobs from a public bucket
String landsatBucket = "gcp-public-data-landsat";
String landsatPrefix = "LC08/PRE/044/034/LC80440342016259LGN00/";
String landsatBlob = landsatPrefix + "LC80440342016259LGN00_MTL.txt";
String landsatPrefix = "LC08/01/001/002/LC08_L1GT_001002_20160817_20170322_01_T2/";
String landsatBlob = landsatPrefix + "LC08_L1GT_001002_20160817_20170322_01_T2_ANG.txt";
byte[] bytes = unauthorizedStorage.readAllBytes(landsatBucket, landsatBlob);

assertThat(bytes.length).isEqualTo(7903);
assertThat(bytes.length).isEqualTo(117255);
int numBlobs = 0;
Iterator<Blob> blobIterator =
unauthorizedStorage
Expand All @@ -2140,7 +2140,7 @@ public void testDownloadPublicBlobWithoutAuthentication() {
numBlobs++;
blobIterator.next();
}
assertThat(numBlobs).isEqualTo(13);
assertThat(numBlobs).isEqualTo(14);

// try to download blobs from a bucket that requires authentication
// authenticated client will succeed
Expand Down