Skip to content

Commit

Permalink
Live test fix (#13207)
Browse files Browse the repository at this point in the history
* Live test fix

* Added some logging to undelete

* Added recording

* Added slf4j

* Tags are eventually consistent

* Enabled debug logging

* https

* Trying a sleep

* More logging

* Logging for listing tests

* Undid some logging. Removed versioning from arm template

* Created a separate account in the arm template for accounts with versioning

* Fixed arm template

* Fixed find blobs marker
  • Loading branch information
rickle-msft authored Jul 20, 2020
1 parent 8ee3239 commit 26813b2
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 101 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2528,7 +2528,6 @@ class BlobAPITest extends APISpec {

when:
def undeleteHeaders = bc.undeleteWithResponse(null, null).getHeaders()

bc.getProperties()

then:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,11 @@ class ServiceAPITest extends APISpec {
blobClient = containerClient.getBlobClient(generateBlobName())
blobClient.upload(defaultInputStream.get(), defaultDataSize)

sleepIfRecord(10 * 1000) // To allow tags to index

when:
def results = primaryBlobServiceClient.findBlobsByTags("\"bar\"='foo'")
def results = primaryBlobServiceClient.findBlobsByTags(String.format("@container='%s' AND \"bar\"='foo'",
containerClient.getBlobContainerName()))

then:
results.size() == 1
Expand All @@ -293,6 +296,8 @@ class ServiceAPITest extends APISpec {
new BlobParallelUploadOptions(defaultInputStream.get(), defaultDataSize).setTags(tags), null, null)
}

sleepIfRecord(10 * 1000) // To allow tags to index

def firstPage = primaryBlobServiceClient.findBlobsByTags(new FindBlobsOptions("\"tag\"='value'")
.setMaxResultsPerPage(5), null, Context.NONE)
.iterableByPage().iterator().next()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class VersioningTest extends APISpec {
def setup() {
blobName = generateBlobName()
containerName = generateContainerName()
blobContainerClient = primaryBlobServiceClient.createBlobContainer(containerName)
blobContainerClient = versionedBlobServiceClient.createBlobContainer(containerName)
blobClient = blobContainerClient.getBlobClient(blobName)
}

Expand Down
Loading

0 comments on commit 26813b2

Please sign in to comment.