-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tables live test configuration (#14796)
- Loading branch information
Showing
2 changed files
with
202 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"baseName": { | ||
"type": "String" | ||
}, | ||
"endpointType": { | ||
"type": "String" | ||
} | ||
}, | ||
"variables": { | ||
"mgmtApiVersion": "2019-04-01", | ||
"location": "[resourceGroup().location]", | ||
"primaryAccountName": "[concat(parameters('baseName'), 'prim')]", | ||
"encryption": { | ||
"services": { | ||
"file": { | ||
"enabled": true | ||
}, | ||
"blob": { | ||
"enabled": true | ||
} | ||
}, | ||
"keySource": "Microsoft.Storage" | ||
}, | ||
"networkAcls": { | ||
"bypass": "AzureServices", | ||
"virtualNetworkRules": [], | ||
"ipRules": [], | ||
"defaultAction": "Allow" | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"condition": "[equals(parameters('endpointType'),'storage')]", | ||
"type": "Microsoft.Storage/storageAccounts", | ||
"apiVersion": "[variables('mgmtApiVersion')]", | ||
"name": "[variables('primaryAccountName')]", | ||
"location": "[variables('location')]", | ||
"sku": { | ||
"name": "Standard_RAGRS", | ||
"tier": "Standard" | ||
}, | ||
"kind": "StorageV2", | ||
"properties": { | ||
"networkAcls": "[variables('networkAcls')]", | ||
"supportsHttpsTrafficOnly": true, | ||
"encryption": "[variables('encryption')]", | ||
"accessTier": "Cool" | ||
} | ||
}, | ||
{ | ||
"condition": "[equals(parameters('endpointType'),'cosmos')]", | ||
"type": "Microsoft.DocumentDB/databaseAccounts", | ||
"apiVersion": "2020-04-01", | ||
"name": "[variables('primaryAccountName')]", | ||
"location": "[variables('location')]", | ||
"tags": { | ||
"defaultExperience": "Azure Table", | ||
"hidden-cosmos-mmspecial": "", | ||
"CosmosAccountType": "Non-Production" | ||
}, | ||
"kind": "GlobalDocumentDB", | ||
"properties": { | ||
"publicNetworkAccess": "Enabled", | ||
"enableAutomaticFailover": false, | ||
"enableMultipleWriteLocations": false, | ||
"isVirtualNetworkFilterEnabled": false, | ||
"virtualNetworkRules": [], | ||
"disableKeyBasedMetadataWriteAccess": false, | ||
"enableFreeTier": false, | ||
"enableAnalyticalStorage": false, | ||
"databaseAccountOfferType": "Standard", | ||
"consistencyPolicy": { | ||
"defaultConsistencyLevel": "BoundedStaleness", | ||
"maxIntervalInSeconds": 86400, | ||
"maxStalenessPrefix": 1000000 | ||
}, | ||
"locations": [ | ||
{ | ||
"locationName": "[variables('location')]", | ||
"provisioningState": "Succeeded", | ||
"failoverPriority": 0, | ||
"isZoneRedundant": false | ||
} | ||
], | ||
"capabilities": [ | ||
{ | ||
"name": "EnableTable" | ||
} | ||
], | ||
"ipRules": [] | ||
} | ||
} | ||
], | ||
"outputs": { | ||
"AZURE_TABLES_CONNECTION_STRING": { | ||
"type": "string", | ||
"value": "[if(equals(parameters('endpointType'), 'storage'), concat('DefaultEndpointsProtocol=https;AccountName=', variables('primaryAccountName'), ';AccountKey=', listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('primaryAccountName')), variables('mgmtApiVersion')).keys[0].value, ';EndpointSuffix=core.windows.net/;'), concat('DefaultEndpointsProtocol=https;AccountName=', variables('primaryAccountName'), ';AccountKey=', listKeys(resourceId('Microsoft.DocumentDB/databaseAccounts', variables('primaryAccountName')), variables('mgmtApiVersion')).primaryMasterKey, ';EndpointSuffix=cosmos.azure.com:443/;'))]", | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
trigger: none | ||
|
||
jobs: | ||
- template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml | ||
parameters: | ||
ServiceDirectory: tables | ||
Timeout: 60 | ||
MaxParallel: 12 | ||
EnvVars: | ||
AZURE_TEST_MODE: LIVE | ||
Artifacts: | ||
- name: azure-data-tables | ||
groupId: com.azure | ||
safeName: azuretables | ||
Matrix: | ||
Linux - Java 8 Storage (AzureCloud): | ||
OSVmImage: 'ubuntu-18.04' | ||
JavaTestVersion: '1.8' | ||
DisplayName: 'Linux - Java 8 - Storage' | ||
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) | ||
AZURE_TEST_HTTP_CLIENTS: netty | ||
ArmTemplateParameters: '@{endpointType="storage"}' | ||
macOS - Java 8 Storage (AzureCloud): | ||
OSVmImage: 'macOS-10.15' | ||
JavaTestVersion: '1.8' | ||
DisplayName: 'macOS - Java 8 - Storage' | ||
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) | ||
AZURE_TEST_HTTP_CLIENTS: okhttp | ||
ArmTemplateParameters: '@{endpointType="storage"}' | ||
Windows - Java 8 Storage (AzureCloud): | ||
OSVmImage: 'windows-2019' | ||
JavaTestVersion: '1.8' | ||
DisplayName: 'Windows - Java 8 - Storage' | ||
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) | ||
AZURE_TEST_HTTP_CLIENTS: netty | ||
ArmTemplateParameters: '@{endpointType="storage"}' | ||
Linux - Java 11 Storage (AzureCloud): | ||
OSVmImage: 'ubuntu-18.04' | ||
JavaTestVersion: '1.11' | ||
DisplayName: 'Linux - Java 11 - Storage' | ||
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) | ||
AZURE_TEST_HTTP_CLIENTS: okhttp | ||
ArmTemplateParameters: '@{endpointType="storage"}' | ||
macOS - Java 11 Storage (AzureCloud): | ||
OSVmImage: 'macOS-10.15' | ||
JavaTestVersion: '1.11' | ||
DisplayName: 'macOS - Java 11 - Storage' | ||
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) | ||
AZURE_TEST_HTTP_CLIENTS: netty | ||
ArmTemplateParameters: '@{endpointType="storage"}' | ||
Windows - Java 11 Storage (AzureCloud): | ||
OSVmImage: 'windows-2019' | ||
JavaTestVersion: '1.11' | ||
DisplayName: 'Windows - Java 11 - Storage' | ||
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) | ||
AZURE_TEST_HTTP_CLIENTS: okhttp | ||
ArmTemplateParameters: '@{endpointType="storage"}' | ||
Linux - Java 8 CosmosDB (AzureCloud): | ||
OSVmImage: 'ubuntu-18.04' | ||
JavaTestVersion: '1.8' | ||
DisplayName: 'Linux - Java 8 - CosmosDB' | ||
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) | ||
AZURE_TEST_HTTP_CLIENTS: netty | ||
ArmTemplateParameters: '@{endpointType="cosmos"}' | ||
macOS - Java 8 CosmosDB (AzureCloud): | ||
OSVmImage: 'macOS-10.15' | ||
JavaTestVersion: '1.8' | ||
DisplayName: 'macOS - Java 8 - CosmosDB' | ||
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) | ||
AZURE_TEST_HTTP_CLIENTS: okhttp | ||
ArmTemplateParameters: '@{endpointType="cosmos"}' | ||
Windows - Java 8 CosmosDB (AzureCloud): | ||
OSVmImage: 'windows-2019' | ||
JavaTestVersion: '1.8' | ||
DisplayName: 'Windows - Java 8 - CosmosDB' | ||
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) | ||
AZURE_TEST_HTTP_CLIENTS: netty | ||
ArmTemplateParameters: '@{endpointType="cosmos"}' | ||
Linux - Java 11 CosmosDB (AzureCloud): | ||
OSVmImage: 'ubuntu-18.04' | ||
JavaTestVersion: '1.11' | ||
DisplayName: 'Linux - Java 11 - CosmosDB' | ||
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) | ||
AZURE_TEST_HTTP_CLIENTS: okhttp | ||
ArmTemplateParameters: '@{endpointType="cosmos"}' | ||
macOS - Java 11 CosmosDB (AzureCloud): | ||
OSVmImage: 'macOS-10.15' | ||
JavaTestVersion: '1.11' | ||
DisplayName: 'macOS - Java 11 - CosmosDB' | ||
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) | ||
AZURE_TEST_HTTP_CLIENTS: netty | ||
ArmTemplateParameters: '@{endpointType="cosmos"}' | ||
Windows - Java 11 CosmosDB (AzureCloud): | ||
OSVmImage: 'windows-2019' | ||
JavaTestVersion: '1.11' | ||
DisplayName: 'Windows - Java 11 - CosmosDB' | ||
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) | ||
AZURE_TEST_HTTP_CLIENTS: okhttp | ||
ArmTemplateParameters: '@{endpointType="cosmos"}' |