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

Migrate integration tests for spring-data-cosmosdb #12609

Merged
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
revert eng files and modify test-resources.json for IT
yiliuTo committed Jul 7, 2020

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
commit b4a7f460359128408962b52976c06c254e746d7a
1 change: 0 additions & 1 deletion eng/pipelines/scripts/generate_overview_from_readme.py
Original file line number Diff line number Diff line change
@@ -41,7 +41,6 @@ def generate_overview(readme_file, version):
# extras being passed into the markdown call is necessary to deal with the embedded
# code blocks within the readme so they'll displaye correctly in the html
html_readme_content = markdown2.markdown(readme_content, extras=["fenced-code-blocks"])
html_readme_content = html_readme_content.replace("@", "{@literal @}")

# Due to javadoc's iFrames the links need to target new tabs otherwise hilarity ensues
soup = BeautifulSoup(html_readme_content, "html.parser")
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cosmosdb.uri=${DOCUMENTDB_URI}
cosmosdb.key=${DOCUMENTDB_KEY}
cosmosdb.secondaryKey=${COSMOSDB_SECONDARY_KEY}
cosmosdb.uri=${ACCOUNT_HOST}
cosmosdb.key=${ACCOUNT_KEY}
cosmosdb.secondaryKey=${SECONDARY_ACCOUNT_KEY}

#You can also use connection string instead of uri and key to connect to cosmos DB
#cosmosdb.connection-string=${DOCUMENTDB_CONNECTION_STRING}
27 changes: 0 additions & 27 deletions sdk/cosmos/test-resources.json
Original file line number Diff line number Diff line change
@@ -28,9 +28,7 @@
"variables": {
"apiVersion": "2020-04-01",
"accountName": "[toLower(parameters('baseName'))]",
"accountName_spring_cosmos": "[concat(toLower(parameters('baseName')),'-spring-cosmos')]",
"resourceId": "[resourceId('Microsoft.DocumentDB/databaseAccounts', variables('accountName'))]",
"resourceId_spring_cosmos": "[resourceId('Microsoft.DocumentDB/databaseAccounts', variables('accountName_spring_cosmos'))]",
"singleRegionConfiguration": [
{
"locationName": "East US 2",
@@ -81,19 +79,6 @@
"capabilities": [],
"ipRules": []
}
},
{
"type": "Microsoft.DocumentDB/databaseAccounts",
"apiVersion": "[variables('apiVersion')]",
"name": "[variables('accountName_spring_cosmos')]",
"kind": "GlobalDocumentDB",
"location": "[resourceGroup().location]",
"properties": {
"databaseAccountOfferType": "Standard",
"consistencyPolicy": {
"defaultConsistencyLevel": "Session"
}
}
}
],
"outputs": {
@@ -108,18 +93,6 @@
"SECONDARY_ACCOUNT_KEY": {
"type": "string",
"value": "[listKeys(variables('resourceId'), variables('apiVersion')).secondaryMasterKey]"
},
"DOCUMENTDB_KEY": {
"type": "string",
"value": "[listKeys(variables('resourceId_spring_cosmos'), variables('apiVersion')).primaryMasterKey]"
},
"COSMOSDB_SECONDARY_KEY": {
"type": "string",
"value": "[listKeys(variables('resourceId_spring_cosmos'), variables('apiVersion')).secondaryMasterKey]"
},
"DOCUMENTDB_URI": {
"type": "string",
"value": "[reference(variables('resourceId_spring_cosmos'), variables('apiVersion')).documentEndpoint]"
}
}
}