Skip to content

Commit

Permalink
Add DataLakeAnalytics acceptance test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Schulte committed May 26, 2016
1 parent 18c6a84 commit 81937b8
Show file tree
Hide file tree
Showing 4 changed files with 1,798 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ public static void Compute_2016_03_30()
RunSwaggerTest("Compute", "2016-03-30", "compute.json");
}

[Fact]
public static void DataLakeAnalytics_2015_10_01_preview()
{
RunSwaggerTest("DataLakeAnalytics", "2015-10-01-preview", "account.json");
}

[Fact]
public static void Dns_2015_05_04_preview()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@
<Content Include="Expected\CognitiveServices\2016-02-01-preview\Microsoft.CognitiveServices.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Expected\DataLakeAnalytics\2015-10-01-preview\Microsoft.DataLakeAnalytics.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="packages.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down Expand Up @@ -177,6 +180,9 @@
<Content Include="Swagger\CognitiveServices\2016-02-01-preview\cognitiveservices.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Swagger\DataLakeAnalytics\2015-10-01-preview\account.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Modelers\Swagger.Tests\AutoRest.Modeler.Swagger.Tests.csproj">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
{
"id": "http://schema.management.azure.com/schemas/2015-10-01-preview/Microsoft.DataLakeAnalytics.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.DataLakeAnalytics",
"description": "Microsoft DataLakeAnalytics Resource Types",
"resourceDefinitions": {
"accounts": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"Microsoft.DataLakeAnalytics/accounts"
]
},
"apiVersion": {
"type": "string",
"enum": [
"2015-10-01-preview"
]
},
"location": {
"type": "string",
"description": "Gets or sets the account regional location."
},
"name": {
"type": "string",
"description": "Gets or sets the account name."
},
"tags": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
}
},
{
"$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
}
],
"description": "Gets or sets the value of custom properties."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/DataLakeAnalyticsAccountProperties"
},
{
"$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
}
],
"description": "Gets or sets the properties defined by Data Lake Analytics all properties are specific to each resource provider."
}
},
"required": [
"type",
"apiVersion",
"properties"
],
"description": "Microsoft.DataLakeAnalytics/accounts"
}
},
"definitions": {
"DataLakeAnalyticsAccountProperties": {
"type": "object",
"properties": {
"defaultDataLakeStoreAccount": {
"type": "string",
"description": "Gets or sets the default data lake storage account associated with this Data Lake Analytics account."
},
"maxDegreeOfParallelism": {
"oneOf": [
{
"type": "integer"
},
{
"$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
}
],
"description": "Gets or sets the maximum supported degree of parallelism for this acocunt."
},
"maxJobCount": {
"oneOf": [
{
"type": "integer"
},
{
"$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
}
],
"description": "Gets or sets the maximum supported jobs running under the account at the same time."
},
"dataLakeStoreAccounts": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/DataLakeStoreAccountInfo"
}
},
{
"$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
}
],
"description": "Gets or sets the list of Data Lake storage accounts associated with this account."
},
"storageAccounts": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/StorageAccountInfo"
}
},
{
"$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
}
],
"description": "Gets or sets the list of Azure Blob storage accounts associated with this account."
}
},
"description": "The account specific properties that are associated with an underlying Data Lake Analytics account."
},
"DataLakeStoreAccountInfo": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Gets or sets the account name of the Data Lake Store account."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/DataLakeStoreAccountInfoProperties"
},
{
"$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
}
],
"description": "Gets or sets the properties associated with this Data Lake Store account."
}
},
"required": [
"name"
],
"description": "Data Lake Store account information."
},
"DataLakeStoreAccountInfoProperties": {
"type": "object",
"properties": {
"suffix": {
"type": "string",
"description": "Gets or sets the optional suffix for the Data Lake Store account."
}
},
"description": "Data Lake Store account properties information."
},
"StorageAccountInfo": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Gets or sets the account name associated with the Azure storage account."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/StorageAccountProperties"
},
{
"$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
}
],
"description": "Gets or sets the properties associated with this storage account."
}
},
"required": [
"name",
"properties"
],
"description": "Azure Storage account information."
},
"StorageAccountProperties": {
"type": "object",
"properties": {
"accessKey": {
"type": "string",
"description": "Gets or sets the access key associated with this Azure Storage account that will be used to connect to it."
},
"suffix": {
"type": "string",
"description": "Gets or sets the optional suffix for the Data Lake account."
}
},
"required": [
"accessKey"
],
"description": "Azure Storage account properties information."
}
}
}

0 comments on commit 81937b8

Please sign in to comment.