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

Fixed large file live test to add policy per call instead of per retry #17593

Merged
merged 1 commit into from
Nov 16, 2020
Merged
Show file tree
Hide file tree
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 @@ -6,6 +6,7 @@ package com.azure.storage.blob
import com.azure.core.http.HttpMethod
import com.azure.core.http.HttpPipelineCallContext
import com.azure.core.http.HttpPipelineNextPolicy
import com.azure.core.http.HttpPipelinePosition
import com.azure.core.http.HttpRequest
import com.azure.core.http.HttpResponse
import com.azure.core.http.policy.HttpPipelinePolicy
Expand Down Expand Up @@ -383,5 +384,9 @@ class LargeBlobTest extends APISpec {
request.getUrl().getPath().endsWith(blobName) &&
request.getUrl().getQuery() == null
}

HttpPipelinePosition getPipelinePosition() {
return HttpPipelinePosition.PER_CALL;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.azure.storage.file.datalake

import com.azure.core.http.HttpPipelineCallContext
import com.azure.core.http.HttpPipelineNextPolicy
import com.azure.core.http.HttpPipelinePosition
import com.azure.core.http.HttpRequest
import com.azure.core.http.HttpResponse
import com.azure.core.http.policy.HttpPipelinePolicy
Expand Down Expand Up @@ -273,5 +274,9 @@ class LargeFileTest extends APISpec{
private boolean isFlushRequest(HttpRequest request) {
return request.url.getQuery() != null && request.url.getQuery().contains("action=flush")
}

HttpPipelinePosition getPipelinePosition() {
return HttpPipelinePosition.PER_CALL;
}
}
}