Skip to content
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 @@ -122,6 +122,7 @@ class LargeBlobTest extends APISpec {
}

@Requires({ liveMode() })
@Ignore("IS mark/reset")
// This test does not send large payload over the wire
def "Upload Large Blob in Single Upload"() {
given:
Expand All @@ -140,6 +141,7 @@ class LargeBlobTest extends APISpec {
}

@Requires({ liveMode() })
@Ignore("OOM")
// This test does not send large payload over the wire
def "Upload Large Blob in Single Upload Async"() {
given:
Expand All @@ -156,6 +158,7 @@ class LargeBlobTest extends APISpec {
}

@Requires({ liveMode() })
@Ignore("IS mark/reset")
// This test does not send large payload over the wire
def "Stage Large Blob"() {
given:
Expand All @@ -172,6 +175,7 @@ class LargeBlobTest extends APISpec {
}

@Requires({ liveMode() })
@Ignore("OOM")
// This test does not send large payload over the wire
def "Upload Large Input"() {
given:
Expand Down Expand Up @@ -209,6 +213,7 @@ class LargeBlobTest extends APISpec {
}

@Requires({ liveMode() })
@Ignore("IS mark/reset")
// This test does not send large payload over the wire
def "Upload Large Input Sync"() {
given:
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 = versionedBlobServiceClient.createBlobContainer(containerName)
blobContainerClient = primaryBlobServiceClient.createBlobContainer(containerName)
blobClient = blobContainerClient.getBlobClient(blobName)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ import java.nio.ByteBuffer

class FluxInputStreamTest extends Specification {

def setup() {
String fullTestName = specificationContext.getCurrentIteration().getName().replace(' ', '').toLowerCase()
String className = specificationContext.getCurrentSpec().getName()
// Print out the test name to create breadcrumbs in our test logging in case anything hangs.
System.out.printf("========================= %s.%s =========================%n", className, fullTestName)
}

/* Network tests to be performed by implementors of the FluxInputStream. */
Flux<ByteBuffer> generateData(int num) {
List<ByteBuffer> buffers = new ArrayList<>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import com.azure.storage.common.ParallelTransferOptions
import com.azure.storage.common.implementation.Constants
import com.azure.storage.common.policy.StorageSharedKeyCredentialPolicy
import com.azure.storage.file.datalake.models.DataLakeStorageException
import org.reactivestreams.Publisher
import org.reactivestreams.Subscriber
import reactor.core.publisher.Flux
import reactor.core.publisher.Mono
import spock.lang.Ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ import java.nio.ByteBuffer

class AvroParserStateTest extends Specification {

def setup() {
String fullTestName = specificationContext.getCurrentIteration().getName().replace(' ', '').toLowerCase()
String className = specificationContext.getCurrentSpec().getName()
// Print out the test name to create breadcrumbs in our test logging in case anything hangs.
System.out.printf("========================= %s.%s =========================%n", className, fullTestName)
}

def "constructor"() {
setup:
AvroParserState state = new AvroParserState()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ import java.nio.file.StandardOpenOption

class AvroReaderTest extends Specification {

def setup() {
String fullTestName = specificationContext.getCurrentIteration().getName().replace(' ', '').toLowerCase()
String className = specificationContext.getCurrentSpec().getName()
// Print out the test name to create breadcrumbs in our test logging in case anything hangs.
System.out.printf("========================= %s.%s =========================%n", className, fullTestName)
}

String getTestCasePath(int testCase) {
String fileName = String.format("test_null_%d.avro", testCase)
ClassLoader classLoader = getClass().getClassLoader()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ import java.nio.ByteBuffer

class AvroSchemaTest extends Specification {

def setup() {
String fullTestName = specificationContext.getCurrentIteration().getName().replace(' ', '').toLowerCase()
String className = specificationContext.getCurrentSpec().getName()
// Print out the test name to create breadcrumbs in our test logging in case anything hangs.
System.out.printf("========================= %s.%s =========================%n", className, fullTestName)
}

def "getBytes"() {
setup:
ByteBuffer b1 = ByteBuffer.wrap("Hello ".getBytes())
Expand Down
32 changes: 31 additions & 1 deletion sdk/storage/test-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
"variables": {
"storageApiVersion": "2019-04-01",
"storageApiVersion": "2019-06-01",
"authorizationApiVersion": "2018-09-01-preview",
"blobDataContributorRoleId": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe')]",
"contributorRoleId": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c')]",
Expand Down Expand Up @@ -85,6 +85,36 @@
"accessTier": "Hot"
}
},
{
"type": "Microsoft.Storage/storageAccounts/blobServices",
"apiVersion": "[variables('storageApiVersion')]",
"name": "[concat(variables('primaryAccountName'), '/default')]",
"properties": {
"isVersioningEnabled": true,
"deleteRetentionPolicy": {
"enabled": true,
"days": 1
}

},
"dependsOn": [
"[variables('primaryAccountName')]"
]
},
{
"type": "Microsoft.Storage/storageAccounts/fileServices",
"apiVersion": "[variables('storageApiVersion')]",
"name": "[concat(variables('primaryAccountName'), '/default')]",
"properties": {
"shareDeleteRetentionPolicy": {
"enabled": true,
"days": 1
}
},
"dependsOn": [
"[variables('primaryAccountName')]"
]
},
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "[variables('storageApiVersion')]",
Expand Down
9 changes: 9 additions & 0 deletions sdk/storage/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
- name: azure-storage-blob-batch
groupId: com.azure
safeName: azurestorageblobbatch
- name: azure-storage-blob-changefeed
groupId: com.azure
safeName: azurestorageblobchangefeed
- name: azure-storage-blob-cryptography
groupId: com.azure
safeName: azurestorageblobcryptography
Expand All @@ -26,14 +29,20 @@ jobs:
- name: azure-storage-file-datalake
groupId: com.azure
safeName: azurestoragefiledatalake
- name: azure-storage-internal-avro
groupId: com.azure
safeName: azurestorageinternalavro
- name: azure-storage-queue
groupId: com.azure
safeName: azurestoragequeue
TimeoutInMinutes: 120
Location: canadacentral
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources-preview)
EnvVars:
AZURE_TEST_MODE: LIVE
AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id)
AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id)
AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret)
VERSIONED_STORAGE_ACCOUNT_NAME: $(java-storage-versioned-account-name)
VERSIONED_STORAGE_ACCOUNT_KEY: $(java-storage-versioned-account-key)