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

Temporarily disable cosmosdb smoke tests #10779

Merged
merged 1 commit into from
Apr 10, 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
8 changes: 6 additions & 2 deletions common/smoketest/smoke_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
from key_vault_secrets import KeyVaultSecrets
from storage_blob import StorageBlob
from event_hubs import EventHub
from cosmos_db import CosmosDB

# Temporarily disable cosmos smoke tests
# from cosmos_db import CosmosDB

def execute_smoke_tests():
print("")
Expand All @@ -20,4 +22,6 @@ def execute_smoke_tests():
KeyVaultSecrets().run()
StorageBlob().run()
EventHub().run()
CosmosDB().run()

# Temporarily disable cosmos smoke tests
# CosmosDB().run()
43 changes: 1 addition & 42 deletions common/smoketest/test-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,42 +33,9 @@
"eventHubNamespaceName": "[format('eh-smoke-{0}', parameters('baseName'))]",
"eventHubName": "myeventhub",
"eventHubAuthorizationRuleName": "RootManageSharedAccessKey",
"storageAccountName": "[format('stsmoke{0}', parameters('baseName'))]",
"cosmosDbAccountName": "[format('co-smoke-{0}', parameters('baseName'))]"
"storageAccountName": "[format('stsmoke{0}', parameters('baseName'))]"
},
"resources": [
{
"type": "Microsoft.DocumentDB/databaseAccounts",
"apiVersion": "2019-12-12",
"name": "[variables('cosmosDbAccountName')]",
"location": "[parameters('location')]",
"tags": {
"defaultExperience": "Core (SQL)"
},
"kind": "GlobalDocumentDB",
"properties": {
"enableAutomaticFailover": false,
"enableMultipleWriteLocations": false,
"isVirtualNetworkFilterEnabled": false,
"virtualNetworkRules": [],
"disableKeyBasedMetadataWriteAccess": false,
"databaseAccountOfferType": "Standard",
"consistencyPolicy": {
"defaultConsistencyLevel": "Session",
"maxIntervalInSeconds": 5,
"maxStalenessPrefix": 100
},
"locations": [
{
"locationName": "[parameters('location')]",
"provisioningState": "Succeeded",
"failoverPriority": 0,
"isZoneRedundant": false
}
],
"capabilities": []
}
},
{
"type": "Microsoft.EventHub/namespaces",
"apiVersion": "2018-01-01-preview",
Expand Down Expand Up @@ -297,14 +264,6 @@
"STORAGE_CONNECTION_STRING": {
"type": "string",
"value": "[concat('DefaultEndpointsProtocol=https;AccountName=', variables('storageAccountName'), ';AccountKey=', listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), '2019-06-01').keys[0].value, ';EndpointSuffix=', parameters('storageEndpointSuffix'))]"
},
"COSMOS_KEY": {
"type": "string",
"value": "[listKeys(variables('cosmosDbAccountName'), '2019-12-12').primaryMasterKey]"
},
"COSMOS_ENDPOINT": {
"type": "string",
"value": "[reference(variables('cosmosDbAccountName')).documentEndpoint]"
}
}
}