Skip to content

Commit

Permalink
Disable flaky test in Datalake (#8612)
Browse files Browse the repository at this point in the history
  • Loading branch information
alzimmermsft authored Feb 29, 2020
1 parent 4102534 commit 8c6cb29
Showing 1 changed file with 36 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1346,41 +1346,42 @@ class FileAPITest extends APISpec {
file.delete()
}

@Unroll
def "Download file AC"() {
setup:
def file = getRandomFile(defaultDataSize)
fc.uploadFromFile(file.toPath().toString(), true)
def outFile = new File(testName + "")
if (outFile.exists()) {
assert outFile.delete()
}

match = setupPathMatchCondition(fc, match)
leaseID = setupPathLeaseCondition(fc, leaseID)
DataLakeRequestConditions bro = new DataLakeRequestConditions().setIfModifiedSince(modified)
.setIfUnmodifiedSince(unmodified).setIfMatch(match).setIfNoneMatch(noneMatch)
.setLeaseId(leaseID)

when:
fc.readToFileWithResponse(outFile.toPath().toString(), null, null, null, bro, false, null, null, null)

then:
notThrown(DataLakeStorageException)

cleanup:
outFile.delete()
file.delete()

where:
modified | unmodified | match | noneMatch | leaseID
null | null | null | null | null
oldDate | null | null | null | null
null | newDate | null | null | null
null | null | receivedEtag | null | null
null | null | null | garbageEtag | null
null | null | null | null | receivedLeaseID
}
// TODO (alzimmer): Disabling this test until this issue is fixed. https://github.com/Azure/azure-sdk-for-java/issues/8611
// @Unroll
// def "Download file AC"() {
// setup:
// def file = getRandomFile(defaultDataSize)
// fc.uploadFromFile(file.toPath().toString(), true)
// def outFile = new File(testName + "")
// if (outFile.exists()) {
// assert outFile.delete()
// }
//
// match = setupPathMatchCondition(fc, match)
// leaseID = setupPathLeaseCondition(fc, leaseID)
// DataLakeRequestConditions bro = new DataLakeRequestConditions().setIfModifiedSince(modified)
// .setIfUnmodifiedSince(unmodified).setIfMatch(match).setIfNoneMatch(noneMatch)
// .setLeaseId(leaseID)
//
// when:
// fc.readToFileWithResponse(outFile.toPath().toString(), null, null, null, bro, false, null, null, null)
//
// then:
// notThrown(DataLakeStorageException)
//
// cleanup:
// outFile.delete()
// file.delete()
//
// where:
// modified | unmodified | match | noneMatch | leaseID
// null | null | null | null | null
// oldDate | null | null | null | null
// null | newDate | null | null | null
// null | null | receivedEtag | null | null
// null | null | null | garbageEtag | null
// null | null | null | null | receivedLeaseID
// }

@Unroll
def "Download file AC fail"() {
Expand Down

0 comments on commit 8c6cb29

Please sign in to comment.