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

[tables] Add tables live test configuration #14796

Merged
merged 1 commit into from
Sep 3, 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
103 changes: 103 additions & 0 deletions sdk/tables/test-resources.json
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/;'))]",
}
}
}
99 changes: 99 additions & 0 deletions sdk/tables/tests.yml
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"}'