-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Testing samples #16577
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
Merged
Merged
Testing samples #16577
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
616238d
testing samples, ignore push mode samples
swathipil b382fcb
update tests.yml for sample testing
swathipil 5a04344
ignore custom endpoint samples
swathipil edd6d8b
use env vars defined, not arm template
swathipil fb6c69d
added more resources to arm template
swathipil 0f525a8
ignore chkpt samples
swathipil aec8796
fix ignore chkpt samples
swathipil c71e0a9
fix merge conflict for sb ignore samples
swathipil 0399107
Merge branch 'master' into swathipil/eh/test-samples
swathipil 4f42323
Merge branch 'master' into swathipil/eh/test-samples
swathipil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,202 @@ | ||
| { | ||
| "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
| "contentVersion": "1.0.0.0", | ||
| "parameters": { | ||
| "baseName": { | ||
| "type": "string", | ||
| "defaultValue": "[resourceGroup().name]", | ||
| "metadata": { | ||
| "description": "The base resource name." | ||
| } | ||
| }, | ||
| "subscriptionId": { | ||
| "type": "string", | ||
| "defaultValue": "[subscription().subscriptionId]", | ||
| "metadata": { | ||
| "description": "The subscription ID to which the application and resources belong." | ||
| } | ||
| }, | ||
| "tenantId": { | ||
| "type": "string", | ||
| "defaultValue": "[subscription().tenantId]", | ||
| "metadata": { | ||
| "description": "The tenant ID to which the application and resources belong." | ||
| } | ||
| }, | ||
| "testApplicationOid": { | ||
| "type": "string", | ||
| "metadata": { | ||
| "description": "The client OID to grant access to test resources." | ||
| } | ||
| }, | ||
| "testApplicationId": { | ||
| "type": "string", | ||
| "metadata": { | ||
| "description": "The application client ID used to run tests." | ||
| } | ||
| }, | ||
| "testApplicationSecret": { | ||
| "type": "string", | ||
| "metadata": { | ||
| "description": "The application client secret used to run tests." | ||
| } | ||
| }, | ||
| "location": { | ||
| "type": "string", | ||
| "defaultValue": "[resourceGroup().location]", | ||
| "metadata": { | ||
| "description": "The location of the resources. By default, this is the same as the resource group." | ||
| } | ||
| }, | ||
| "storageEndpointSuffix": { | ||
| "type": "string", | ||
| "defaultValue": "core.windows.net", | ||
| "metadata": { | ||
| "description": "The url suffix to use when creating storage connection strings." | ||
| } | ||
| }, | ||
| "perTestExecutionLimitMinutes": { | ||
| "type": "string", | ||
| "defaultValue": "10", | ||
| "metadata": { | ||
| "description": "The maximum duration, in minutes, that a single test is permitted to run before it is considered at-risk for being hung." | ||
| } | ||
| } | ||
| }, | ||
| "variables": { | ||
| "ehVersion": "2017-04-01", | ||
| "contributorRoleId": "b24988ac-6180-42a0-ab88-20f7382dd24c", | ||
| "eventHubsDataOwnerRoleId": "f526a384-b230-433a-b45c-95f59c4a2dec", | ||
|
yunhaoling marked this conversation as resolved.
|
||
| "eventHubsNamespace": "[concat('eh-', parameters('baseName'))]", | ||
| "eventHubName": "[concat('eh-', parameters('baseName'), '-hub')]", | ||
| "eventHubAuthRuleName": "[concat('eh-', parameters('baseName'), '-hub-auth-rule')]", | ||
| "storageAccount": "[concat('blb', parameters('baseName'))]", | ||
| "containerName": "your-blob-container-name", | ||
| "defaultSASKeyName": "RootManageSharedAccessKey", | ||
| "eventHubsAuthRuleResourceId": "[resourceId('Microsoft.EventHub/namespaces/authorizationRules', variables('eventHubsNamespace'), variables('defaultSASKeyName'))]", | ||
| "storageAccountId": "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccount'))]", | ||
| }, | ||
| "resources": [ | ||
| { | ||
| "apiVersion": "[variables('ehVersion')]", | ||
| "name": "[variables('eventHubsNamespace')]", | ||
| "type": "Microsoft.EventHub/Namespaces", | ||
| "location": "[parameters('location')]", | ||
| "sku": { | ||
| "name": "Standard", | ||
| "tier": "Standard" | ||
| }, | ||
| "resources": [ | ||
| { | ||
| "type": "Microsoft.EventHub/namespaces/eventhubs", | ||
| "apiVersion": "[variables('ehVersion')]", | ||
| "name": "[concat(variables('eventHubsNamespace'), '/', variables('eventHubName'))]", | ||
| "location": "[parameters('location')]", | ||
| "dependsOn": [ | ||
| "[resourceId('Microsoft.EventHub/namespaces', variables('eventHubsNamespace'))]" | ||
| ], | ||
| "properties": { | ||
| "messageRetentionInDays": 7, | ||
| "partitionCount": 1 | ||
| }, | ||
| "resources": [ | ||
| { | ||
| "apiVersion": "[variables('ehVersion')]", | ||
| "name": "[variables('eventHubAuthRuleName')]", | ||
| "type": "authorizationRules", | ||
| "dependsOn": [ | ||
| "[variables('eventHubName')]" | ||
| ], | ||
| "properties": { | ||
| "Rights": ["Manage", "Send", "Listen"] | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "properties": {} | ||
| }, | ||
| { | ||
| "type": "Microsoft.Storage/storageAccounts", | ||
| "apiVersion": "2019-06-01", | ||
| "name": "[variables('storageAccount')]", | ||
| "location": "[parameters('location')]", | ||
| "sku": { | ||
| "name": "Standard_LRS", | ||
| "tier": "Standard" | ||
| }, | ||
| "kind": "StorageV2", | ||
| "properties": { | ||
| "accessTier": "Hot" | ||
| }, | ||
| "resources": [ | ||
| { | ||
| "type": "blobServices/containers", | ||
| "apiVersion": "2019-06-01", | ||
| "name": "[concat('default/', variables('containerName'))]", | ||
| "dependsOn": [ | ||
| "[variables('storageAccount')]" | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "type": "Microsoft.Authorization/roleAssignments", | ||
| "apiVersion": "2019-04-01-preview", | ||
| "name": "[guid(resourceGroup().id, deployment().name, parameters('baseName'), variables('eventHubsDataOwnerRoleId'), parameters('testApplicationOid'))]", | ||
| "properties": { | ||
| "roleDefinitionId": "[resourceId('Microsoft.Authorization/roleDefinitions', variables('eventHubsDataOwnerRoleId'))]", | ||
| "principalId": "[parameters('testApplicationOid')]", | ||
| "scope": "[resourceGroup().id]" | ||
| } | ||
| }, | ||
| { | ||
| "type": "Microsoft.Authorization/roleAssignments", | ||
| "apiVersion": "2019-04-01-preview", | ||
| "name": "[guid(resourceGroup().id, deployment().name, parameters('baseName'), variables('contributorRoleId'), parameters('testApplicationOid'))]", | ||
| "properties": { | ||
| "roleDefinitionId": "[resourceId('Microsoft.Authorization/roleDefinitions', variables('contributorRoleId'))]", | ||
| "principalId": "[parameters('testApplicationOid')]", | ||
| "scope": "[resourceGroup().id]" | ||
| } | ||
| } | ||
| ], | ||
| "outputs": { | ||
| "EVENT_HUB_NAMESPACE": { | ||
| "type": "string", | ||
| "value": "[variables('eventHubsNamespace')]" | ||
| }, | ||
| "EVENT_HUB_HOSTNAME": { | ||
| "type": "string", | ||
| "value": "[concat(variables('eventHubsNamespace'), '.servicebus.windows.net')]" | ||
| }, | ||
| "EVENT_HUB_CONN_STR": { | ||
| "type": "string", | ||
| "value": "[listkeys(variables('eventHubAuthRuleName'), variables('ehVersion')).primaryConnectionString]" | ||
| }, | ||
| "EVENT_HUB_NAME": { | ||
| "type": "string", | ||
| "value": "[variables('eventHubName')]" | ||
| }, | ||
| "EVENT_HUB_SAS_POLICY":{ | ||
| "type": "string", | ||
| "value": "[variables('eventHubAuthRuleName')]" | ||
| }, | ||
| "EVENT_HUB_SAS_KEY":{ | ||
| "type": "string", | ||
| "value": "[listkeys(variables('eventHubAuthRuleName'), variables('ehVersion')).primaryKey]" | ||
| }, | ||
| "AZURE_STORAGE_CONN_STR": { | ||
| "type": "string", | ||
| "value": "[concat('DefaultEndpointsProtocol=https;AccountName=', variables('storageAccount'), ';AccountKey=', listKeys(variables('storageAccountId'), providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).keys[0].value, ';EndpointSuffix=', parameters('storageEndpointSuffix'))]" | ||
| }, | ||
| "AZURE_STORAGE_ACCOUNT": { | ||
| "type": "string", | ||
| "value": "[variables('storageAccount')]" | ||
| }, | ||
| "AZURE_STORAGE_ACCESS_KEY":{ | ||
| "type": "string", | ||
| "value": "[listKeys(variables('storageAccountId'), providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).keys[0].value]" | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.