forked from Azure/autorest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add extra Storage api version acceptance tests
- Loading branch information
Dan Schulte
committed
May 25, 2016
1 parent
ef4d3ed
commit 2f45870
Showing
6 changed files
with
1,855 additions
and
8 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
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
66 changes: 66 additions & 0 deletions
66
...hema/AzureResourceSchema.Tests/Expected/Storage/2015-05-01-preview/Microsoft.Storage.json
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,66 @@ | ||
{ | ||
"id": "http://schema.management.azure.com/schemas/2015-05-01-preview/Microsoft.Storage.json#", | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Microsoft.Storage", | ||
"description": "Microsoft Storage Resource Types", | ||
"resourceDefinitions": { | ||
"storageAccounts": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"Microsoft.Storage/storageAccounts" | ||
] | ||
}, | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2015-05-01-preview" | ||
] | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/StorageAccountPropertiesCreateParameters" | ||
}, | ||
{ | ||
"$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression" | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"type", | ||
"apiVersion", | ||
"properties" | ||
], | ||
"description": "Microsoft.Storage/storageAccounts" | ||
} | ||
}, | ||
"definitions": { | ||
"StorageAccountPropertiesCreateParameters": { | ||
"type": "object", | ||
"properties": { | ||
"accountType": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"Standard_LRS", | ||
"Standard_ZRS", | ||
"Standard_GRS", | ||
"Standard_RAGRS", | ||
"Premium_LRS" | ||
] | ||
}, | ||
{ | ||
"$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Gets or sets the account type. Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS'" | ||
} | ||
} | ||
} | ||
} | ||
} |
88 changes: 88 additions & 0 deletions
88
...sourceSchema/AzureResourceSchema.Tests/Expected/Storage/2015-06-15/Microsoft.Storage.json
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,88 @@ | ||
{ | ||
"id": "http://schema.management.azure.com/schemas/2015-06-15/Microsoft.Storage.json#", | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Microsoft.Storage", | ||
"description": "Microsoft Storage Resource Types", | ||
"resourceDefinitions": { | ||
"storageAccounts": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"Microsoft.Storage/storageAccounts" | ||
] | ||
}, | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2015-06-15" | ||
] | ||
}, | ||
"location": { | ||
"type": "string", | ||
"description": "Resource location" | ||
}, | ||
"tags": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Resource tags" | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/StorageAccountPropertiesCreateParameters" | ||
}, | ||
{ | ||
"$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression" | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"type", | ||
"apiVersion", | ||
"location", | ||
"properties" | ||
], | ||
"description": "Microsoft.Storage/storageAccounts" | ||
} | ||
}, | ||
"definitions": { | ||
"StorageAccountPropertiesCreateParameters": { | ||
"type": "object", | ||
"properties": { | ||
"accountType": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"Standard_LRS", | ||
"Standard_ZRS", | ||
"Standard_GRS", | ||
"Standard_RAGRS", | ||
"Premium_LRS" | ||
] | ||
}, | ||
{ | ||
"$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Gets or sets the account type. Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS'" | ||
} | ||
}, | ||
"required": [ | ||
"accountType" | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.