From 359fc04bccb5e79ee0375fb40f947fc79a6145fa Mon Sep 17 00:00:00 2001 From: Yi Liu Date: Tue, 23 Jun 2020 16:51:15 +0800 Subject: [PATCH 01/17] add spring cosmosdb IT to sdk\cosmos tests.yml --- sdk/cosmos/tests.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/sdk/cosmos/tests.yml b/sdk/cosmos/tests.yml index ecddcf4d81e7..f8b71e023884 100644 --- a/sdk/cosmos/tests.yml +++ b/sdk/cosmos/tests.yml @@ -244,4 +244,22 @@ jobs: goals: verify options: '$(ProfileFlag) -Dgpg.skip $(AdditionalArgs) -pl $(ProjectList)' - TestResultsFiles: '**/junitreports/TEST-*.xml' \ No newline at end of file + TestResultsFiles: '**/junitreports/TEST-*.xml' + + - template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml + parameters: + TestName: Integration_Test_Spring_Data_Cosmosdb + ServiceDirectory: cosmos + Artifacts: + - name: spring-data-cosmosdb + groupId: com.microsoft.azure + safeName: springdatacosmosdb + TimeoutInMinutes: 120 + EnvVars: + AZURE_TEST_MODE: LIVE + + TestStepMavenInputs: + goals: verify + options: '-Dmaven.wagon.http.pool=false $(DefaultOptions) -Dmaven.javadoc.skip=true -Drevapi.skip=true -Dskip.integration.tests=false -pl $(ProjectList)' + + TestResultsFiles: '**/junitreports/TEST-*.xml' From 6b59bf42c141ad32d28c5281624009481eb25981 Mon Sep 17 00:00:00 2001 From: Yi Liu Date: Wed, 24 Jun 2020 15:03:39 +0800 Subject: [PATCH 02/17] add test-resources.json for IT --- .../test-resources.json | 67 +++++++++++++++++++ sdk/cosmos/tests.yml | 38 +++++------ 2 files changed, 86 insertions(+), 19 deletions(-) create mode 100644 sdk/cosmos/azure-spring-data-cosmosdb/test-resources.json diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/test-resources.json b/sdk/cosmos/azure-spring-data-cosmosdb/test-resources.json new file mode 100644 index 000000000000..aad5bad04c20 --- /dev/null +++ b/sdk/cosmos/azure-spring-data-cosmosdb/test-resources.json @@ -0,0 +1,67 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "baseName": { + "type": "string", + "defaultValue": "[resourceGroup().name]", + "metadata": { + "description": "The base resource name." + } + }, + "location": { + "type": "string", + "defaultValue": "[resourceGroup().location]", + "metadata": { + "description": "The location of the resource. By default, this is the same as the resource group." + } + } + }, + "variables": { + "apiVersion": "2020-03-01", + "accountName": "[toLower(parameters('baseName'))]", + "databaseName": "TestDB", + "resourceId": "[resourceId('Microsoft.DocumentDB/databaseAccounts', variables('accountName'))]" + }, + "resources": [ + { + "type": "Microsoft.DocumentDB/databaseAccounts", + "apiVersion": "[variables('apiVersion')]", + "name": "[variables('accountName')]", + "kind": "GlobalDocumentDB", + "location": "[parameters('location')]", + "properties": { + "databaseAccountOfferType": "Standard", + "consistencyPolicy": { + "defaultConsistencyLevel": "Session" + } + } + }, + { + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases", + "name": "[concat(variables('accountName'), '/', variables('databaseName'))]", + "apiVersion": "[variables('apiVersion')]", + "dependsOn": [ + "[resourceId('Microsoft.DocumentDB/databaseAccounts', variables('accountName'))]" + ], + "properties": { + "resource": { + "id": "[variables('databaseName')]" + }, + "options": { + "throughput": "400" + } + } + } + ], + "outputs": { + "cosmosdbPrimarykey": { + "type": "string", + "value": "[listKeys(variables('resourceId'), variables('apiVersion')).primaryMasterKey]" + }, + "cosmosdbSecondarykey": { + "type": "string", + "value": "[listKeys(variables('resourceId'), variables('apiVersion')).secondaryMasterKey]" + } + } +} diff --git a/sdk/cosmos/tests.yml b/sdk/cosmos/tests.yml index f8b71e023884..b970ba8d587b 100644 --- a/sdk/cosmos/tests.yml +++ b/sdk/cosmos/tests.yml @@ -8,7 +8,25 @@ variables: jobs: - template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml parameters: - TestName: Cosmos_CI + TestName: Integration_Test_Spring_Data_Cosmosdb + ServiceDirectory: cosmos + Artifacts: + - name: spring-data-cosmosdb + groupId: com.microsoft.azure + safeName: springdatacosmosdb + TimeoutInMinutes: 120 + EnvVars: + AZURE_TEST_MODE: LIVE + + TestStepMavenInputs: + goals: verify + options: '-Dmaven.wagon.http.pool=false $(DefaultOptions) -Dmaven.javadoc.skip=true -Drevapi.skip=true -Dskip.integration.tests=false -pl $(ProjectList)' + + TestResultsFiles: '**/junitreports/TEST-*.xml' + + - template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml + parameters: + TestName: Single_Region_Session ServiceDirectory: cosmos Artifacts: - name: azure-cosmos @@ -245,21 +263,3 @@ jobs: options: '$(ProfileFlag) -Dgpg.skip $(AdditionalArgs) -pl $(ProjectList)' TestResultsFiles: '**/junitreports/TEST-*.xml' - - - template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml - parameters: - TestName: Integration_Test_Spring_Data_Cosmosdb - ServiceDirectory: cosmos - Artifacts: - - name: spring-data-cosmosdb - groupId: com.microsoft.azure - safeName: springdatacosmosdb - TimeoutInMinutes: 120 - EnvVars: - AZURE_TEST_MODE: LIVE - - TestStepMavenInputs: - goals: verify - options: '-Dmaven.wagon.http.pool=false $(DefaultOptions) -Dmaven.javadoc.skip=true -Drevapi.skip=true -Dskip.integration.tests=false -pl $(ProjectList)' - - TestResultsFiles: '**/junitreports/TEST-*.xml' From 58d12f4b61d69039914910d4b04b3373bd30cd7b Mon Sep 17 00:00:00 2001 From: Yi Liu Date: Wed, 24 Jun 2020 17:40:55 +0800 Subject: [PATCH 03/17] add default constructor for IT --- sdk/cosmos/azure-spring-data-cosmosdb/pom.xml | 2 +- .../domain/Contact.java | 3 +++ .../domain/Customer.java | 7 +++++++ .../domain/NoDBAnnotationPerson.java | 3 +++ .../domain/PageableAddress.java | 3 +++ .../domain/PageableMemo.java | 3 +++ .../domain/PartitionPerson.java | 3 +++ .../domain/Person.java | 7 +++---- .../domain/Project.java | 3 +++ .../domain/Role.java | 3 +++ .../domain/SortedProject.java | 3 +++ .../domain/Student.java | 3 +++ .../domain/TimeToLiveSample.java | 3 +++ .../integration/IntegerIdDomainRepositoryIT.java | 10 ++++------ .../azure-spring-data-cosmosdb/test-resources.json | 8 ++++++-- 15 files changed, 51 insertions(+), 13 deletions(-) diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml b/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml index c173ad25dd9a..28a449e197b6 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml +++ b/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml @@ -25,7 +25,7 @@ spring-data-cosmosdb-test testdb-${maven.build.timestamp} - true + false false false diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Contact.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Contact.java index 3c2bfc9c5dd4..6770f1c528da 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Contact.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Contact.java @@ -14,6 +14,9 @@ public class Contact { private String title; + public Contact() { + } + public Contact(String logicId, String title) { this.logicId = logicId; this.title = title; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Customer.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Customer.java index e79d5a49b696..3f6bf6e81153 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Customer.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Customer.java @@ -4,6 +4,7 @@ import org.springframework.data.annotation.Id; +import java.beans.ConstructorProperties; import java.util.Objects; public class Customer { @@ -15,6 +16,9 @@ public class Customer { private User user; + public Customer() { + } + public Customer(String id, Long level, User user) { this.id = id; this.level = level; @@ -83,6 +87,9 @@ public static class User { private Long age; + public User() { + } + public User(String name, Long age) { this.name = name; this.age = age; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/NoDBAnnotationPerson.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/NoDBAnnotationPerson.java index ef76b39d97c2..bc5eab89003a 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/NoDBAnnotationPerson.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/NoDBAnnotationPerson.java @@ -14,6 +14,9 @@ public class NoDBAnnotationPerson { private List hobbies; private List
shippingAddresses; + public NoDBAnnotationPerson() { + } + public NoDBAnnotationPerson(String id, String firstName, String lastName, List hobbies, List
shippingAddresses) { this.id = id; this.firstName = firstName; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PageableAddress.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PageableAddress.java index 947b30baf43c..7b644336eead 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PageableAddress.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PageableAddress.java @@ -35,6 +35,9 @@ public int hashCode() { return Objects.hash(postalCode, street, city); } + public PageableAddress() { + } + public PageableAddress(String postalCode, String street, String city) { this.postalCode = postalCode; this.street = street; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PageableMemo.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PageableMemo.java index 5796f18e8af7..d1425e5c357c 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PageableMemo.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PageableMemo.java @@ -17,6 +17,9 @@ public class PageableMemo { private Date date; private Importance importance; + public PageableMemo() { + } + public PageableMemo(String id, String message, Date date, Importance importance) { this.id = id; this.message = message; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PartitionPerson.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PartitionPerson.java index fefe9b080a9d..0285512b1834 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PartitionPerson.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PartitionPerson.java @@ -22,6 +22,9 @@ public class PartitionPerson { private List
shippingAddresses; + public PartitionPerson() { + } + public PartitionPerson(String id, String firstName, String lastName, List hobbies, List
shippingAddresses) { this.id = id; this.firstName = firstName; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Person.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Person.java index 8038c1826df0..481617488a38 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Person.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Person.java @@ -3,16 +3,15 @@ package com.microsoft.azure.spring.data.cosmosdb.domain; -import java.util.List; -import java.util.Objects; - import com.microsoft.azure.spring.data.cosmosdb.common.TestConstants; import com.microsoft.azure.spring.data.cosmosdb.core.mapping.Document; import com.microsoft.azure.spring.data.cosmosdb.core.mapping.DocumentIndexingPolicy; import com.microsoft.azure.spring.data.cosmosdb.core.mapping.PartitionKey; - import org.springframework.data.annotation.Version; +import java.util.List; +import java.util.Objects; + @Document() @DocumentIndexingPolicy(includePaths = TestConstants.ORDER_BY_STRING_PATH) public class Person { diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Project.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Project.java index 436b040198fa..334cba0bad9d 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Project.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Project.java @@ -28,6 +28,9 @@ public class Project { private Long forkCount; + public Project() { + } + public Project(String id, String name, String creator, Boolean hasReleased, Long starCount, Long forkCount) { this.id = id; this.name = name; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Role.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Role.java index 6bc7ca4233d0..542885fe9254 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Role.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Role.java @@ -34,6 +34,9 @@ public class Role { String level; + public Role() { + } + public Role(String id, String name, String level) { this.id = id; this.name = name; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/SortedProject.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/SortedProject.java index 38437509175d..f8def0da26bd 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/SortedProject.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/SortedProject.java @@ -28,6 +28,9 @@ public class SortedProject { private Long forkCount; + public SortedProject() { + } + public SortedProject(String id, String name, String creator, Boolean hasReleased, Long starCount, Long forkCount) { this.id = id; this.name = name; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Student.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Student.java index 6e8057275916..c531cf58ca45 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Student.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Student.java @@ -14,6 +14,9 @@ public class Student { private String firstName; private String lastName; + public Student() { + } + public Student(String id, String firstName, String lastName) { this.id = id; this.firstName = firstName; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/TimeToLiveSample.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/TimeToLiveSample.java index 3a6093ec6b6f..9e1455317e6b 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/TimeToLiveSample.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/TimeToLiveSample.java @@ -9,6 +9,9 @@ public class TimeToLiveSample { private String id; + public TimeToLiveSample() { + } + public TimeToLiveSample(String id) { this.id = id; } diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/IntegerIdDomainRepositoryIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/IntegerIdDomainRepositoryIT.java index 67573dd759f6..185c982e039d 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/IntegerIdDomainRepositoryIT.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/IntegerIdDomainRepositoryIT.java @@ -9,12 +9,7 @@ import com.microsoft.azure.spring.data.cosmosdb.repository.TestRepositoryConfig; import com.microsoft.azure.spring.data.cosmosdb.repository.repository.IntegerIdDomainRepository; import com.microsoft.azure.spring.data.cosmosdb.repository.support.CosmosEntityInformation; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; +import org.junit.*; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; @@ -215,6 +210,9 @@ private static class InvalidDomain { private String location; + public InvalidDomain() { + } + InvalidDomain(int count, String location) { this.count = count; this.location = location; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/test-resources.json b/sdk/cosmos/azure-spring-data-cosmosdb/test-resources.json index aad5bad04c20..297ea8516813 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/test-resources.json +++ b/sdk/cosmos/azure-spring-data-cosmosdb/test-resources.json @@ -55,13 +55,17 @@ } ], "outputs": { - "cosmosdbPrimarykey": { + "DOCUMENTDB_KEY": { "type": "string", "value": "[listKeys(variables('resourceId'), variables('apiVersion')).primaryMasterKey]" }, - "cosmosdbSecondarykey": { + "COSMOSDB_SECONDARY_KEY": { "type": "string", "value": "[listKeys(variables('resourceId'), variables('apiVersion')).secondaryMasterKey]" + }, + "DOCUMENTDB_URI": { + "type": "string", + "value": "[reference(variables('resourceId'), variables('apiVersion')).documentEndpoint]" } } } From 114adfb7fcb7b7c629ccbf5cdbc56f6eb730a72a Mon Sep 17 00:00:00 2001 From: Yi Liu Date: Sun, 28 Jun 2020 12:45:05 +0800 Subject: [PATCH 04/17] modify javadoc and code owners --- .github/CODEOWNERS | 4 +- sdk/cosmos/azure-spring-data-cosmosdb/pom.xml | 43 ++++++------------- .../core/ReactiveCosmosOperations.java | 2 +- .../domain/Customer.java | 1 - .../IntegerIdDomainRepositoryIT.java | 2 +- sdk/cosmos/tests.yml | 39 +++++++++-------- sdk/parents/azure-client-sdk-parent/pom.xml | 1 + 7 files changed, 37 insertions(+), 55 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 670f9828cc16..e05646bfe713 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -17,7 +17,7 @@ /sdk/core/ @alzimmermsft @jianghaolu @srnagar @hemanttanwar @anuchandy /sdk/core/azure-core-tracing-opentelemetry/ @samvaity @alzimmermsft /sdk/cosmos/ @moderakh @kushagraThapar @David-Noble-at-work @kirankumarkolli @mbhaskar -/sdk/cosmos/azure-spring-data-cosmosdb/ @kushagraThapar +/sdk/cosmos/azure-spring-data-cosmosdb/ @kushagraThapar @saragluna @yiliuTo @chenrujun @zhoufenqin @jialindai /sdk/eventhubs/ @conniey @srnagar @mssfang /sdk/formrecognizer/ @samvaity @mssfang @sima-zhu /sdk/identity/ @schaabs @g2vinay @jianghaolu @@ -27,7 +27,7 @@ /sdk/servicebus/ @yvgopal @nemakam @hemanttanwar @conniey /sdk/storage/ @amishra-dev @rickle-msft @jaschrep-msft @gapra-msft @alzimmermsft @sima-zhu /sdk/textanalytics/ @samvaity @mssfang @sima-zhu -/sdk/spring/ @saragluna @yiliuTo @chenrujun @jialindai +/sdk/spring/ @saragluna @yiliuTo @chenrujun @zhoufenqin @jialindai # end to end tests /sdk/e2e/ @jianghaolu @g2vinay diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml b/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml index 28a449e197b6..28827399fa06 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml +++ b/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml @@ -13,7 +13,7 @@ com.microsoft.azure spring-data-cosmosdb 2.3.1-beta.1 - + jar Spring Data for Azure Cosmos DB SQL API Spring Data for Azure Cosmos DB SQL API https://github.com/Microsoft/spring-data-cosmosdb @@ -25,7 +25,7 @@ spring-data-cosmosdb-test testdb-${maven.build.timestamp} - false + true false false @@ -213,29 +213,6 @@ - - org.codehaus.mojo - cobertura-maven-plugin - 2.7 - - - html - xml - - - true - 65 - 65 - - - - com/microsoft/azure/**/GetHashMac.class - com/microsoft/azure/**/Constants.class - - - - - org.apache.maven.plugins maven-failsafe-plugin @@ -254,6 +231,7 @@ + org.apache.maven.plugins maven-javadoc-plugin @@ -261,15 +239,18 @@ private - - BasicCosmosPersistentProperty.java - + spring/data/cosmosdb/core/mapping/BasicCosmosPersistentProperty.java - ${basedir}/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/ + ${basedir}/src/main/java/com/microsoft/azure/ + + + org.projectlombok + lombok + 1.18.6 + + - - diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/ReactiveCosmosOperations.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/ReactiveCosmosOperations.java index 64bf11e91877..e2320fd6c679 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/ReactiveCosmosOperations.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/ReactiveCosmosOperations.java @@ -28,7 +28,7 @@ public interface ReactiveCosmosOperations { * Use createContainerIfNotExists() instead * @param information cosmos entity information * @return Mono of cosmos container response - * @deprecated use createContainerIfNotExists(CosmosEntityInformation) instead. + * @deprecated use {@link #createContainerIfNotExists(CosmosEntityInformation)} instead. */ @Deprecated Mono createCollectionIfNotExists(CosmosEntityInformation information); diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Customer.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Customer.java index 3f6bf6e81153..d31168f08550 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Customer.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Customer.java @@ -4,7 +4,6 @@ import org.springframework.data.annotation.Id; -import java.beans.ConstructorProperties; import java.util.Objects; public class Customer { diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/IntegerIdDomainRepositoryIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/IntegerIdDomainRepositoryIT.java index 185c982e039d..4b8cd3b8a472 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/IntegerIdDomainRepositoryIT.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/IntegerIdDomainRepositoryIT.java @@ -210,7 +210,7 @@ private static class InvalidDomain { private String location; - public InvalidDomain() { + InvalidDomain() { } InvalidDomain(int count, String location) { diff --git a/sdk/cosmos/tests.yml b/sdk/cosmos/tests.yml index b970ba8d587b..b6b574ebd75b 100644 --- a/sdk/cosmos/tests.yml +++ b/sdk/cosmos/tests.yml @@ -8,25 +8,7 @@ variables: jobs: - template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml parameters: - TestName: Integration_Test_Spring_Data_Cosmosdb - ServiceDirectory: cosmos - Artifacts: - - name: spring-data-cosmosdb - groupId: com.microsoft.azure - safeName: springdatacosmosdb - TimeoutInMinutes: 120 - EnvVars: - AZURE_TEST_MODE: LIVE - - TestStepMavenInputs: - goals: verify - options: '-Dmaven.wagon.http.pool=false $(DefaultOptions) -Dmaven.javadoc.skip=true -Drevapi.skip=true -Dskip.integration.tests=false -pl $(ProjectList)' - - TestResultsFiles: '**/junitreports/TEST-*.xml' - - - template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml - parameters: - TestName: Single_Region_Session + TestName: Cosmos_CI ServiceDirectory: cosmos Artifacts: - name: azure-cosmos @@ -263,3 +245,22 @@ jobs: options: '$(ProfileFlag) -Dgpg.skip $(AdditionalArgs) -pl $(ProjectList)' TestResultsFiles: '**/junitreports/TEST-*.xml' + + - template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml + parameters: + TestName: Integration_Test_Spring_Data_Cosmosdb + ServiceDirectory: cosmos/azure-spring-data-cosmosdb + Artifacts: + - name: spring-data-cosmosdb + groupId: com.microsoft.azure + safeName: springdatacosmosdb + TimeoutInMinutes: 120 + EnvVars: + AZURE_TEST_MODE: LIVE + PreRunSteps: + - template: /eng/pipelines/templates/steps/install-reporting-tools.yml + TestStepMavenInputs: + goals: verify + options: '-Dmaven.wagon.http.pool=false $(DefaultOptions) -Dmaven.javadoc.skip=true -Drevapi.skip=true -Dskip.integration.tests=false -pl $(ProjectList)' + + TestResultsFiles: '**/junitreports/TEST-*.xml' diff --git a/sdk/parents/azure-client-sdk-parent/pom.xml b/sdk/parents/azure-client-sdk-parent/pom.xml index 8276bdfb8eb7..a08fa459eedc 100644 --- a/sdk/parents/azure-client-sdk-parent/pom.xml +++ b/sdk/parents/azure-client-sdk-parent/pom.xml @@ -540,6 +540,7 @@ com/azure/cosmos/*BridgeInternal.java com/azure/cosmos/models/*BridgeInternal.java com/azure/cosmos/util/*BridgeInternal.java + com/microsoft/azure/spring/data/cosmosdb/core/mapping/BasicCosmosPersistentProperty.java module-info.java From 19e92422bc2f3c71fa13e462077c4f305d75f9b5 Mon Sep 17 00:00:00 2001 From: Yi Liu Date: Tue, 30 Jun 2020 12:55:21 +0800 Subject: [PATCH 05/17] add tests.yml in azure-spring-data-cosmosdb --- .gitignore | 1 + sdk/cosmos/azure-spring-data-cosmosdb/pom.xml | 5 ++-- .../azure-spring-data-cosmosdb/tests.yml | 26 +++++++++++++++++++ sdk/cosmos/tests.yml | 19 -------------- sdk/parents/azure-client-sdk-parent/pom.xml | 1 - 5 files changed, 30 insertions(+), 22 deletions(-) create mode 100644 sdk/cosmos/azure-spring-data-cosmosdb/tests.yml diff --git a/.gitignore b/.gitignore index b95a70475b31..8071d0f700c3 100644 --- a/.gitignore +++ b/.gitignore @@ -68,3 +68,4 @@ package-lock.json # VS Code .vscode/ .factorypath +jacoco.exec diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml b/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml index 28827399fa06..1a4a734e0783 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml +++ b/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml @@ -239,9 +239,9 @@ private - spring/data/cosmosdb/core/mapping/BasicCosmosPersistentProperty.java + core/mapping/BasicCosmosPersistentProperty.java - ${basedir}/src/main/java/com/microsoft/azure/ + ${basedir}/src/main/java/com/microsoft/azure/spring/data/cosmosdb/ org.projectlombok @@ -253,4 +253,5 @@ + diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/tests.yml b/sdk/cosmos/azure-spring-data-cosmosdb/tests.yml new file mode 100644 index 000000000000..137c97e2b0cc --- /dev/null +++ b/sdk/cosmos/azure-spring-data-cosmosdb/tests.yml @@ -0,0 +1,26 @@ +trigger: none + +variables: + - template: ../../../eng/pipelines/templates/variables/globals.yml + - name: AdditionalArgs + value: '' + +jobs: + - template: ../../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml + parameters: + TestName: Integration_Test_Spring_Data_Cosmosdb + ServiceDirectory: cosmos/azure-spring-data-cosmosdb + Artifacts: + - name: spring-data-cosmosdb + groupId: com.microsoft.azure + safeName: springdatacosmosdb + TimeoutInMinutes: 120 + EnvVars: + AZURE_TEST_MODE: LIVE + PreRunSteps: + - template: /eng/pipelines/templates/steps/install-reporting-tools.yml + TestStepMavenInputs: + goals: verify + options: '-Dmaven.wagon.http.pool=false $(DefaultOptions) -Dmaven.javadoc.skip=true -Drevapi.skip=true -Dskip.integration.tests=false -pl $(ProjectList)' + + TestResultsFiles: '**/junitreports/TEST-*.xml' diff --git a/sdk/cosmos/tests.yml b/sdk/cosmos/tests.yml index b6b574ebd75b..0d07a5722a04 100644 --- a/sdk/cosmos/tests.yml +++ b/sdk/cosmos/tests.yml @@ -245,22 +245,3 @@ jobs: options: '$(ProfileFlag) -Dgpg.skip $(AdditionalArgs) -pl $(ProjectList)' TestResultsFiles: '**/junitreports/TEST-*.xml' - - - template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml - parameters: - TestName: Integration_Test_Spring_Data_Cosmosdb - ServiceDirectory: cosmos/azure-spring-data-cosmosdb - Artifacts: - - name: spring-data-cosmosdb - groupId: com.microsoft.azure - safeName: springdatacosmosdb - TimeoutInMinutes: 120 - EnvVars: - AZURE_TEST_MODE: LIVE - PreRunSteps: - - template: /eng/pipelines/templates/steps/install-reporting-tools.yml - TestStepMavenInputs: - goals: verify - options: '-Dmaven.wagon.http.pool=false $(DefaultOptions) -Dmaven.javadoc.skip=true -Drevapi.skip=true -Dskip.integration.tests=false -pl $(ProjectList)' - - TestResultsFiles: '**/junitreports/TEST-*.xml' diff --git a/sdk/parents/azure-client-sdk-parent/pom.xml b/sdk/parents/azure-client-sdk-parent/pom.xml index a08fa459eedc..8276bdfb8eb7 100644 --- a/sdk/parents/azure-client-sdk-parent/pom.xml +++ b/sdk/parents/azure-client-sdk-parent/pom.xml @@ -540,7 +540,6 @@ com/azure/cosmos/*BridgeInternal.java com/azure/cosmos/models/*BridgeInternal.java com/azure/cosmos/util/*BridgeInternal.java - com/microsoft/azure/spring/data/cosmosdb/core/mapping/BasicCosmosPersistentProperty.java module-info.java From fd2f97c4bfefd9fa2c3845a13d025208edd02567 Mon Sep 17 00:00:00 2001 From: Yi Liu Date: Tue, 30 Jun 2020 17:20:35 +0800 Subject: [PATCH 06/17] modify readme.md for outdated link --- sdk/cosmos/azure-spring-data-cosmosdb/README.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/README.md b/sdk/cosmos/azure-spring-data-cosmosdb/README.md index c181d5b5ff53..9233c7f84e2b 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/README.md +++ b/sdk/cosmos/azure-spring-data-cosmosdb/README.md @@ -1,14 +1,9 @@ -[![Travis CI](https://travis-ci.org/Microsoft/spring-data-cosmosdb.svg?branch=master)](https://travis-ci.org/Microsoft/spring-data-cosmosdb) -[![codecov](https://codecov.io/gh/Microsoft/spring-data-cosmosdb/branch/master/graph/badge.svg)](https://codecov.io/gh/Microsoft/spring-data-cosmosdb) -[![MIT License](http://img.shields.io/badge/license-MIT-green.svg) ](https://github.com/Microsoft/spring-data-cosmosdb/blob/master/LICENSE) - - #Azure Cosmos DB client library for Java ## Getting started -[Azure Cosmos DB](https://docs.microsoft.com/en-us/azure/cosmos-db/introduction) is a globally-distributed database service that allows developers to work with data using a variety of standard APIs, such as SQL, MongoDB, Cassandra, Graph, and Table. +[Azure Cosmos DB](https://docs.microsoft.com/azure/cosmos-db/introduction) is a globally-distributed database service that allows developers to work with data using a variety of standard APIs, such as SQL, MongoDB, Cassandra, Graph, and Table. -**Spring Data Azure Cosmos DB** provides initial Spring Data support for Azure Cosmos DB using the [SQL API](https://docs.microsoft.com/en-us/azure/cosmos-db/sql-api-introduction), based on Spring Data framework. Currently it only supports SQL API, the other APIs are in the plan. +**Spring Data Azure Cosmos DB** provides initial Spring Data support for Azure Cosmos DB using the [SQL API](https://docs.microsoft.com/azure/cosmos-db/sql-api-introduction), based on Spring Data framework. Currently it only supports SQL API, the other APIs are in the plan. ## TOC @@ -64,13 +59,14 @@ Version mapping between spring boot and spring-data-cosmosdb: ```java @Document(collection = "myCollection") class MyDocument { + @Autowired String id; String data; @Version String _etag; } ``` -- Supports [Azure Cosmos DB partition](https://docs.microsoft.com/en-us/azure/cosmos-db/partition-data). To specify a field of domain class to be partition key field, just annotate it with `@PartitionKey`. When you do CRUD operation, pls specify your partition value. For more sample on partition CRUD, pls refer to [test here](./src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/AddressRepositoryIT.java) +- Supports [Azure Cosmos DB partition](https://docs.microsoft.com/azure/cosmos-db/partition-data). To specify a field of domain class to be partition key field, just annotate it with `@PartitionKey`. When you do CRUD operation, pls specify your partition value. For more sample on partition CRUD, pls refer to [test here](./src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/AddressRepositoryIT.java) - Supports [Spring Data custom query](https://docs.spring.io/spring-data/commons/docs/current/reference/html/#repositories.query-methods.details) find operation, e.g., `findByAFieldAndBField` - Supports [Spring Data pagable and sort](https://docs.spring.io/spring-data/commons/docs/current/reference/html/#repositories.special-parameters). - Based on available RUs on the database account, cosmosDB can return documents less than or equal to the requested size. @@ -208,6 +204,7 @@ public class User { private String id; private String firstName; + @PartitionKey private String lastName; @@ -335,7 +332,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope ### Data/Telemetry - This project collects usage data and sends it to Microsoft to help improve our products and services. Read our [privacy](https://privacy.microsoft.com/en-us/privacystatement) statement to learn more. + This project collects usage data and sends it to Microsoft to help improve our products and services. Read our [privacy](https://privacy.microsoft.com/privacystatement) statement to learn more. ## Key concepts From 2190b09931d6d8026f7b5150732c884e480dac6e Mon Sep 17 00:00:00 2001 From: Yi Liu Date: Wed, 1 Jul 2020 12:52:01 +0800 Subject: [PATCH 07/17] place integration test files in sdk/cosmos and rename directory path --- sdk/cosmos/azure-spring-data-cosmosdb/pom.xml | 5 +- .../spring/data/cosmosdb}/Constants.java | 0 .../data/cosmosdb}/CosmosDbFactory.java | 0 .../data/cosmosdb}/common/CosmosdbUtils.java | 0 .../cosmosdb}/common/ExpressionResolver.java | 0 .../data/cosmosdb}/common/MacAddress.java | 0 .../data/cosmosdb}/common/Memoizer.java | 0 .../data/cosmosdb}/common/PropertyLoader.java | 0 .../cosmosdb}/common/TelemetryEventData.java | 0 .../cosmosdb}/common/TelemetrySender.java | 0 .../data/cosmosdb}/common/package-info.java | 0 .../config/AbstractCosmosConfiguration.java | 0 .../config/CosmosConfigurationSupport.java | 0 .../data/cosmosdb}/config/CosmosDBConfig.java | 0 .../data/cosmosdb}/config/package-info.java | 0 .../data/cosmosdb}/core/CosmosOperations.java | 0 .../data/cosmosdb}/core/CosmosTemplate.java | 0 .../core/ReactiveCosmosOperations.java | 0 .../core/ReactiveCosmosTemplate.java | 0 .../cosmosdb}/core/ResponseDiagnostics.java | 0 .../core/ResponseDiagnosticsProcessor.java | 0 .../core/convert/MappingCosmosConverter.java | 0 .../core/convert/ObjectMapperFactory.java | 0 .../cosmosdb}/core/convert/package-info.java | 0 .../generator/AbstractQueryGenerator.java | 0 .../core/generator/CountQueryGenerator.java | 0 .../generator/FindQuerySpecGenerator.java | 0 .../core/generator/QuerySpecGenerator.java | 0 .../core/generator/package-info.java | 0 .../mapping/BasicCosmosPersistentEntity.java | 0 .../BasicCosmosPersistentProperty.java | 0 .../core/mapping/CosmosMappingContext.java | 0 .../core/mapping/CosmosPersistentEntity.java | 0 .../mapping/CosmosPersistentProperty.java | 0 .../data/cosmosdb}/core/mapping/Document.java | 0 .../core/mapping/DocumentIndexingPolicy.java | 0 .../cosmosdb}/core/mapping/PartitionKey.java | 0 .../cosmosdb}/core/mapping/package-info.java | 0 .../data/cosmosdb}/core/package-info.java | 0 .../cosmosdb}/core/query/CosmosPageImpl.java | 0 .../core/query/CosmosPageRequest.java | 0 .../data/cosmosdb}/core/query/Criteria.java | 0 .../cosmosdb}/core/query/CriteriaType.java | 0 .../cosmosdb}/core/query/DocumentQuery.java | 0 .../cosmosdb}/core/query/package-info.java | 0 .../exception/ConfigurationException.java | 0 .../exception/CosmosDBAccessException.java | 0 .../exception/CosmosDBExceptionUtils.java | 0 .../exception/DatabaseCreationException.java | 0 .../exception/IllegalCollectionException.java | 0 .../exception/IllegalQueryException.java | 0 .../cosmosdb}/exception/package-info.java | 0 .../spring/data/cosmosdb}/package-info.java | 0 .../repository/CosmosRepository.java | 0 .../repository/ReactiveCosmosRepository.java | 0 .../config/CosmosRepositoriesRegistrar.java | 0 ...osmosRepositoryConfigurationExtension.java | 0 .../config/EnableCosmosRepositories.java | 0 .../EnableReactiveCosmosRepositories.java | 0 .../ReactiveCosmosRepositoriesRegistrar.java | 0 ...osmosRepositoryConfigurationExtension.java | 0 .../repository/config/package-info.java | 0 .../cosmosdb}/repository/package-info.java | 0 .../repository/query/AbstractCosmosQuery.java | 0 .../query/AbstractReactiveCosmosQuery.java | 0 .../query/CosmosEntityMetadata.java | 0 .../repository/query/CosmosParameter.java | 0 .../query/CosmosParameterAccessor.java | 0 .../CosmosParameterParameterAccessor.java | 0 .../repository/query/CosmosParameters.java | 0 .../repository/query/CosmosQueryCreator.java | 0 .../query/CosmosQueryExecution.java | 0 .../repository/query/CosmosQueryMethod.java | 0 .../repository/query/PartTreeCosmosQuery.java | 0 .../query/PartTreeReactiveCosmosQuery.java | 0 .../query/ReactiveCosmosEntityMetadata.java | 0 .../ReactiveCosmosParameterAccessor.java | 0 ...ctiveCosmosParameterParameterAccessor.java | 0 .../query/ReactiveCosmosQueryCreator.java | 0 .../query/ReactiveCosmosQueryExecution.java | 0 .../query/ReactiveCosmosQueryMethod.java | 0 .../query/SimpleCosmosEntityMetadata.java | 0 .../SimpleReactiveCosmosEntityMetadata.java | 0 .../repository/query/package-info.java | 0 .../support/CosmosEntityInformation.java | 0 .../support/CosmosRepositoryFactory.java | 0 .../support/CosmosRepositoryFactoryBean.java | 0 .../ReactiveCosmosRepositoryFactory.java | 0 .../ReactiveCosmosRepositoryFactoryBean.java | 0 .../support/SimpleCosmosRepository.java | 0 .../SimpleReactiveCosmosRepository.java | 0 .../repository/support/package-info.java | 0 .../data/cosmosdb}/CosmosDbFactoryTestIT.java | 0 .../data/cosmosdb}/UserAgentTestIT.java | 0 .../cosmosdb}/common/DynamicContainer.java | 0 .../common/ExpressionResolverUnitTest.java | 1 - .../cosmosdb}/common/MemoizerUnitTest.java | 4 +- .../data/cosmosdb}/common/PageTestUtils.java | 0 .../common/PropertyLoaderUnitTest.java | 0 .../common/ResponseDiagnosticsTestUtils.java | 0 .../data/cosmosdb}/common/TestConstants.java | 0 .../data/cosmosdb}/common/TestUtils.java | 0 .../config/AbstractCosmosConfigurationIT.java | 1 - .../data/cosmosdb}/core/CosmosTemplateIT.java | 15 +--- .../core/CosmosTemplateIllegalTest.java | 4 +- .../core/CosmosTemplatePartitionIT.java | 0 .../core/CosmosTemplateUnitTest.java | 0 .../core/ReactiveCosmosTemplateIT.java | 6 +- .../ReactiveCosmosTemplatePartitionIT.java | 17 +---- .../ZonedDateTimeDeserializerTest.java | 0 .../MappingCosmosConverterUnitTest.java | 2 +- .../BasicCosmosPersistentEntityUnitTest.java | 0 .../mapping/CosmosMappingContextUnitTest.java | 0 .../core/query/CriteriaUnitTest.java | 0 .../core/query/DocumentQueryUnitTest.java | 0 .../spring/data/cosmosdb}/domain/Address.java | 0 .../spring/data/cosmosdb}/domain/Contact.java | 0 .../spring/data/cosmosdb}/domain/Course.java | 0 .../data/cosmosdb}/domain/Customer.java | 0 .../data/cosmosdb}/domain/Importance.java | 0 .../cosmosdb}/domain/IntegerIdDomain.java | 0 .../spring/data/cosmosdb}/domain/Memo.java | 0 .../domain/NoDBAnnotationPerson.java | 0 .../cosmosdb}/domain/PageableAddress.java | 0 .../data/cosmosdb}/domain/PageableMemo.java | 0 .../data/cosmosdb}/domain/PageablePerson.java | 0 .../cosmosdb}/domain/PartitionPerson.java | 0 .../spring/data/cosmosdb}/domain/Person.java | 0 .../spring/data/cosmosdb}/domain/Project.java | 0 .../data/cosmosdb}/domain/Question.java | 0 .../spring/data/cosmosdb}/domain/Role.java | 0 .../data/cosmosdb}/domain/SortedProject.java | 0 .../cosmosdb}/domain/SpELBeanStudent.java | 0 .../cosmosdb}/domain/SpELPropertyStudent.java | 0 .../spring/data/cosmosdb}/domain/Student.java | 0 .../cosmosdb}/domain/TimeToLiveSample.java | 0 .../cosmosdb}/domain/inheritance/Shape.java | 0 .../cosmosdb}/domain/inheritance/Square.java | 0 .../performance/PerfConfiguration.java | 0 .../performance/PerformanceCompare.java | 0 .../performance/PerformanceReport.java | 0 .../performance/domain/PerfPerson.java | 0 .../repository/PerfPersonRepository.java | 0 .../performance/service/SdkService.java | 8 +-- .../performance/utils/Constants.java | 0 .../performance/utils/DatabaseUtils.java | 6 +- .../performance/utils/FunctionUtils.java | 0 .../performance/utils/PerfDataProvider.java | 0 .../repository/CosmosAnnotationUnitTest.java | 0 .../SimpleCosmosRepositoryIllegalTest.java | 0 .../SimpleCosmosRepositoryUnitTest.java | 2 +- .../repository/TestRepositoryConfig.java | 0 ...ositoryConfigurationExtensionUnitTest.java | 0 ...ositoryConfigurationExtensionUnitTest.java | 0 .../integration/AddressRepositoryIT.java | 7 +- .../integration/ContactRepositoryIT.java | 7 +- .../integration/CosmosAnnotationIT.java | 0 .../integration/CustomerRepositoryIT.java | 6 +- .../IntegerIdDomainRepositoryIT.java | 0 .../integration/MemoRepositoryIT.java | 8 +-- .../PageableAddressRepositoryIT.java | 0 .../integration/PageableMemoRepositoryIT.java | 8 +-- .../PageablePersonRepositoryIT.java | 6 +- .../integration/PersonRepositoryIT.java | 0 .../integration/ProjectRepositoryIT.java | 12 +--- .../integration/ProjectRepositorySortIT.java | 6 +- .../integration/QuestionRepositoryIT.java | 6 +- .../ReactiveCourseRepositoryIT.java | 0 .../integration/SpELCosmosDBAnnotationIT.java | 0 .../integration/SquareRepositoryIT.java | 0 .../integration/StudentRepositoryIT.java | 6 +- .../repository/AddressRepository.java | 0 .../repository/ContactRepository.java | 0 .../repository/CustomerRepository.java | 0 .../repository/IntegerIdDomainRepository.java | 0 .../repository/repository/MemoRepository.java | 2 +- .../repository/PageableAddressRepository.java | 0 .../repository/PageableMemoRepository.java | 0 .../repository/PageablePersonRepository.java | 0 .../repository/PartitionPersonRepository.java | 0 .../repository/PersonRepository.java | 0 .../repository/ProjectRepository.java | 0 .../repository/QuestionRepository.java | 0 .../repository/ReactiveCourseRepository.java | 0 .../repository/SortedProjectRepository.java | 0 .../repository/SquareRepository.java | 0 .../repository/StudentRepository.java | 0 .../CosmosEntityInformationUnitTest.java | 7 +- .../CosmosRepositoryFactoryBeanUnitTest.java | 0 .../CosmosRepositoryFactoryUnitTest.java | 0 .../test-resources.json | 71 ------------------- .../azure-spring-data-cosmosdb/tests.yml | 26 ------- sdk/cosmos/test-resources.json | 29 +++++++- sdk/cosmos/tests.yml | 17 +++++ 194 files changed, 74 insertions(+), 221 deletions(-) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/Constants.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/CosmosDbFactory.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/common/CosmosdbUtils.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/common/ExpressionResolver.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/common/MacAddress.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/common/Memoizer.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/common/PropertyLoader.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/common/TelemetryEventData.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/common/TelemetrySender.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/common/package-info.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/config/AbstractCosmosConfiguration.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/config/CosmosConfigurationSupport.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/config/CosmosDBConfig.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/config/package-info.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/CosmosOperations.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/CosmosTemplate.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/ReactiveCosmosOperations.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/ReactiveCosmosTemplate.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/ResponseDiagnostics.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/ResponseDiagnosticsProcessor.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/convert/MappingCosmosConverter.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/convert/ObjectMapperFactory.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/convert/package-info.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/generator/AbstractQueryGenerator.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/generator/CountQueryGenerator.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/generator/FindQuerySpecGenerator.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/generator/QuerySpecGenerator.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/generator/package-info.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/mapping/BasicCosmosPersistentEntity.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/mapping/BasicCosmosPersistentProperty.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/mapping/CosmosMappingContext.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/mapping/CosmosPersistentEntity.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/mapping/CosmosPersistentProperty.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/mapping/Document.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/mapping/DocumentIndexingPolicy.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/mapping/PartitionKey.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/mapping/package-info.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/package-info.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/query/CosmosPageImpl.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/query/CosmosPageRequest.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/query/Criteria.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/query/CriteriaType.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/query/DocumentQuery.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/query/package-info.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/exception/ConfigurationException.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/exception/CosmosDBAccessException.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/exception/CosmosDBExceptionUtils.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/exception/DatabaseCreationException.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/exception/IllegalCollectionException.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/exception/IllegalQueryException.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/exception/package-info.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/package-info.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/CosmosRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/ReactiveCosmosRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/config/CosmosRepositoriesRegistrar.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/config/CosmosRepositoryConfigurationExtension.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/config/EnableCosmosRepositories.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/config/EnableReactiveCosmosRepositories.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/config/ReactiveCosmosRepositoriesRegistrar.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/config/ReactiveCosmosRepositoryConfigurationExtension.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/config/package-info.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/package-info.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/AbstractCosmosQuery.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/AbstractReactiveCosmosQuery.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/CosmosEntityMetadata.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/CosmosParameter.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/CosmosParameterAccessor.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/CosmosParameterParameterAccessor.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/CosmosParameters.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/CosmosQueryCreator.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/CosmosQueryExecution.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/CosmosQueryMethod.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/PartTreeCosmosQuery.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/PartTreeReactiveCosmosQuery.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/ReactiveCosmosEntityMetadata.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/ReactiveCosmosParameterAccessor.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/ReactiveCosmosParameterParameterAccessor.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/ReactiveCosmosQueryCreator.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/ReactiveCosmosQueryExecution.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/ReactiveCosmosQueryMethod.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/SimpleCosmosEntityMetadata.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/SimpleReactiveCosmosEntityMetadata.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/query/package-info.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/support/CosmosEntityInformation.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/support/CosmosRepositoryFactory.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/support/CosmosRepositoryFactoryBean.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/support/ReactiveCosmosRepositoryFactory.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/support/ReactiveCosmosRepositoryFactoryBean.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/support/SimpleCosmosRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/support/SimpleReactiveCosmosRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/support/package-info.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/CosmosDbFactoryTestIT.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/UserAgentTestIT.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/common/DynamicContainer.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/common/ExpressionResolverUnitTest.java (99%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/common/MemoizerUnitTest.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/common/PageTestUtils.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/common/PropertyLoaderUnitTest.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/common/ResponseDiagnosticsTestUtils.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/common/TestConstants.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/common/TestUtils.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/config/AbstractCosmosConfigurationIT.java (99%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/CosmosTemplateIT.java (94%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/CosmosTemplateIllegalTest.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/CosmosTemplatePartitionIT.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/CosmosTemplateUnitTest.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/ReactiveCosmosTemplateIT.java (99%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/ReactiveCosmosTemplatePartitionIT.java (90%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/convert/ZonedDateTimeDeserializerTest.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/converter/MappingCosmosConverterUnitTest.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/mapping/BasicCosmosPersistentEntityUnitTest.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/mapping/CosmosMappingContextUnitTest.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/query/CriteriaUnitTest.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/core/query/DocumentQueryUnitTest.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/Address.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/Contact.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/Course.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/Customer.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/Importance.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/IntegerIdDomain.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/Memo.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/NoDBAnnotationPerson.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/PageableAddress.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/PageableMemo.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/PageablePerson.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/PartitionPerson.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/Person.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/Project.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/Question.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/Role.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/SortedProject.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/SpELBeanStudent.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/SpELPropertyStudent.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/Student.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/TimeToLiveSample.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/inheritance/Shape.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/domain/inheritance/Square.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/performance/PerfConfiguration.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/performance/PerformanceCompare.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/performance/PerformanceReport.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/performance/domain/PerfPerson.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/performance/repository/PerfPersonRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/performance/service/SdkService.java (96%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/performance/utils/Constants.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/performance/utils/DatabaseUtils.java (90%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/performance/utils/FunctionUtils.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/performance/utils/PerfDataProvider.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/CosmosAnnotationUnitTest.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/SimpleCosmosRepositoryIllegalTest.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/SimpleCosmosRepositoryUnitTest.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/TestRepositoryConfig.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/config/CosmosRepositoryConfigurationExtensionUnitTest.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/config/ReactiveCosmosRepositoryConfigurationExtensionUnitTest.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/integration/AddressRepositoryIT.java (98%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/integration/ContactRepositoryIT.java (97%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/integration/CosmosAnnotationIT.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/integration/CustomerRepositoryIT.java (96%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/integration/IntegerIdDomainRepositoryIT.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/integration/MemoRepositoryIT.java (98%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/integration/PageableAddressRepositoryIT.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/integration/PageableMemoRepositoryIT.java (97%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/integration/PageablePersonRepositoryIT.java (97%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/integration/PersonRepositoryIT.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/integration/ProjectRepositoryIT.java (98%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/integration/ProjectRepositorySortIT.java (98%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/integration/QuestionRepositoryIT.java (96%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/integration/ReactiveCourseRepositoryIT.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/integration/SpELCosmosDBAnnotationIT.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/integration/SquareRepositoryIT.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/integration/StudentRepositoryIT.java (97%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/repository/AddressRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/repository/ContactRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/repository/CustomerRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/repository/IntegerIdDomainRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/repository/MemoRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/repository/PageableAddressRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/repository/PageableMemoRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/repository/PageablePersonRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/repository/PartitionPersonRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/repository/PersonRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/repository/ProjectRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/repository/QuestionRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/repository/ReactiveCourseRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/repository/SortedProjectRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/repository/SquareRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/repository/StudentRepository.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/support/CosmosEntityInformationUnitTest.java (99%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/support/CosmosRepositoryFactoryBeanUnitTest.java (100%) rename sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/{com.microsoft.azure.spring.data.cosmosdb => com/microsoft/azure/spring/data/cosmosdb}/repository/support/CosmosRepositoryFactoryUnitTest.java (100%) delete mode 100644 sdk/cosmos/azure-spring-data-cosmosdb/test-resources.json delete mode 100644 sdk/cosmos/azure-spring-data-cosmosdb/tests.yml diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml b/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml index 1a4a734e0783..eb405faaf7ee 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml +++ b/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml @@ -25,7 +25,7 @@ spring-data-cosmosdb-test testdb-${maven.build.timestamp} - true + false false false @@ -239,9 +239,8 @@ private - core/mapping/BasicCosmosPersistentProperty.java + com/microsoft/azure/spring/data/cosmosdb/core/mapping/BasicCosmosPersistentProperty.java - ${basedir}/src/main/java/com/microsoft/azure/spring/data/cosmosdb/ org.projectlombok diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/Constants.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/Constants.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/Constants.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/Constants.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/CosmosDbFactory.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/CosmosDbFactory.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/CosmosDbFactory.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/CosmosDbFactory.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/common/CosmosdbUtils.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/common/CosmosdbUtils.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/common/CosmosdbUtils.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/common/CosmosdbUtils.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/common/ExpressionResolver.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/common/ExpressionResolver.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/common/ExpressionResolver.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/common/ExpressionResolver.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/common/MacAddress.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/common/MacAddress.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/common/MacAddress.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/common/MacAddress.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/common/Memoizer.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/common/Memoizer.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/common/Memoizer.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/common/Memoizer.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/common/PropertyLoader.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/common/PropertyLoader.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/common/PropertyLoader.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/common/PropertyLoader.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/common/TelemetryEventData.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/common/TelemetryEventData.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/common/TelemetryEventData.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/common/TelemetryEventData.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/common/TelemetrySender.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/common/TelemetrySender.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/common/TelemetrySender.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/common/TelemetrySender.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/common/package-info.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/common/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/common/package-info.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/common/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/config/AbstractCosmosConfiguration.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/config/AbstractCosmosConfiguration.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/config/AbstractCosmosConfiguration.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/config/AbstractCosmosConfiguration.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/config/CosmosConfigurationSupport.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/config/CosmosConfigurationSupport.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/config/CosmosConfigurationSupport.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/config/CosmosConfigurationSupport.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/config/CosmosDBConfig.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/config/CosmosDBConfig.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/config/CosmosDBConfig.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/config/CosmosDBConfig.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/config/package-info.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/config/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/config/package-info.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/config/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/CosmosOperations.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/CosmosOperations.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/CosmosOperations.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/CosmosOperations.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/CosmosTemplate.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/CosmosTemplate.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/CosmosTemplate.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/CosmosTemplate.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/ReactiveCosmosOperations.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/ReactiveCosmosOperations.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/ReactiveCosmosOperations.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/ReactiveCosmosOperations.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/ReactiveCosmosTemplate.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/ReactiveCosmosTemplate.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/ReactiveCosmosTemplate.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/ReactiveCosmosTemplate.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/ResponseDiagnostics.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/ResponseDiagnostics.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/ResponseDiagnostics.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/ResponseDiagnostics.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/ResponseDiagnosticsProcessor.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/ResponseDiagnosticsProcessor.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/ResponseDiagnosticsProcessor.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/ResponseDiagnosticsProcessor.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/convert/MappingCosmosConverter.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/convert/MappingCosmosConverter.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/convert/MappingCosmosConverter.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/convert/MappingCosmosConverter.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/convert/ObjectMapperFactory.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/convert/ObjectMapperFactory.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/convert/ObjectMapperFactory.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/convert/ObjectMapperFactory.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/convert/package-info.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/convert/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/convert/package-info.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/convert/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/generator/AbstractQueryGenerator.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/generator/AbstractQueryGenerator.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/generator/AbstractQueryGenerator.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/generator/AbstractQueryGenerator.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/generator/CountQueryGenerator.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/generator/CountQueryGenerator.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/generator/CountQueryGenerator.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/generator/CountQueryGenerator.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/generator/FindQuerySpecGenerator.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/generator/FindQuerySpecGenerator.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/generator/FindQuerySpecGenerator.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/generator/FindQuerySpecGenerator.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/generator/QuerySpecGenerator.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/generator/QuerySpecGenerator.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/generator/QuerySpecGenerator.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/generator/QuerySpecGenerator.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/generator/package-info.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/generator/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/generator/package-info.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/generator/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/BasicCosmosPersistentEntity.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/BasicCosmosPersistentEntity.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/BasicCosmosPersistentEntity.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/BasicCosmosPersistentEntity.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/BasicCosmosPersistentProperty.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/BasicCosmosPersistentProperty.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/BasicCosmosPersistentProperty.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/BasicCosmosPersistentProperty.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/CosmosMappingContext.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/CosmosMappingContext.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/CosmosMappingContext.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/CosmosMappingContext.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/CosmosPersistentEntity.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/CosmosPersistentEntity.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/CosmosPersistentEntity.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/CosmosPersistentEntity.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/CosmosPersistentProperty.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/CosmosPersistentProperty.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/CosmosPersistentProperty.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/CosmosPersistentProperty.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/Document.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/Document.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/Document.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/Document.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/DocumentIndexingPolicy.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/DocumentIndexingPolicy.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/DocumentIndexingPolicy.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/DocumentIndexingPolicy.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/PartitionKey.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/PartitionKey.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/PartitionKey.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/PartitionKey.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/package-info.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/package-info.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/package-info.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/package-info.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/query/CosmosPageImpl.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/CosmosPageImpl.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/query/CosmosPageImpl.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/CosmosPageImpl.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/query/CosmosPageRequest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/CosmosPageRequest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/query/CosmosPageRequest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/CosmosPageRequest.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/query/Criteria.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/Criteria.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/query/Criteria.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/Criteria.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/query/CriteriaType.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/CriteriaType.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/query/CriteriaType.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/CriteriaType.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/query/DocumentQuery.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/DocumentQuery.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/query/DocumentQuery.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/DocumentQuery.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/query/package-info.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/core/query/package-info.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/exception/ConfigurationException.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/exception/ConfigurationException.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/exception/ConfigurationException.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/exception/ConfigurationException.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/exception/CosmosDBAccessException.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/exception/CosmosDBAccessException.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/exception/CosmosDBAccessException.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/exception/CosmosDBAccessException.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/exception/CosmosDBExceptionUtils.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/exception/CosmosDBExceptionUtils.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/exception/CosmosDBExceptionUtils.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/exception/CosmosDBExceptionUtils.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/exception/DatabaseCreationException.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/exception/DatabaseCreationException.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/exception/DatabaseCreationException.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/exception/DatabaseCreationException.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/exception/IllegalCollectionException.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/exception/IllegalCollectionException.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/exception/IllegalCollectionException.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/exception/IllegalCollectionException.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/exception/IllegalQueryException.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/exception/IllegalQueryException.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/exception/IllegalQueryException.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/exception/IllegalQueryException.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/exception/package-info.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/exception/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/exception/package-info.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/exception/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/package-info.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/package-info.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/CosmosRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/CosmosRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/CosmosRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/CosmosRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/ReactiveCosmosRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/ReactiveCosmosRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/ReactiveCosmosRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/ReactiveCosmosRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/CosmosRepositoriesRegistrar.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/CosmosRepositoriesRegistrar.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/CosmosRepositoriesRegistrar.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/CosmosRepositoriesRegistrar.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/CosmosRepositoryConfigurationExtension.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/CosmosRepositoryConfigurationExtension.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/CosmosRepositoryConfigurationExtension.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/CosmosRepositoryConfigurationExtension.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/EnableCosmosRepositories.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/EnableCosmosRepositories.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/EnableCosmosRepositories.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/EnableCosmosRepositories.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/EnableReactiveCosmosRepositories.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/EnableReactiveCosmosRepositories.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/EnableReactiveCosmosRepositories.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/EnableReactiveCosmosRepositories.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/ReactiveCosmosRepositoriesRegistrar.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/ReactiveCosmosRepositoriesRegistrar.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/ReactiveCosmosRepositoriesRegistrar.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/ReactiveCosmosRepositoriesRegistrar.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/ReactiveCosmosRepositoryConfigurationExtension.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/ReactiveCosmosRepositoryConfigurationExtension.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/ReactiveCosmosRepositoryConfigurationExtension.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/ReactiveCosmosRepositoryConfigurationExtension.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/package-info.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/package-info.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/package-info.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/package-info.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/AbstractCosmosQuery.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/AbstractCosmosQuery.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/AbstractCosmosQuery.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/AbstractCosmosQuery.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/AbstractReactiveCosmosQuery.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/AbstractReactiveCosmosQuery.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/AbstractReactiveCosmosQuery.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/AbstractReactiveCosmosQuery.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/CosmosEntityMetadata.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/CosmosEntityMetadata.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/CosmosEntityMetadata.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/CosmosEntityMetadata.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/CosmosParameter.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/CosmosParameter.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/CosmosParameter.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/CosmosParameter.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/CosmosParameterAccessor.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/CosmosParameterAccessor.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/CosmosParameterAccessor.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/CosmosParameterAccessor.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/CosmosParameterParameterAccessor.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/CosmosParameterParameterAccessor.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/CosmosParameterParameterAccessor.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/CosmosParameterParameterAccessor.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/CosmosParameters.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/CosmosParameters.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/CosmosParameters.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/CosmosParameters.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/CosmosQueryCreator.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/CosmosQueryCreator.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/CosmosQueryCreator.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/CosmosQueryCreator.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/CosmosQueryExecution.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/CosmosQueryExecution.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/CosmosQueryExecution.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/CosmosQueryExecution.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/CosmosQueryMethod.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/CosmosQueryMethod.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/CosmosQueryMethod.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/CosmosQueryMethod.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/PartTreeCosmosQuery.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/PartTreeCosmosQuery.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/PartTreeCosmosQuery.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/PartTreeCosmosQuery.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/PartTreeReactiveCosmosQuery.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/PartTreeReactiveCosmosQuery.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/PartTreeReactiveCosmosQuery.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/PartTreeReactiveCosmosQuery.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/ReactiveCosmosEntityMetadata.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/ReactiveCosmosEntityMetadata.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/ReactiveCosmosEntityMetadata.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/ReactiveCosmosEntityMetadata.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/ReactiveCosmosParameterAccessor.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/ReactiveCosmosParameterAccessor.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/ReactiveCosmosParameterAccessor.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/ReactiveCosmosParameterAccessor.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/ReactiveCosmosParameterParameterAccessor.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/ReactiveCosmosParameterParameterAccessor.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/ReactiveCosmosParameterParameterAccessor.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/ReactiveCosmosParameterParameterAccessor.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/ReactiveCosmosQueryCreator.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/ReactiveCosmosQueryCreator.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/ReactiveCosmosQueryCreator.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/ReactiveCosmosQueryCreator.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/ReactiveCosmosQueryExecution.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/ReactiveCosmosQueryExecution.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/ReactiveCosmosQueryExecution.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/ReactiveCosmosQueryExecution.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/ReactiveCosmosQueryMethod.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/ReactiveCosmosQueryMethod.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/ReactiveCosmosQueryMethod.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/ReactiveCosmosQueryMethod.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/SimpleCosmosEntityMetadata.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/SimpleCosmosEntityMetadata.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/SimpleCosmosEntityMetadata.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/SimpleCosmosEntityMetadata.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/SimpleReactiveCosmosEntityMetadata.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/SimpleReactiveCosmosEntityMetadata.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/SimpleReactiveCosmosEntityMetadata.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/SimpleReactiveCosmosEntityMetadata.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/package-info.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/query/package-info.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/query/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/CosmosEntityInformation.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/CosmosEntityInformation.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/CosmosEntityInformation.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/CosmosEntityInformation.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/CosmosRepositoryFactory.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/CosmosRepositoryFactory.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/CosmosRepositoryFactory.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/CosmosRepositoryFactory.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/CosmosRepositoryFactoryBean.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/CosmosRepositoryFactoryBean.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/CosmosRepositoryFactoryBean.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/CosmosRepositoryFactoryBean.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/ReactiveCosmosRepositoryFactory.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/ReactiveCosmosRepositoryFactory.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/ReactiveCosmosRepositoryFactory.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/ReactiveCosmosRepositoryFactory.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/ReactiveCosmosRepositoryFactoryBean.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/ReactiveCosmosRepositoryFactoryBean.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/ReactiveCosmosRepositoryFactoryBean.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/ReactiveCosmosRepositoryFactoryBean.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/SimpleCosmosRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/SimpleCosmosRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/SimpleCosmosRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/SimpleCosmosRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/SimpleReactiveCosmosRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/SimpleReactiveCosmosRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/SimpleReactiveCosmosRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/SimpleReactiveCosmosRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/package-info.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/package-info.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/CosmosDbFactoryTestIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/CosmosDbFactoryTestIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/CosmosDbFactoryTestIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/CosmosDbFactoryTestIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/UserAgentTestIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/UserAgentTestIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/UserAgentTestIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/UserAgentTestIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/DynamicContainer.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/DynamicContainer.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/DynamicContainer.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/DynamicContainer.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/ExpressionResolverUnitTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/ExpressionResolverUnitTest.java similarity index 99% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/ExpressionResolverUnitTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/ExpressionResolverUnitTest.java index ccb3160225ca..ee4821faabf8 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/ExpressionResolverUnitTest.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/ExpressionResolverUnitTest.java @@ -3,7 +3,6 @@ package com.microsoft.azure.spring.data.cosmosdb.common; import org.junit.Test; - import org.springframework.beans.factory.config.ConfigurableBeanFactory; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/MemoizerUnitTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/MemoizerUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/MemoizerUnitTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/MemoizerUnitTest.java index 0da9f66b63ff..05f3cbb9e588 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/MemoizerUnitTest.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/MemoizerUnitTest.java @@ -5,14 +5,14 @@ import org.junit.Before; import org.junit.Test; -import static org.junit.Assert.assertEquals; - import java.util.HashMap; import java.util.Map; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Function; import java.util.stream.IntStream; +import static org.junit.Assert.assertEquals; + /** * * @author Domenico Sibilio diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/PageTestUtils.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/PageTestUtils.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/PageTestUtils.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/PageTestUtils.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/PropertyLoaderUnitTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/PropertyLoaderUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/PropertyLoaderUnitTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/PropertyLoaderUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/ResponseDiagnosticsTestUtils.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/ResponseDiagnosticsTestUtils.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/ResponseDiagnosticsTestUtils.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/ResponseDiagnosticsTestUtils.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/TestConstants.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/TestConstants.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/TestConstants.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/TestConstants.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/TestUtils.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/TestUtils.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/common/TestUtils.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/common/TestUtils.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/config/AbstractCosmosConfigurationIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/config/AbstractCosmosConfigurationIT.java similarity index 99% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/config/AbstractCosmosConfigurationIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/config/AbstractCosmosConfigurationIT.java index a3fdd33fc4ef..231c587837f5 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/config/AbstractCosmosConfigurationIT.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/config/AbstractCosmosConfigurationIT.java @@ -16,7 +16,6 @@ import org.junit.Test; import org.junit.rules.ExpectedException; import org.mockito.Mock; - import org.springframework.beans.factory.NoSuchBeanDefinitionException; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.AnnotationConfigApplicationContext; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/CosmosTemplateIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/CosmosTemplateIT.java similarity index 94% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/CosmosTemplateIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/CosmosTemplateIT.java index 289a2e4d33ea..14da8e251543 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/CosmosTemplateIT.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/CosmosTemplateIT.java @@ -39,20 +39,7 @@ import static com.microsoft.azure.spring.data.cosmosdb.common.PageTestUtils.validateLastPage; import static com.microsoft.azure.spring.data.cosmosdb.common.PageTestUtils.validateNonLastPage; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.ADDRESSES; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.FIRST_NAME; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.HOBBIES; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.ID_1; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.ID_2; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.ID_3; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.LAST_NAME; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.NEW_FIRST_NAME; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.NEW_LAST_NAME; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.NOT_EXIST_ID; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.PAGE_SIZE_1; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.PAGE_SIZE_2; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.PAGE_SIZE_3; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.UPDATED_FIRST_NAME; +import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.*; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/CosmosTemplateIllegalTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/CosmosTemplateIllegalTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/CosmosTemplateIllegalTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/CosmosTemplateIllegalTest.java index 0c63ef1c49e9..4b2ad4354ec2 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/CosmosTemplateIllegalTest.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/CosmosTemplateIllegalTest.java @@ -15,12 +15,12 @@ import org.mockito.junit.MockitoJUnitRunner; import org.springframework.util.Assert; -import static com.microsoft.azure.spring.data.cosmosdb.core.query.CriteriaType.IS_EQUAL; - import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.Arrays; +import static com.microsoft.azure.spring.data.cosmosdb.core.query.CriteriaType.IS_EQUAL; + @SuppressWarnings("unchecked") @RunWith(MockitoJUnitRunner.class) public class CosmosTemplateIllegalTest { diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/CosmosTemplatePartitionIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/CosmosTemplatePartitionIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/CosmosTemplatePartitionIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/CosmosTemplatePartitionIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/CosmosTemplateUnitTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/CosmosTemplateUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/CosmosTemplateUnitTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/CosmosTemplateUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/ReactiveCosmosTemplateIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/ReactiveCosmosTemplateIT.java similarity index 99% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/ReactiveCosmosTemplateIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/ReactiveCosmosTemplateIT.java index 37395f876c36..d2442de406c3 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/ReactiveCosmosTemplateIT.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/ReactiveCosmosTemplateIT.java @@ -19,11 +19,7 @@ import com.microsoft.azure.spring.data.cosmosdb.repository.TestRepositoryConfig; import com.microsoft.azure.spring.data.cosmosdb.repository.support.CosmosEntityInformation; import io.reactivex.subscribers.TestSubscriber; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; +import org.junit.*; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/ReactiveCosmosTemplatePartitionIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/ReactiveCosmosTemplatePartitionIT.java similarity index 90% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/ReactiveCosmosTemplatePartitionIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/ReactiveCosmosTemplatePartitionIT.java index fce527da71b0..124a85d65172 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/ReactiveCosmosTemplatePartitionIT.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/ReactiveCosmosTemplatePartitionIT.java @@ -12,11 +12,7 @@ import com.microsoft.azure.spring.data.cosmosdb.domain.PartitionPerson; import com.microsoft.azure.spring.data.cosmosdb.repository.TestRepositoryConfig; import com.microsoft.azure.spring.data.cosmosdb.repository.support.CosmosEntityInformation; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; +import org.junit.*; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.domain.EntityScanner; @@ -31,16 +27,7 @@ import java.util.Arrays; import java.util.UUID; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.ADDRESSES; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.FIRST_NAME; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.HOBBIES; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.ID_1; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.ID_2; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.LAST_NAME; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.NEW_FIRST_NAME; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.NEW_LAST_NAME; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.PROPERTY_LAST_NAME; -import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.UPDATED_FIRST_NAME; +import static com.microsoft.azure.spring.data.cosmosdb.common.TestConstants.*; import static com.microsoft.azure.spring.data.cosmosdb.core.query.CriteriaType.IS_EQUAL; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.is; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/convert/ZonedDateTimeDeserializerTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/convert/ZonedDateTimeDeserializerTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/convert/ZonedDateTimeDeserializerTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/convert/ZonedDateTimeDeserializerTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/converter/MappingCosmosConverterUnitTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/converter/MappingCosmosConverterUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/converter/MappingCosmosConverterUnitTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/converter/MappingCosmosConverterUnitTest.java index c0d3c93947ae..5b52d9f14a48 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/converter/MappingCosmosConverterUnitTest.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/converter/MappingCosmosConverterUnitTest.java @@ -8,8 +8,8 @@ import com.microsoft.azure.spring.data.cosmosdb.core.convert.MappingCosmosConverter; import com.microsoft.azure.spring.data.cosmosdb.core.mapping.CosmosMappingContext; import com.microsoft.azure.spring.data.cosmosdb.domain.Address; -import com.microsoft.azure.spring.data.cosmosdb.domain.Memo; import com.microsoft.azure.spring.data.cosmosdb.domain.Importance; +import com.microsoft.azure.spring.data.cosmosdb.domain.Memo; import org.json.JSONObject; import org.junit.Before; import org.junit.Test; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/BasicCosmosPersistentEntityUnitTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/BasicCosmosPersistentEntityUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/BasicCosmosPersistentEntityUnitTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/BasicCosmosPersistentEntityUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/CosmosMappingContextUnitTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/CosmosMappingContextUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/mapping/CosmosMappingContextUnitTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/mapping/CosmosMappingContextUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/query/CriteriaUnitTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/query/CriteriaUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/query/CriteriaUnitTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/query/CriteriaUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/query/DocumentQueryUnitTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/query/DocumentQueryUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/core/query/DocumentQueryUnitTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/core/query/DocumentQueryUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Address.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Address.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Address.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Address.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Contact.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Contact.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Contact.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Contact.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Course.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Course.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Course.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Course.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Customer.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Customer.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Customer.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Customer.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Importance.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Importance.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Importance.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Importance.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/IntegerIdDomain.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/IntegerIdDomain.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/IntegerIdDomain.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/IntegerIdDomain.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Memo.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Memo.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Memo.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Memo.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/NoDBAnnotationPerson.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/NoDBAnnotationPerson.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/NoDBAnnotationPerson.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/NoDBAnnotationPerson.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PageableAddress.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/PageableAddress.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PageableAddress.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/PageableAddress.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PageableMemo.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/PageableMemo.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PageableMemo.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/PageableMemo.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PageablePerson.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/PageablePerson.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PageablePerson.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/PageablePerson.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PartitionPerson.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/PartitionPerson.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/PartitionPerson.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/PartitionPerson.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Person.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Person.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Person.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Person.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Project.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Project.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Project.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Project.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Question.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Question.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Question.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Question.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Role.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Role.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Role.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Role.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/SortedProject.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/SortedProject.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/SortedProject.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/SortedProject.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/SpELBeanStudent.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/SpELBeanStudent.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/SpELBeanStudent.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/SpELBeanStudent.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/SpELPropertyStudent.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/SpELPropertyStudent.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/SpELPropertyStudent.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/SpELPropertyStudent.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Student.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Student.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/Student.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/Student.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/TimeToLiveSample.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/TimeToLiveSample.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/TimeToLiveSample.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/TimeToLiveSample.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/inheritance/Shape.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/inheritance/Shape.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/inheritance/Shape.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/inheritance/Shape.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/inheritance/Square.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/inheritance/Square.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/domain/inheritance/Square.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/domain/inheritance/Square.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/PerfConfiguration.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/PerfConfiguration.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/PerfConfiguration.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/PerfConfiguration.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/PerformanceCompare.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/PerformanceCompare.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/PerformanceCompare.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/PerformanceCompare.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/PerformanceReport.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/PerformanceReport.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/PerformanceReport.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/PerformanceReport.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/domain/PerfPerson.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/domain/PerfPerson.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/domain/PerfPerson.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/domain/PerfPerson.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/repository/PerfPersonRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/repository/PerfPersonRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/repository/PerfPersonRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/repository/PerfPersonRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/service/SdkService.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/service/SdkService.java similarity index 96% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/service/SdkService.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/service/SdkService.java index bf5462d42c1a..4b37ac7db720 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/service/SdkService.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/service/SdkService.java @@ -2,13 +2,7 @@ // Licensed under the MIT License. package com.microsoft.azure.spring.data.cosmosdb.performance.service; -import com.azure.data.cosmos.CosmosClient; -import com.azure.data.cosmos.CosmosClientException; -import com.azure.data.cosmos.CosmosItemProperties; -import com.azure.data.cosmos.CosmosItemRequestOptions; -import com.azure.data.cosmos.FeedOptions; -import com.azure.data.cosmos.FeedResponse; -import com.azure.data.cosmos.PartitionKey; +import com.azure.data.cosmos.*; import com.azure.data.cosmos.sync.CosmosSyncClient; import com.google.gson.Gson; import com.microsoft.azure.spring.data.cosmosdb.performance.domain.PerfPerson; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/utils/Constants.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/utils/Constants.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/utils/Constants.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/utils/Constants.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/utils/DatabaseUtils.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/utils/DatabaseUtils.java similarity index 90% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/utils/DatabaseUtils.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/utils/DatabaseUtils.java index 061e6a97e4d5..8c7be5c48985 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/utils/DatabaseUtils.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/utils/DatabaseUtils.java @@ -2,11 +2,7 @@ // Licensed under the MIT License. package com.microsoft.azure.spring.data.cosmosdb.performance.utils; -import com.azure.data.cosmos.CosmosClientException; -import com.azure.data.cosmos.CosmosContainerProperties; -import com.azure.data.cosmos.IncludedPath; -import com.azure.data.cosmos.IndexingPolicy; -import com.azure.data.cosmos.PartitionKeyDefinition; +import com.azure.data.cosmos.*; import com.azure.data.cosmos.internal.RequestOptions; import com.azure.data.cosmos.sync.CosmosSyncClient; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/utils/FunctionUtils.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/utils/FunctionUtils.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/utils/FunctionUtils.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/utils/FunctionUtils.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/utils/PerfDataProvider.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/utils/PerfDataProvider.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/performance/utils/PerfDataProvider.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/performance/utils/PerfDataProvider.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/CosmosAnnotationUnitTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/CosmosAnnotationUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/CosmosAnnotationUnitTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/CosmosAnnotationUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/SimpleCosmosRepositoryIllegalTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/SimpleCosmosRepositoryIllegalTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/SimpleCosmosRepositoryIllegalTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/SimpleCosmosRepositoryIllegalTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/SimpleCosmosRepositoryUnitTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/SimpleCosmosRepositoryUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/SimpleCosmosRepositoryUnitTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/SimpleCosmosRepositoryUnitTest.java index 6ec48cb66bc3..ca3bd62d503f 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/SimpleCosmosRepositoryUnitTest.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/SimpleCosmosRepositoryUnitTest.java @@ -22,8 +22,8 @@ import java.util.List; import static org.junit.Assert.assertEquals; -import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.when; @RunWith(MockitoJUnitRunner.class) diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/TestRepositoryConfig.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/TestRepositoryConfig.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/TestRepositoryConfig.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/TestRepositoryConfig.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/CosmosRepositoryConfigurationExtensionUnitTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/CosmosRepositoryConfigurationExtensionUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/CosmosRepositoryConfigurationExtensionUnitTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/CosmosRepositoryConfigurationExtensionUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/ReactiveCosmosRepositoryConfigurationExtensionUnitTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/ReactiveCosmosRepositoryConfigurationExtensionUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/config/ReactiveCosmosRepositoryConfigurationExtensionUnitTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/config/ReactiveCosmosRepositoryConfigurationExtensionUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/AddressRepositoryIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/AddressRepositoryIT.java similarity index 98% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/AddressRepositoryIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/AddressRepositoryIT.java index 78526ac34dd6..90c73e73ab29 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/AddressRepositoryIT.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/AddressRepositoryIT.java @@ -11,12 +11,7 @@ import com.microsoft.azure.spring.data.cosmosdb.repository.repository.AddressRepository; import com.microsoft.azure.spring.data.cosmosdb.repository.support.CosmosEntityInformation; import org.assertj.core.util.Lists; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Rule; -import org.junit.Test; +import org.junit.*; import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/ContactRepositoryIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/ContactRepositoryIT.java similarity index 97% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/ContactRepositoryIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/ContactRepositoryIT.java index ca4368e987c0..3a7b23df07af 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/ContactRepositoryIT.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/ContactRepositoryIT.java @@ -9,12 +9,7 @@ import com.microsoft.azure.spring.data.cosmosdb.repository.repository.ContactRepository; import com.microsoft.azure.spring.data.cosmosdb.repository.support.CosmosEntityInformation; import org.assertj.core.util.Lists; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; +import org.junit.*; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/CosmosAnnotationIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/CosmosAnnotationIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/CosmosAnnotationIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/CosmosAnnotationIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/CustomerRepositoryIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/CustomerRepositoryIT.java similarity index 96% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/CustomerRepositoryIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/CustomerRepositoryIT.java index c476c4a57d0e..aade6e404ee2 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/CustomerRepositoryIT.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/CustomerRepositoryIT.java @@ -7,11 +7,7 @@ import com.microsoft.azure.spring.data.cosmosdb.repository.TestRepositoryConfig; import com.microsoft.azure.spring.data.cosmosdb.repository.repository.CustomerRepository; import com.microsoft.azure.spring.data.cosmosdb.repository.support.CosmosEntityInformation; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; +import org.junit.*; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.lang.NonNull; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/IntegerIdDomainRepositoryIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/IntegerIdDomainRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/IntegerIdDomainRepositoryIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/IntegerIdDomainRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/MemoRepositoryIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/MemoRepositoryIT.java similarity index 98% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/MemoRepositoryIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/MemoRepositoryIT.java index 4fa4053db39b..71ce123073bf 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/MemoRepositoryIT.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/MemoRepositoryIT.java @@ -11,13 +11,7 @@ import com.microsoft.azure.spring.data.cosmosdb.repository.TestRepositoryConfig; import com.microsoft.azure.spring.data.cosmosdb.repository.repository.MemoRepository; import com.microsoft.azure.spring.data.cosmosdb.repository.support.CosmosEntityInformation; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Ignore; -import org.junit.Test; +import org.junit.*; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/PageableAddressRepositoryIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/PageableAddressRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/PageableAddressRepositoryIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/PageableAddressRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/PageableMemoRepositoryIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/PageableMemoRepositoryIT.java similarity index 97% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/PageableMemoRepositoryIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/PageableMemoRepositoryIT.java index 35e4a60ee519..c8c254f7ad2b 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/PageableMemoRepositoryIT.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/PageableMemoRepositoryIT.java @@ -27,13 +27,7 @@ import reactor.core.publisher.Flux; import reactor.test.StepVerifier; -import java.util.ArrayList; -import java.util.Date; -import java.util.HashSet; -import java.util.List; -import java.util.Random; -import java.util.Set; -import java.util.UUID; +import java.util.*; import static org.assertj.core.api.Assertions.assertThat; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/PageablePersonRepositoryIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/PageablePersonRepositoryIT.java similarity index 97% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/PageablePersonRepositoryIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/PageablePersonRepositoryIT.java index bea46dbc742e..f3720b6e78b4 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/PageablePersonRepositoryIT.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/PageablePersonRepositoryIT.java @@ -21,11 +21,7 @@ import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Set; -import java.util.UUID; +import java.util.*; import static org.assertj.core.api.Assertions.assertThat; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/PersonRepositoryIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/PersonRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/PersonRepositoryIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/PersonRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/ProjectRepositoryIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/ProjectRepositoryIT.java similarity index 98% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/ProjectRepositoryIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/ProjectRepositoryIT.java index 1e0475d9257d..64ee38ccc15e 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/ProjectRepositoryIT.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/ProjectRepositoryIT.java @@ -9,22 +9,14 @@ import com.microsoft.azure.spring.data.cosmosdb.repository.TestRepositoryConfig; import com.microsoft.azure.spring.data.cosmosdb.repository.repository.ProjectRepository; import com.microsoft.azure.spring.data.cosmosdb.repository.support.CosmosEntityInformation; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; +import org.junit.*; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.lang.NonNull; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import java.util.Arrays; -import java.util.Collections; -import java.util.Comparator; -import java.util.List; -import java.util.Optional; +import java.util.*; import static org.assertj.core.api.Assertions.assertThat; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/ProjectRepositorySortIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/ProjectRepositorySortIT.java similarity index 98% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/ProjectRepositorySortIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/ProjectRepositorySortIT.java index dd952e74dc53..4da352b4589d 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/ProjectRepositorySortIT.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/ProjectRepositorySortIT.java @@ -10,11 +10,7 @@ import com.microsoft.azure.spring.data.cosmosdb.repository.repository.SortedProjectRepository; import com.microsoft.azure.spring.data.cosmosdb.repository.support.CosmosEntityInformation; import org.assertj.core.util.Lists; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; +import org.junit.*; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/QuestionRepositoryIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/QuestionRepositoryIT.java similarity index 96% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/QuestionRepositoryIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/QuestionRepositoryIT.java index deba6ec4e626..61b24a271e36 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/QuestionRepositoryIT.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/QuestionRepositoryIT.java @@ -9,11 +9,7 @@ import com.microsoft.azure.spring.data.cosmosdb.repository.repository.QuestionRepository; import com.microsoft.azure.spring.data.cosmosdb.repository.support.CosmosEntityInformation; import org.assertj.core.util.Lists; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; +import org.junit.*; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/ReactiveCourseRepositoryIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/ReactiveCourseRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/ReactiveCourseRepositoryIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/ReactiveCourseRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/SpELCosmosDBAnnotationIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/SpELCosmosDBAnnotationIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/SpELCosmosDBAnnotationIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/SpELCosmosDBAnnotationIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/SquareRepositoryIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/SquareRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/SquareRepositoryIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/SquareRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/StudentRepositoryIT.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/StudentRepositoryIT.java similarity index 97% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/StudentRepositoryIT.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/StudentRepositoryIT.java index 9b0058e7f905..45e25aa3cac7 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/integration/StudentRepositoryIT.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/StudentRepositoryIT.java @@ -7,11 +7,7 @@ import com.microsoft.azure.spring.data.cosmosdb.repository.TestRepositoryConfig; import com.microsoft.azure.spring.data.cosmosdb.repository.repository.StudentRepository; import com.microsoft.azure.spring.data.cosmosdb.repository.support.CosmosEntityInformation; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; +import org.junit.*; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/AddressRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/AddressRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/AddressRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/AddressRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/ContactRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/ContactRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/ContactRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/ContactRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/CustomerRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/CustomerRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/CustomerRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/CustomerRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/IntegerIdDomainRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/IntegerIdDomainRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/IntegerIdDomainRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/IntegerIdDomainRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/MemoRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/MemoRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/MemoRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/MemoRepository.java index f6544d0462c4..8718388d42a6 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/MemoRepository.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/MemoRepository.java @@ -2,8 +2,8 @@ // Licensed under the MIT License. package com.microsoft.azure.spring.data.cosmosdb.repository.repository; -import com.microsoft.azure.spring.data.cosmosdb.domain.Memo; import com.microsoft.azure.spring.data.cosmosdb.domain.Importance; +import com.microsoft.azure.spring.data.cosmosdb.domain.Memo; import com.microsoft.azure.spring.data.cosmosdb.repository.CosmosRepository; import org.springframework.stereotype.Repository; diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/PageableAddressRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/PageableAddressRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/PageableAddressRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/PageableAddressRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/PageableMemoRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/PageableMemoRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/PageableMemoRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/PageableMemoRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/PageablePersonRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/PageablePersonRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/PageablePersonRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/PageablePersonRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/PartitionPersonRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/PartitionPersonRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/PartitionPersonRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/PartitionPersonRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/PersonRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/PersonRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/PersonRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/PersonRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/ProjectRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/ProjectRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/ProjectRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/ProjectRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/QuestionRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/QuestionRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/QuestionRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/QuestionRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/ReactiveCourseRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/ReactiveCourseRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/ReactiveCourseRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/ReactiveCourseRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/SortedProjectRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/SortedProjectRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/SortedProjectRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/SortedProjectRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/SquareRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/SquareRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/SquareRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/SquareRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/StudentRepository.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/StudentRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/repository/StudentRepository.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/StudentRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/CosmosEntityInformationUnitTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/CosmosEntityInformationUnitTest.java similarity index 99% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/CosmosEntityInformationUnitTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/CosmosEntityInformationUnitTest.java index 598f0359d8c7..e22e573c6d5a 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/CosmosEntityInformationUnitTest.java +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/CosmosEntityInformationUnitTest.java @@ -2,9 +2,6 @@ // Licensed under the MIT License. package com.microsoft.azure.spring.data.cosmosdb.repository.support; -import java.util.List; -import java.util.Objects; - import com.microsoft.azure.spring.data.cosmosdb.common.TestConstants; import com.microsoft.azure.spring.data.cosmosdb.core.mapping.Document; import com.microsoft.azure.spring.data.cosmosdb.core.mapping.PartitionKey; @@ -12,9 +9,11 @@ import com.microsoft.azure.spring.data.cosmosdb.domain.Person; import com.microsoft.azure.spring.data.cosmosdb.domain.Student; import org.junit.Test; - import org.springframework.data.annotation.Version; +import java.util.List; +import java.util.Objects; + import static org.assertj.core.api.Assertions.assertThat; public class CosmosEntityInformationUnitTest { diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/CosmosRepositoryFactoryBeanUnitTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/CosmosRepositoryFactoryBeanUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/CosmosRepositoryFactoryBeanUnitTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/CosmosRepositoryFactoryBeanUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/CosmosRepositoryFactoryUnitTest.java b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/CosmosRepositoryFactoryUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com.microsoft.azure.spring.data.cosmosdb/repository/support/CosmosRepositoryFactoryUnitTest.java rename to sdk/cosmos/azure-spring-data-cosmosdb/src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/CosmosRepositoryFactoryUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/test-resources.json b/sdk/cosmos/azure-spring-data-cosmosdb/test-resources.json deleted file mode 100644 index 297ea8516813..000000000000 --- a/sdk/cosmos/azure-spring-data-cosmosdb/test-resources.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "baseName": { - "type": "string", - "defaultValue": "[resourceGroup().name]", - "metadata": { - "description": "The base resource name." - } - }, - "location": { - "type": "string", - "defaultValue": "[resourceGroup().location]", - "metadata": { - "description": "The location of the resource. By default, this is the same as the resource group." - } - } - }, - "variables": { - "apiVersion": "2020-03-01", - "accountName": "[toLower(parameters('baseName'))]", - "databaseName": "TestDB", - "resourceId": "[resourceId('Microsoft.DocumentDB/databaseAccounts', variables('accountName'))]" - }, - "resources": [ - { - "type": "Microsoft.DocumentDB/databaseAccounts", - "apiVersion": "[variables('apiVersion')]", - "name": "[variables('accountName')]", - "kind": "GlobalDocumentDB", - "location": "[parameters('location')]", - "properties": { - "databaseAccountOfferType": "Standard", - "consistencyPolicy": { - "defaultConsistencyLevel": "Session" - } - } - }, - { - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases", - "name": "[concat(variables('accountName'), '/', variables('databaseName'))]", - "apiVersion": "[variables('apiVersion')]", - "dependsOn": [ - "[resourceId('Microsoft.DocumentDB/databaseAccounts', variables('accountName'))]" - ], - "properties": { - "resource": { - "id": "[variables('databaseName')]" - }, - "options": { - "throughput": "400" - } - } - } - ], - "outputs": { - "DOCUMENTDB_KEY": { - "type": "string", - "value": "[listKeys(variables('resourceId'), variables('apiVersion')).primaryMasterKey]" - }, - "COSMOSDB_SECONDARY_KEY": { - "type": "string", - "value": "[listKeys(variables('resourceId'), variables('apiVersion')).secondaryMasterKey]" - }, - "DOCUMENTDB_URI": { - "type": "string", - "value": "[reference(variables('resourceId'), variables('apiVersion')).documentEndpoint]" - } - } -} diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/tests.yml b/sdk/cosmos/azure-spring-data-cosmosdb/tests.yml deleted file mode 100644 index 137c97e2b0cc..000000000000 --- a/sdk/cosmos/azure-spring-data-cosmosdb/tests.yml +++ /dev/null @@ -1,26 +0,0 @@ -trigger: none - -variables: - - template: ../../../eng/pipelines/templates/variables/globals.yml - - name: AdditionalArgs - value: '' - -jobs: - - template: ../../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml - parameters: - TestName: Integration_Test_Spring_Data_Cosmosdb - ServiceDirectory: cosmos/azure-spring-data-cosmosdb - Artifacts: - - name: spring-data-cosmosdb - groupId: com.microsoft.azure - safeName: springdatacosmosdb - TimeoutInMinutes: 120 - EnvVars: - AZURE_TEST_MODE: LIVE - PreRunSteps: - - template: /eng/pipelines/templates/steps/install-reporting-tools.yml - TestStepMavenInputs: - goals: verify - options: '-Dmaven.wagon.http.pool=false $(DefaultOptions) -Dmaven.javadoc.skip=true -Drevapi.skip=true -Dskip.integration.tests=false -pl $(ProjectList)' - - TestResultsFiles: '**/junitreports/TEST-*.xml' diff --git a/sdk/cosmos/test-resources.json b/sdk/cosmos/test-resources.json index 5ff266717f1b..3c8e8d451d70 100644 --- a/sdk/cosmos/test-resources.json +++ b/sdk/cosmos/test-resources.json @@ -28,7 +28,9 @@ "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", @@ -79,6 +81,19 @@ "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": { @@ -93,6 +108,18 @@ "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]" } } -} \ No newline at end of file +} diff --git a/sdk/cosmos/tests.yml b/sdk/cosmos/tests.yml index 0d07a5722a04..dca695c04338 100644 --- a/sdk/cosmos/tests.yml +++ b/sdk/cosmos/tests.yml @@ -245,3 +245,20 @@ jobs: options: '$(ProfileFlag) -Dgpg.skip $(AdditionalArgs) -pl $(ProjectList)' TestResultsFiles: '**/junitreports/TEST-*.xml' + + - template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml + parameters: + TestName: Integration_Test_Spring_Data_Cosmosdb + ServiceDirectory: cosmos/azure-spring-data-cosmosdb + Artifacts: + - name: spring-data-cosmosdb + groupId: com.microsoft.azure + safeName: springdatacosmosdb + TimeoutInMinutes: 120 + EnvVars: + AZURE_TEST_MODE: LIVE + PreRunSteps: + - template: /eng/pipelines/templates/steps/install-reporting-tools.yml + TestStepMavenInputs: + goals: verify + options: '-Dmaven.wagon.http.pool=false $(DefaultOptions) -Dmaven.javadoc.skip=true -Drevapi.skip=true -Dskip.integration.tests=false -pl $(ProjectList)' From 2512f38a3f57abe7990efe3343c916f43e303b96 Mon Sep 17 00:00:00 2001 From: Yi Liu Date: Wed, 1 Jul 2020 14:25:46 +0800 Subject: [PATCH 08/17] modify javadoc warning of @ symbol for the pipeline --- eng/pipelines/scripts/generate_overview_from_readme.py | 5 +++-- sdk/cosmos/azure-spring-data-cosmosdb/README.md | 1 - sdk/cosmos/azure-spring-data-cosmosdb/pom.xml | 3 +-- sdk/cosmos/tests.yml | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/eng/pipelines/scripts/generate_overview_from_readme.py b/eng/pipelines/scripts/generate_overview_from_readme.py index e75b3aff7519..ba11132c6c54 100644 --- a/eng/pipelines/scripts/generate_overview_from_readme.py +++ b/eng/pipelines/scripts/generate_overview_from_readme.py @@ -1,10 +1,10 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. -# Use case: Given a README.md file, generate a readme_overview.html file and place it next +# Use case: Given a README.md file, generate a readme_overview.html file and place it next # to the README.md. This will allow the javadocs jar step to append the contents of the # readme onto the landing page. -# +# # This script is necessary, instead of just invoking python markdown2 directly from the # command line because the generated overview.html file needs to be enclosed inside of # tags. When the attach-javadocs runs with the overview option it will append it the contents @@ -41,6 +41,7 @@ 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") diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/README.md b/sdk/cosmos/azure-spring-data-cosmosdb/README.md index 9233c7f84e2b..24308f8bc8fa 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/README.md +++ b/sdk/cosmos/azure-spring-data-cosmosdb/README.md @@ -59,7 +59,6 @@ Version mapping between spring boot and spring-data-cosmosdb: ```java @Document(collection = "myCollection") class MyDocument { - @Autowired String id; String data; @Version diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml b/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml index eb405faaf7ee..41fb603e8e5b 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml +++ b/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml @@ -25,7 +25,7 @@ spring-data-cosmosdb-test testdb-${maven.build.timestamp} - false + true false false @@ -237,7 +237,6 @@ maven-javadoc-plugin 3.1.1 - private com/microsoft/azure/spring/data/cosmosdb/core/mapping/BasicCosmosPersistentProperty.java diff --git a/sdk/cosmos/tests.yml b/sdk/cosmos/tests.yml index dca695c04338..7c0ddc623712 100644 --- a/sdk/cosmos/tests.yml +++ b/sdk/cosmos/tests.yml @@ -249,7 +249,7 @@ jobs: - template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml parameters: TestName: Integration_Test_Spring_Data_Cosmosdb - ServiceDirectory: cosmos/azure-spring-data-cosmosdb + ServiceDirectory: cosmos Artifacts: - name: spring-data-cosmosdb groupId: com.microsoft.azure From b4a7f460359128408962b52976c06c254e746d7a Mon Sep 17 00:00:00 2001 From: Yi Liu Date: Thu, 2 Jul 2020 09:48:57 +0800 Subject: [PATCH 09/17] revert eng files and modify test-resources.json for IT --- .../scripts/generate_overview_from_readme.py | 1 - .../src/test/resources/application.properties | 6 ++--- sdk/cosmos/test-resources.json | 27 ------------------- 3 files changed, 3 insertions(+), 31 deletions(-) diff --git a/eng/pipelines/scripts/generate_overview_from_readme.py b/eng/pipelines/scripts/generate_overview_from_readme.py index ba11132c6c54..5c113e78bddf 100644 --- a/eng/pipelines/scripts/generate_overview_from_readme.py +++ b/eng/pipelines/scripts/generate_overview_from_readme.py @@ -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") diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/resources/application.properties b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/resources/application.properties index 85ff3ddb4a40..12b7c8f46f80 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/src/test/resources/application.properties +++ b/sdk/cosmos/azure-spring-data-cosmosdb/src/test/resources/application.properties @@ -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} diff --git a/sdk/cosmos/test-resources.json b/sdk/cosmos/test-resources.json index 3c8e8d451d70..447dd5729a44 100644 --- a/sdk/cosmos/test-resources.json +++ b/sdk/cosmos/test-resources.json @@ -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]" } } } From c3393f5cc115d4f299921b2ea9bced28902b22ff Mon Sep 17 00:00:00 2001 From: Kushagra Thapar Date: Thu, 2 Jul 2020 12:52:13 -0700 Subject: [PATCH 10/17] Added spring integration matrix tests for Session and Strong consistency --- sdk/cosmos/tests.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/cosmos/tests.yml b/sdk/cosmos/tests.yml index 7c0ddc623712..0ef58362979f 100644 --- a/sdk/cosmos/tests.yml +++ b/sdk/cosmos/tests.yml @@ -254,7 +254,17 @@ jobs: - name: spring-data-cosmosdb groupId: com.microsoft.azure safeName: springdatacosmosdb - TimeoutInMinutes: 120 + TimeoutInMinutes: 90 + Matrix: + Session_Integration: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" + DisplayName: Session Integration + OSVmImage: 'ubuntu-18.04' + Strong_Integration: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" + DisplayName: Strong Integration + OSVmImage: 'ubuntu-18.04' + EnvVars: AZURE_TEST_MODE: LIVE PreRunSteps: From bb430f228d149935d4fe8c35d8be540674c2b846 Mon Sep 17 00:00:00 2001 From: Kushagra Thapar Date: Thu, 2 Jul 2020 14:36:38 -0700 Subject: [PATCH 11/17] Enabled unit tests and integration tests for azure and emulator --- .../templates/stages/cosmos-sdk-client.yml | 5 + sdk/cosmos/azure-spring-data-cosmosdb/pom.xml | 32 ++ sdk/cosmos/tests.yml | 416 +++++++++--------- 3 files changed, 246 insertions(+), 207 deletions(-) diff --git a/eng/pipelines/templates/stages/cosmos-sdk-client.yml b/eng/pipelines/templates/stages/cosmos-sdk-client.yml index 3fea2eef3eea..f11698d46ac2 100644 --- a/eng/pipelines/templates/stages/cosmos-sdk-client.yml +++ b/eng/pipelines/templates/stages/cosmos-sdk-client.yml @@ -101,6 +101,11 @@ stages: DisplayName: 'Emulator only Integration Tests' PROTOCOLS: '["Https"]' DESIRED_CONSISTENCIES: '["Strong", "Session"]' + Spring_Integration_Tests_Java8: + OSVmImage: 'windows-2019' + JavaTestVersion: '1.8' + ProfileFlag: '-P integration-test-emulator' + DisplayName: 'Spring Emulator only Integration Tests' TestStepMavenInputs: goals: 'verify' diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml b/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml index 41fb603e8e5b..2510c59a3c1a 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml +++ b/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml @@ -251,5 +251,37 @@ + + + dev + + true + + + dev + true + false + false + + + + integration-test-azure + + integration-test-azure + false + true + false + + + + integration-test-emulator + + integration-test-emulator + false + false + true + + + diff --git a/sdk/cosmos/tests.yml b/sdk/cosmos/tests.yml index 0ef58362979f..31c6a95c8c69 100644 --- a/sdk/cosmos/tests.yml +++ b/sdk/cosmos/tests.yml @@ -20,212 +20,212 @@ jobs: TimeoutInMinutes: 120 MaxParallel: 8 Matrix: - # 59m 59s, expect passed - Session_Http_E2E: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" - DisplayName: Https ReadMyWrites Integration Tests - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pe2e' - AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Https"' - DESIRED_CONSISTENCY: 'Session' - ACCOUNT_CONSISTENCY: 'Session' - # 59m 59s, expect passed - Session_Tcp_E2E: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" - DisplayName: TCP ReadMyWrites Integration Tests - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pe2e' - AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Tcp"' - DESIRED_CONSISTENCY: 'Session' - ACCOUNT_CONSISTENCY: 'Session' - # 36m 46s, expect passed - Session_Single_Region_Tcp_NonEmulator: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" - DisplayName: Session Single Region TCP NonEmulator - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pnon-emulator' - PROTOCOLS: '["Tcp"]' - DESIRED_CONSISTENCIES: '["Session"]' - ACCOUNT_CONSISTENCY: 'Session' - # 1h 25m 12s, expect passed - Session_Single_Region_Tcp_Fast: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" - DisplayName: Session Single Region Fast - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pfast' - PROTOCOLS: '["Tcp"]' - DESIRED_CONSISTENCIES: '["Session"]' - ACCOUNT_CONSISTENCY: 'Session' - # 41m 14s, expect passed - Session_Single_Region_Tcp_Direct: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" - DisplayName: Session Single Region Direct - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pdirect' - PROTOCOLS: '["Tcp"]' - DESIRED_CONSISTENCIES: '["Session"]' - ACCOUNT_CONSISTENCY: 'Session' - # 42m 42s, expect passed - Session_Single_Region_Tcp_Long: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" - DisplayName: Session Single Region Long - OSVmImage: 'windows-2019' - ProfileFlag: '-e -Plong' - PROTOCOLS: '["Tcp"]' - DESIRED_CONSISTENCIES: '["Session"]' - ACCOUNT_CONSISTENCY: 'Session' - # 1h 30m 32s, expect passed - Strong_Session_Single_Region_Tcp_Fast: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" - DisplayName: Strong Session Single Region TCP Fast - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pfast' - PROTOCOLS: '["Tcp"]' - DESIRED_CONSISTENCIES: '["Strong", "Session"]' - ACCOUNT_CONSISTENCY: 'Strong' - # 1h 30m 32s, expect passed - Bounded_Staleness_Single_Region_Tcp_Fast: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" - DisplayName: Bounded Staleness Single Region TCP Fast - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pfast' - PROTOCOLS: '["Tcp"]' - DESIRED_CONSISTENCIES: '["BoundedStaleness"]' - ACCOUNT_CONSISTENCY: 'Strong' - # 1h 30m 32s, expect passed - Consistent_Prefix_Single_Region_Tcp_Fast: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" - DisplayName: Consistent Prefix Single Region TCP Fast - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pfast' - PROTOCOLS: '["Tcp"]' - DESIRED_CONSISTENCIES: '["ConsistentPrefix"]' - ACCOUNT_CONSISTENCY: 'Strong' - # 59m 58s, expect passed - Strong_Single_Region_Https_E2E: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" - DisplayName: Strong Single Region Https ReadMyWrites - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pe2e' - AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Https"' - DESIRED_CONSISTENCY: 'Strong' - ACCOUNT_CONSISTENCY: 'Strong' - # 59m 58s, expect passed - Strong_Single_Region_Tcp_E2E: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" - DisplayName: Strong Single Region TCP ReadMyWrites - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pe2e' - AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Tcp"' - DESIRED_CONSISTENCY: 'Strong' - ACCOUNT_CONSISTENCY: 'Strong' - # 59m 58s, expect passed - Bounded_Staleness_Single_Region_Tcp_E2E: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" - DisplayName: Bounded Staleness Single Region TCP ReadMyWrites - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pe2e' - AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Tcp"' - DESIRED_CONSISTENCY: 'BoundedStaleness' - ACCOUNT_CONSISTENCY: 'Strong' - # 43m 53s, expect passed - Strong_Session_Single_Region_Tcp_Direct: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" - DisplayName: Strong Session Single Region TCP Direct - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pdirect' - PROTOCOLS: '["Tcp"]' - DESIRED_CONSISTENCIES: '["Strong", "Session"]' - ACCOUNT_CONSISTENCY: 'Strong' - # 40m 59s, expect passed - Strong_Session_Single_Region_Tcp_NonEmulator: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" - DisplayName: Strong Session Single Region TCP NonEmulator - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pnon-emulator' - PROTOCOLS: '["Tcp"]' - DESIRED_CONSISTENCIES: '["Strong", "Session"]' - ACCOUNT_CONSISTENCY: 'Strong' - # 45m 23s, expect passed - Session_Multimaster_Multi_Region_Tcp_Long: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" - DisplayName: Multimaster Multi Region Long - OSVmImage: 'windows-2019' - ProfileFlag: '-e -Plong' - PROTOCOLS: '["Tcp"]' - ACCOUNT_CONSISTENCY: 'Session' - DESIRED_CONSISTENCIES: '["Session"]' - PREFERRED_LOCATIONS: '["East US 2"]' - # 15m 34s, previously failing - Session_Multimaster_Multi_Region_Tcp_MultiMaster: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" - DisplayName: Multimaster Multi Region Multi-Master - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pmulti-master' - PROTOCOLS: '["Tcp"]' - ACCOUNT_CONSISTENCY: 'Session' - DESIRED_CONSISTENCIES: '["Session"]' - PREFERRED_LOCATIONS: '["East US 2"]' - # 1h 30m 43s, expect passed - Session_Multimaster_Multi_Region_Tcp_Fast: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" - DisplayName: Multimaster Multi Region Fast - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pfast' - PROTOCOLS: '["Tcp"]' - ACCOUNT_CONSISTENCY: 'Session' - DESIRED_CONSISTENCIES: '["Session"]' - PREFERRED_LOCATIONS: '["East US 2"]' - # 30m 10s, expect passed - Session_Multimaster_Multi_Region_Tcp_Direct: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" - DisplayName: Multimaster Multi Region Direct - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pdirect' - PROTOCOLS: '["Tcp"]' - ACCOUNT_CONSISTENCY: 'Session' - DESIRED_CONSISTENCIES: '["Session"]' - PREFERRED_LOCATIONS: '["East US 2"]' - # 35m 0s, expect passed - Session_Multimaster_Multi_Region_Tcp_NonEmulator: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" - DisplayName: Multimaster Multi Region NonEmulator - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pnon-emulator' - PROTOCOLS: '["Tcp"]' - ACCOUNT_CONSISTENCY: 'Session' - DESIRED_CONSISTENCIES: '["Session"]' - PREFERRED_LOCATIONS: '["East US 2"]' - # 15m 21s, previously failing - Session_Multimaster_Single_Region_Tcp_MultiMaster: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session' }" - DisplayName: MultiMaster Single Region Multi-Master - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pmulti-master' - PROTOCOLS: '["Tcp"]' - ACCOUNT_CONSISTENCY: 'Session' - DESIRED_CONSISTENCIES: '["Session"]' - PREFERRED_LOCATIONS: null - # 1h 30m 34s, expect passed - Session_Multimaster_Single_Region_Tcp_Fast: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session' }" - DisplayName: Multimaster Single Region Fast - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pfast' - PROTOCOLS: '["Tcp"]' - ACCOUNT_CONSISTENCY: 'Session' - DESIRED_CONSISTENCIES: '["Session"]' - PREFERRED_LOCATIONS: null - # 45m 05s, expect passed - Session_Multimaster_Single_Region_Tcp_Direct: - ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session' }" - DisplayName: Multimaster Single Region Direct - OSVmImage: 'ubuntu-18.04' - ProfileFlag: '-Pdirect' - PROTOCOLS: '["Tcp"]' - ACCOUNT_CONSISTENCY: 'Session' - DESIRED_CONSISTENCIES: '["Session"]' - PREFERRED_LOCATIONS: null +# # 59m 59s, expect passed +# Session_Http_E2E: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" +# DisplayName: Https ReadMyWrites Integration Tests +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pe2e' +# AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Https"' +# DESIRED_CONSISTENCY: 'Session' +# ACCOUNT_CONSISTENCY: 'Session' +# # 59m 59s, expect passed +# Session_Tcp_E2E: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" +# DisplayName: TCP ReadMyWrites Integration Tests +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pe2e' +# AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Tcp"' +# DESIRED_CONSISTENCY: 'Session' +# ACCOUNT_CONSISTENCY: 'Session' +# # 36m 46s, expect passed +# Session_Single_Region_Tcp_NonEmulator: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" +# DisplayName: Session Single Region TCP NonEmulator +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pnon-emulator' +# PROTOCOLS: '["Tcp"]' +# DESIRED_CONSISTENCIES: '["Session"]' +# ACCOUNT_CONSISTENCY: 'Session' +# # 1h 25m 12s, expect passed +# Session_Single_Region_Tcp_Fast: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" +# DisplayName: Session Single Region Fast +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pfast' +# PROTOCOLS: '["Tcp"]' +# DESIRED_CONSISTENCIES: '["Session"]' +# ACCOUNT_CONSISTENCY: 'Session' +# # 41m 14s, expect passed +# Session_Single_Region_Tcp_Direct: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" +# DisplayName: Session Single Region Direct +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pdirect' +# PROTOCOLS: '["Tcp"]' +# DESIRED_CONSISTENCIES: '["Session"]' +# ACCOUNT_CONSISTENCY: 'Session' +# # 42m 42s, expect passed +# Session_Single_Region_Tcp_Long: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" +# DisplayName: Session Single Region Long +# OSVmImage: 'windows-2019' +# ProfileFlag: '-e -Plong' +# PROTOCOLS: '["Tcp"]' +# DESIRED_CONSISTENCIES: '["Session"]' +# ACCOUNT_CONSISTENCY: 'Session' +# # 1h 30m 32s, expect passed +# Strong_Session_Single_Region_Tcp_Fast: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" +# DisplayName: Strong Session Single Region TCP Fast +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pfast' +# PROTOCOLS: '["Tcp"]' +# DESIRED_CONSISTENCIES: '["Strong", "Session"]' +# ACCOUNT_CONSISTENCY: 'Strong' +# # 1h 30m 32s, expect passed +# Bounded_Staleness_Single_Region_Tcp_Fast: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" +# DisplayName: Bounded Staleness Single Region TCP Fast +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pfast' +# PROTOCOLS: '["Tcp"]' +# DESIRED_CONSISTENCIES: '["BoundedStaleness"]' +# ACCOUNT_CONSISTENCY: 'Strong' +# # 1h 30m 32s, expect passed +# Consistent_Prefix_Single_Region_Tcp_Fast: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" +# DisplayName: Consistent Prefix Single Region TCP Fast +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pfast' +# PROTOCOLS: '["Tcp"]' +# DESIRED_CONSISTENCIES: '["ConsistentPrefix"]' +# ACCOUNT_CONSISTENCY: 'Strong' +# # 59m 58s, expect passed +# Strong_Single_Region_Https_E2E: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" +# DisplayName: Strong Single Region Https ReadMyWrites +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pe2e' +# AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Https"' +# DESIRED_CONSISTENCY: 'Strong' +# ACCOUNT_CONSISTENCY: 'Strong' +# # 59m 58s, expect passed +# Strong_Single_Region_Tcp_E2E: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" +# DisplayName: Strong Single Region TCP ReadMyWrites +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pe2e' +# AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Tcp"' +# DESIRED_CONSISTENCY: 'Strong' +# ACCOUNT_CONSISTENCY: 'Strong' +# # 59m 58s, expect passed +# Bounded_Staleness_Single_Region_Tcp_E2E: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" +# DisplayName: Bounded Staleness Single Region TCP ReadMyWrites +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pe2e' +# AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Tcp"' +# DESIRED_CONSISTENCY: 'BoundedStaleness' +# ACCOUNT_CONSISTENCY: 'Strong' +# # 43m 53s, expect passed +# Strong_Session_Single_Region_Tcp_Direct: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" +# DisplayName: Strong Session Single Region TCP Direct +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pdirect' +# PROTOCOLS: '["Tcp"]' +# DESIRED_CONSISTENCIES: '["Strong", "Session"]' +# ACCOUNT_CONSISTENCY: 'Strong' +# # 40m 59s, expect passed +# Strong_Session_Single_Region_Tcp_NonEmulator: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" +# DisplayName: Strong Session Single Region TCP NonEmulator +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pnon-emulator' +# PROTOCOLS: '["Tcp"]' +# DESIRED_CONSISTENCIES: '["Strong", "Session"]' +# ACCOUNT_CONSISTENCY: 'Strong' +# # 45m 23s, expect passed +# Session_Multimaster_Multi_Region_Tcp_Long: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" +# DisplayName: Multimaster Multi Region Long +# OSVmImage: 'windows-2019' +# ProfileFlag: '-e -Plong' +# PROTOCOLS: '["Tcp"]' +# ACCOUNT_CONSISTENCY: 'Session' +# DESIRED_CONSISTENCIES: '["Session"]' +# PREFERRED_LOCATIONS: '["East US 2"]' +# # 15m 34s, previously failing +# Session_Multimaster_Multi_Region_Tcp_MultiMaster: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" +# DisplayName: Multimaster Multi Region Multi-Master +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pmulti-master' +# PROTOCOLS: '["Tcp"]' +# ACCOUNT_CONSISTENCY: 'Session' +# DESIRED_CONSISTENCIES: '["Session"]' +# PREFERRED_LOCATIONS: '["East US 2"]' +# # 1h 30m 43s, expect passed +# Session_Multimaster_Multi_Region_Tcp_Fast: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" +# DisplayName: Multimaster Multi Region Fast +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pfast' +# PROTOCOLS: '["Tcp"]' +# ACCOUNT_CONSISTENCY: 'Session' +# DESIRED_CONSISTENCIES: '["Session"]' +# PREFERRED_LOCATIONS: '["East US 2"]' +# # 30m 10s, expect passed +# Session_Multimaster_Multi_Region_Tcp_Direct: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" +# DisplayName: Multimaster Multi Region Direct +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pdirect' +# PROTOCOLS: '["Tcp"]' +# ACCOUNT_CONSISTENCY: 'Session' +# DESIRED_CONSISTENCIES: '["Session"]' +# PREFERRED_LOCATIONS: '["East US 2"]' +# # 35m 0s, expect passed +# Session_Multimaster_Multi_Region_Tcp_NonEmulator: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" +# DisplayName: Multimaster Multi Region NonEmulator +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pnon-emulator' +# PROTOCOLS: '["Tcp"]' +# ACCOUNT_CONSISTENCY: 'Session' +# DESIRED_CONSISTENCIES: '["Session"]' +# PREFERRED_LOCATIONS: '["East US 2"]' +# # 15m 21s, previously failing +# Session_Multimaster_Single_Region_Tcp_MultiMaster: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session' }" +# DisplayName: MultiMaster Single Region Multi-Master +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pmulti-master' +# PROTOCOLS: '["Tcp"]' +# ACCOUNT_CONSISTENCY: 'Session' +# DESIRED_CONSISTENCIES: '["Session"]' +# PREFERRED_LOCATIONS: null +# # 1h 30m 34s, expect passed +# Session_Multimaster_Single_Region_Tcp_Fast: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session' }" +# DisplayName: Multimaster Single Region Fast +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pfast' +# PROTOCOLS: '["Tcp"]' +# ACCOUNT_CONSISTENCY: 'Session' +# DESIRED_CONSISTENCIES: '["Session"]' +# PREFERRED_LOCATIONS: null +# # 45m 05s, expect passed +# Session_Multimaster_Single_Region_Tcp_Direct: +# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session' }" +# DisplayName: Multimaster Single Region Direct +# OSVmImage: 'ubuntu-18.04' +# ProfileFlag: '-Pdirect' +# PROTOCOLS: '["Tcp"]' +# ACCOUNT_CONSISTENCY: 'Session' +# DESIRED_CONSISTENCIES: '["Session"]' +# PREFERRED_LOCATIONS: null # 25m 10s, expect passed Session_Multimaster_Single_Region_Tcp_NonEmulator: ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session' }" @@ -260,10 +260,12 @@ jobs: ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" DisplayName: Session Integration OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-P integration-test-azure' Strong_Integration: ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" DisplayName: Strong Integration OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-P integration-test-azure' EnvVars: AZURE_TEST_MODE: LIVE @@ -271,4 +273,4 @@ jobs: - template: /eng/pipelines/templates/steps/install-reporting-tools.yml TestStepMavenInputs: goals: verify - options: '-Dmaven.wagon.http.pool=false $(DefaultOptions) -Dmaven.javadoc.skip=true -Drevapi.skip=true -Dskip.integration.tests=false -pl $(ProjectList)' + options: '$(ProfileFlag) -Dgpg.skip -Dmaven.wagon.http.pool=false $(DefaultOptions) -Dmaven.javadoc.skip=true -Drevapi.skip=true -pl $(ProjectList)' From e6874032500a83fe06fdec2645e2cc1b71ba3f8f Mon Sep 17 00:00:00 2001 From: Kushagra Thapar Date: Thu, 2 Jul 2020 15:44:39 -0700 Subject: [PATCH 12/17] Added account host and key to emulator tests --- eng/pipelines/templates/stages/cosmos-sdk-client.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/templates/stages/cosmos-sdk-client.yml b/eng/pipelines/templates/stages/cosmos-sdk-client.yml index f11698d46ac2..d59a746bd1bc 100644 --- a/eng/pipelines/templates/stages/cosmos-sdk-client.yml +++ b/eng/pipelines/templates/stages/cosmos-sdk-client.yml @@ -94,6 +94,7 @@ stages: DisplayName: 'Emulator only Integration Tests' PROTOCOLS: '["Tcp"]' DESIRED_CONSISTENCIES: '["Strong", "Session"]' + AdditionalArgs: '-DargLine="-DACCOUNT_HOST=https://localhost:8081/"' Https_Integration_Tests_Java8: OSVmImage: 'windows-2019' JavaTestVersion: '1.8' @@ -101,15 +102,17 @@ stages: DisplayName: 'Emulator only Integration Tests' PROTOCOLS: '["Https"]' DESIRED_CONSISTENCIES: '["Strong", "Session"]' + AdditionalArgs: '-DargLine="-DACCOUNT_HOST=https://localhost:8081/"' Spring_Integration_Tests_Java8: OSVmImage: 'windows-2019' JavaTestVersion: '1.8' ProfileFlag: '-P integration-test-emulator' DisplayName: 'Spring Emulator only Integration Tests' + AdditionalArgs: '-DargLine="-DACCOUNT_HOST=https://localhost:8081/ -DACCOUNT_KEY=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw== -DSECONDARY_ACCOUNT_KEY=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=="' TestStepMavenInputs: goals: 'verify' - options: '$(ProfileFlag) -Dgpg.skip -DargLine="-DACCOUNT_HOST=https://localhost:8081/" -pl $(ProjectList)' + options: '$(ProfileFlag) -Dgpg.skip $(AdditionalArgs) -pl $(ProjectList)' mavenAuthenticateFeed: true jdkVersionOption: $(JavaTestVersion) From 8a4b0fb51103ee7218606e29d35a396961822bee Mon Sep 17 00:00:00 2001 From: Kushagra Thapar Date: Thu, 2 Jul 2020 17:41:35 -0700 Subject: [PATCH 13/17] Reverted experimental changes. Exculded PageablePersonRepositoryIT from emulator tests --- sdk/cosmos/azure-spring-data-cosmosdb/pom.xml | 15 + sdk/cosmos/tests.yml | 412 +++++++++--------- 2 files changed, 221 insertions(+), 206 deletions(-) diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml b/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml index 2510c59a3c1a..bd96baf15b13 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml +++ b/sdk/cosmos/azure-spring-data-cosmosdb/pom.xml @@ -281,6 +281,21 @@ false true + + + + org.apache.maven.plugins + maven-failsafe-plugin + 2.22.0 + + + + **/PageablePersonRepositoryIT.java + + + + + diff --git a/sdk/cosmos/tests.yml b/sdk/cosmos/tests.yml index 31c6a95c8c69..41881477a7f9 100644 --- a/sdk/cosmos/tests.yml +++ b/sdk/cosmos/tests.yml @@ -20,212 +20,212 @@ jobs: TimeoutInMinutes: 120 MaxParallel: 8 Matrix: -# # 59m 59s, expect passed -# Session_Http_E2E: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" -# DisplayName: Https ReadMyWrites Integration Tests -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pe2e' -# AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Https"' -# DESIRED_CONSISTENCY: 'Session' -# ACCOUNT_CONSISTENCY: 'Session' -# # 59m 59s, expect passed -# Session_Tcp_E2E: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" -# DisplayName: TCP ReadMyWrites Integration Tests -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pe2e' -# AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Tcp"' -# DESIRED_CONSISTENCY: 'Session' -# ACCOUNT_CONSISTENCY: 'Session' -# # 36m 46s, expect passed -# Session_Single_Region_Tcp_NonEmulator: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" -# DisplayName: Session Single Region TCP NonEmulator -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pnon-emulator' -# PROTOCOLS: '["Tcp"]' -# DESIRED_CONSISTENCIES: '["Session"]' -# ACCOUNT_CONSISTENCY: 'Session' -# # 1h 25m 12s, expect passed -# Session_Single_Region_Tcp_Fast: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" -# DisplayName: Session Single Region Fast -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pfast' -# PROTOCOLS: '["Tcp"]' -# DESIRED_CONSISTENCIES: '["Session"]' -# ACCOUNT_CONSISTENCY: 'Session' -# # 41m 14s, expect passed -# Session_Single_Region_Tcp_Direct: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" -# DisplayName: Session Single Region Direct -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pdirect' -# PROTOCOLS: '["Tcp"]' -# DESIRED_CONSISTENCIES: '["Session"]' -# ACCOUNT_CONSISTENCY: 'Session' -# # 42m 42s, expect passed -# Session_Single_Region_Tcp_Long: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" -# DisplayName: Session Single Region Long -# OSVmImage: 'windows-2019' -# ProfileFlag: '-e -Plong' -# PROTOCOLS: '["Tcp"]' -# DESIRED_CONSISTENCIES: '["Session"]' -# ACCOUNT_CONSISTENCY: 'Session' -# # 1h 30m 32s, expect passed -# Strong_Session_Single_Region_Tcp_Fast: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" -# DisplayName: Strong Session Single Region TCP Fast -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pfast' -# PROTOCOLS: '["Tcp"]' -# DESIRED_CONSISTENCIES: '["Strong", "Session"]' -# ACCOUNT_CONSISTENCY: 'Strong' -# # 1h 30m 32s, expect passed -# Bounded_Staleness_Single_Region_Tcp_Fast: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" -# DisplayName: Bounded Staleness Single Region TCP Fast -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pfast' -# PROTOCOLS: '["Tcp"]' -# DESIRED_CONSISTENCIES: '["BoundedStaleness"]' -# ACCOUNT_CONSISTENCY: 'Strong' -# # 1h 30m 32s, expect passed -# Consistent_Prefix_Single_Region_Tcp_Fast: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" -# DisplayName: Consistent Prefix Single Region TCP Fast -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pfast' -# PROTOCOLS: '["Tcp"]' -# DESIRED_CONSISTENCIES: '["ConsistentPrefix"]' -# ACCOUNT_CONSISTENCY: 'Strong' -# # 59m 58s, expect passed -# Strong_Single_Region_Https_E2E: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" -# DisplayName: Strong Single Region Https ReadMyWrites -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pe2e' -# AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Https"' -# DESIRED_CONSISTENCY: 'Strong' -# ACCOUNT_CONSISTENCY: 'Strong' -# # 59m 58s, expect passed -# Strong_Single_Region_Tcp_E2E: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" -# DisplayName: Strong Single Region TCP ReadMyWrites -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pe2e' -# AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Tcp"' -# DESIRED_CONSISTENCY: 'Strong' -# ACCOUNT_CONSISTENCY: 'Strong' -# # 59m 58s, expect passed -# Bounded_Staleness_Single_Region_Tcp_E2E: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" -# DisplayName: Bounded Staleness Single Region TCP ReadMyWrites -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pe2e' -# AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Tcp"' -# DESIRED_CONSISTENCY: 'BoundedStaleness' -# ACCOUNT_CONSISTENCY: 'Strong' -# # 43m 53s, expect passed -# Strong_Session_Single_Region_Tcp_Direct: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" -# DisplayName: Strong Session Single Region TCP Direct -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pdirect' -# PROTOCOLS: '["Tcp"]' -# DESIRED_CONSISTENCIES: '["Strong", "Session"]' -# ACCOUNT_CONSISTENCY: 'Strong' -# # 40m 59s, expect passed -# Strong_Session_Single_Region_Tcp_NonEmulator: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" -# DisplayName: Strong Session Single Region TCP NonEmulator -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pnon-emulator' -# PROTOCOLS: '["Tcp"]' -# DESIRED_CONSISTENCIES: '["Strong", "Session"]' -# ACCOUNT_CONSISTENCY: 'Strong' -# # 45m 23s, expect passed -# Session_Multimaster_Multi_Region_Tcp_Long: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" -# DisplayName: Multimaster Multi Region Long -# OSVmImage: 'windows-2019' -# ProfileFlag: '-e -Plong' -# PROTOCOLS: '["Tcp"]' -# ACCOUNT_CONSISTENCY: 'Session' -# DESIRED_CONSISTENCIES: '["Session"]' -# PREFERRED_LOCATIONS: '["East US 2"]' -# # 15m 34s, previously failing -# Session_Multimaster_Multi_Region_Tcp_MultiMaster: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" -# DisplayName: Multimaster Multi Region Multi-Master -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pmulti-master' -# PROTOCOLS: '["Tcp"]' -# ACCOUNT_CONSISTENCY: 'Session' -# DESIRED_CONSISTENCIES: '["Session"]' -# PREFERRED_LOCATIONS: '["East US 2"]' -# # 1h 30m 43s, expect passed -# Session_Multimaster_Multi_Region_Tcp_Fast: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" -# DisplayName: Multimaster Multi Region Fast -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pfast' -# PROTOCOLS: '["Tcp"]' -# ACCOUNT_CONSISTENCY: 'Session' -# DESIRED_CONSISTENCIES: '["Session"]' -# PREFERRED_LOCATIONS: '["East US 2"]' -# # 30m 10s, expect passed -# Session_Multimaster_Multi_Region_Tcp_Direct: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" -# DisplayName: Multimaster Multi Region Direct -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pdirect' -# PROTOCOLS: '["Tcp"]' -# ACCOUNT_CONSISTENCY: 'Session' -# DESIRED_CONSISTENCIES: '["Session"]' -# PREFERRED_LOCATIONS: '["East US 2"]' -# # 35m 0s, expect passed -# Session_Multimaster_Multi_Region_Tcp_NonEmulator: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" -# DisplayName: Multimaster Multi Region NonEmulator -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pnon-emulator' -# PROTOCOLS: '["Tcp"]' -# ACCOUNT_CONSISTENCY: 'Session' -# DESIRED_CONSISTENCIES: '["Session"]' -# PREFERRED_LOCATIONS: '["East US 2"]' -# # 15m 21s, previously failing -# Session_Multimaster_Single_Region_Tcp_MultiMaster: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session' }" -# DisplayName: MultiMaster Single Region Multi-Master -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pmulti-master' -# PROTOCOLS: '["Tcp"]' -# ACCOUNT_CONSISTENCY: 'Session' -# DESIRED_CONSISTENCIES: '["Session"]' -# PREFERRED_LOCATIONS: null -# # 1h 30m 34s, expect passed -# Session_Multimaster_Single_Region_Tcp_Fast: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session' }" -# DisplayName: Multimaster Single Region Fast -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pfast' -# PROTOCOLS: '["Tcp"]' -# ACCOUNT_CONSISTENCY: 'Session' -# DESIRED_CONSISTENCIES: '["Session"]' -# PREFERRED_LOCATIONS: null -# # 45m 05s, expect passed -# Session_Multimaster_Single_Region_Tcp_Direct: -# ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session' }" -# DisplayName: Multimaster Single Region Direct -# OSVmImage: 'ubuntu-18.04' -# ProfileFlag: '-Pdirect' -# PROTOCOLS: '["Tcp"]' -# ACCOUNT_CONSISTENCY: 'Session' -# DESIRED_CONSISTENCIES: '["Session"]' -# PREFERRED_LOCATIONS: null + # 59m 59s, expect passed + Session_Http_E2E: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" + DisplayName: Https ReadMyWrites Integration Tests + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pe2e' + AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Https"' + DESIRED_CONSISTENCY: 'Session' + ACCOUNT_CONSISTENCY: 'Session' + # 59m 59s, expect passed + Session_Tcp_E2E: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" + DisplayName: TCP ReadMyWrites Integration Tests + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pe2e' + AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Tcp"' + DESIRED_CONSISTENCY: 'Session' + ACCOUNT_CONSISTENCY: 'Session' + # 36m 46s, expect passed + Session_Single_Region_Tcp_NonEmulator: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" + DisplayName: Session Single Region TCP NonEmulator + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pnon-emulator' + PROTOCOLS: '["Tcp"]' + DESIRED_CONSISTENCIES: '["Session"]' + ACCOUNT_CONSISTENCY: 'Session' + # 1h 25m 12s, expect passed + Session_Single_Region_Tcp_Fast: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" + DisplayName: Session Single Region Fast + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pfast' + PROTOCOLS: '["Tcp"]' + DESIRED_CONSISTENCIES: '["Session"]' + ACCOUNT_CONSISTENCY: 'Session' + # 41m 14s, expect passed + Session_Single_Region_Tcp_Direct: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" + DisplayName: Session Single Region Direct + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pdirect' + PROTOCOLS: '["Tcp"]' + DESIRED_CONSISTENCIES: '["Session"]' + ACCOUNT_CONSISTENCY: 'Session' + # 42m 42s, expect passed + Session_Single_Region_Tcp_Long: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Session' }" + DisplayName: Session Single Region Long + OSVmImage: 'windows-2019' + ProfileFlag: '-e -Plong' + PROTOCOLS: '["Tcp"]' + DESIRED_CONSISTENCIES: '["Session"]' + ACCOUNT_CONSISTENCY: 'Session' + # 1h 30m 32s, expect passed + Strong_Session_Single_Region_Tcp_Fast: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" + DisplayName: Strong Session Single Region TCP Fast + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pfast' + PROTOCOLS: '["Tcp"]' + DESIRED_CONSISTENCIES: '["Strong", "Session"]' + ACCOUNT_CONSISTENCY: 'Strong' + # 1h 30m 32s, expect passed + Bounded_Staleness_Single_Region_Tcp_Fast: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" + DisplayName: Bounded Staleness Single Region TCP Fast + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pfast' + PROTOCOLS: '["Tcp"]' + DESIRED_CONSISTENCIES: '["BoundedStaleness"]' + ACCOUNT_CONSISTENCY: 'Strong' + # 1h 30m 32s, expect passed + Consistent_Prefix_Single_Region_Tcp_Fast: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" + DisplayName: Consistent Prefix Single Region TCP Fast + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pfast' + PROTOCOLS: '["Tcp"]' + DESIRED_CONSISTENCIES: '["ConsistentPrefix"]' + ACCOUNT_CONSISTENCY: 'Strong' + # 59m 58s, expect passed + Strong_Single_Region_Https_E2E: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" + DisplayName: Strong Single Region Https ReadMyWrites + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pe2e' + AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Https"' + DESIRED_CONSISTENCY: 'Strong' + ACCOUNT_CONSISTENCY: 'Strong' + # 59m 58s, expect passed + Strong_Single_Region_Tcp_E2E: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" + DisplayName: Strong Single Region TCP ReadMyWrites + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pe2e' + AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Tcp"' + DESIRED_CONSISTENCY: 'Strong' + ACCOUNT_CONSISTENCY: 'Strong' + # 59m 58s, expect passed + Bounded_Staleness_Single_Region_Tcp_E2E: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" + DisplayName: Bounded Staleness Single Region TCP ReadMyWrites + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pe2e' + AdditionalArgs: '-DargLine="-Dazure.cosmos.directModeProtocol=Tcp"' + DESIRED_CONSISTENCY: 'BoundedStaleness' + ACCOUNT_CONSISTENCY: 'Strong' + # 43m 53s, expect passed + Strong_Session_Single_Region_Tcp_Direct: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" + DisplayName: Strong Session Single Region TCP Direct + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pdirect' + PROTOCOLS: '["Tcp"]' + DESIRED_CONSISTENCIES: '["Strong", "Session"]' + ACCOUNT_CONSISTENCY: 'Strong' + # 40m 59s, expect passed + Strong_Session_Single_Region_Tcp_NonEmulator: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $false; defaultConsistencyLevel = 'Strong' }" + DisplayName: Strong Session Single Region TCP NonEmulator + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pnon-emulator' + PROTOCOLS: '["Tcp"]' + DESIRED_CONSISTENCIES: '["Strong", "Session"]' + ACCOUNT_CONSISTENCY: 'Strong' + # 45m 23s, expect passed + Session_Multimaster_Multi_Region_Tcp_Long: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" + DisplayName: Multimaster Multi Region Long + OSVmImage: 'windows-2019' + ProfileFlag: '-e -Plong' + PROTOCOLS: '["Tcp"]' + ACCOUNT_CONSISTENCY: 'Session' + DESIRED_CONSISTENCIES: '["Session"]' + PREFERRED_LOCATIONS: '["East US 2"]' + # 15m 34s, previously failing + Session_Multimaster_Multi_Region_Tcp_MultiMaster: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" + DisplayName: Multimaster Multi Region Multi-Master + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pmulti-master' + PROTOCOLS: '["Tcp"]' + ACCOUNT_CONSISTENCY: 'Session' + DESIRED_CONSISTENCIES: '["Session"]' + PREFERRED_LOCATIONS: '["East US 2"]' + # 1h 30m 43s, expect passed + Session_Multimaster_Multi_Region_Tcp_Fast: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" + DisplayName: Multimaster Multi Region Fast + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pfast' + PROTOCOLS: '["Tcp"]' + ACCOUNT_CONSISTENCY: 'Session' + DESIRED_CONSISTENCIES: '["Session"]' + PREFERRED_LOCATIONS: '["East US 2"]' + # 30m 10s, expect passed + Session_Multimaster_Multi_Region_Tcp_Direct: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" + DisplayName: Multimaster Multi Region Direct + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pdirect' + PROTOCOLS: '["Tcp"]' + ACCOUNT_CONSISTENCY: 'Session' + DESIRED_CONSISTENCIES: '["Session"]' + PREFERRED_LOCATIONS: '["East US 2"]' + # 35m 0s, expect passed + Session_Multimaster_Multi_Region_Tcp_NonEmulator: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session'; enableMultipleRegions = $true}" + DisplayName: Multimaster Multi Region NonEmulator + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pnon-emulator' + PROTOCOLS: '["Tcp"]' + ACCOUNT_CONSISTENCY: 'Session' + DESIRED_CONSISTENCIES: '["Session"]' + PREFERRED_LOCATIONS: '["East US 2"]' + # 15m 21s, previously failing + Session_Multimaster_Single_Region_Tcp_MultiMaster: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session' }" + DisplayName: MultiMaster Single Region Multi-Master + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pmulti-master' + PROTOCOLS: '["Tcp"]' + ACCOUNT_CONSISTENCY: 'Session' + DESIRED_CONSISTENCIES: '["Session"]' + PREFERRED_LOCATIONS: null + # 1h 30m 34s, expect passed + Session_Multimaster_Single_Region_Tcp_Fast: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session' }" + DisplayName: Multimaster Single Region Fast + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pfast' + PROTOCOLS: '["Tcp"]' + ACCOUNT_CONSISTENCY: 'Session' + DESIRED_CONSISTENCIES: '["Session"]' + PREFERRED_LOCATIONS: null + # 45m 05s, expect passed + Session_Multimaster_Single_Region_Tcp_Direct: + ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session' }" + DisplayName: Multimaster Single Region Direct + OSVmImage: 'ubuntu-18.04' + ProfileFlag: '-Pdirect' + PROTOCOLS: '["Tcp"]' + ACCOUNT_CONSISTENCY: 'Session' + DESIRED_CONSISTENCIES: '["Session"]' + PREFERRED_LOCATIONS: null # 25m 10s, expect passed Session_Multimaster_Single_Region_Tcp_NonEmulator: ArmTemplateParameters: "@{ enableMultipleWriteLocations = $true; defaultConsistencyLevel = 'Session' }" From da7e7bb329a1cf65ca917989513b82b9b51bd847 Mon Sep 17 00:00:00 2001 From: Yi Liu Date: Fri, 3 Jul 2020 18:09:19 +0800 Subject: [PATCH 14/17] restore file generate_overview_from_readme.py --- eng/pipelines/scripts/generate_overview_from_readme.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/pipelines/scripts/generate_overview_from_readme.py b/eng/pipelines/scripts/generate_overview_from_readme.py index 5c113e78bddf..e75b3aff7519 100644 --- a/eng/pipelines/scripts/generate_overview_from_readme.py +++ b/eng/pipelines/scripts/generate_overview_from_readme.py @@ -1,10 +1,10 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. -# Use case: Given a README.md file, generate a readme_overview.html file and place it next +# Use case: Given a README.md file, generate a readme_overview.html file and place it next # to the README.md. This will allow the javadocs jar step to append the contents of the # readme onto the landing page. -# +# # This script is necessary, instead of just invoking python markdown2 directly from the # command line because the generated overview.html file needs to be enclosed inside of # tags. When the attach-javadocs runs with the overview option it will append it the contents From b4c694fd6bec8a4c30ff43b173d37ea57e5aab38 Mon Sep 17 00:00:00 2001 From: Yi Liu Date: Mon, 6 Jul 2020 13:39:59 +0800 Subject: [PATCH 15/17] clear reademe.md temparorily for pipeline --- .../azure-spring-data-cosmosdb/README.md | 313 ------------------ 1 file changed, 313 deletions(-) diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/README.md b/sdk/cosmos/azure-spring-data-cosmosdb/README.md index 24308f8bc8fa..c6e8f26a2772 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/README.md +++ b/sdk/cosmos/azure-spring-data-cosmosdb/README.md @@ -1,338 +1,25 @@ #Azure Cosmos DB client library for Java ## Getting started -[Azure Cosmos DB](https://docs.microsoft.com/azure/cosmos-db/introduction) is a globally-distributed database service that allows developers to work with data using a variety of standard APIs, such as SQL, MongoDB, Cassandra, Graph, and Table. - -**Spring Data Azure Cosmos DB** provides initial Spring Data support for Azure Cosmos DB using the [SQL API](https://docs.microsoft.com/azure/cosmos-db/sql-api-introduction), based on Spring Data framework. Currently it only supports SQL API, the other APIs are in the plan. ## TOC -* [Examples](#Examples) -* [Spring data version support](#spring-data-version-support) -* [Feature List](#feature-list) -* [Quick Start](#quick-start) -* [Query Partitioned Collection](QueryPartitionedCollection.md) -* [Snapshots](#snapshots) -* [Troubleshooting](#Troubleshooting) -* [Contributing](#Contributing) -* [Code of Conduct](#code-of-conduct) -* [Key concepts](#Key concepts) -* [Next steps](#Next steps) - ## Examples -Please refer to [sample project here](./samplecode). ## Spring Data Version Support -Version mapping between spring boot and spring-data-cosmosdb: - -| Spring boot version | spring-data-cosmosdb version | -| :----------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| -| ![version](https://img.shields.io/badge/version-2.3.x-blue) | [![Maven Central](https://img.shields.io/maven-central/v/com.microsoft.azure/spring-data-cosmosdb/2.3.svg)](https://search.maven.org/search?q=g:com.microsoft.azure%20AND%20a:spring-data-cosmosdb%20AND%20v:2.3.*) | -| ![version](https://img.shields.io/badge/version-2.2.x-blue) | [![Maven Central](https://img.shields.io/maven-central/v/com.microsoft.azure/spring-data-cosmosdb/2.2.svg)](https://search.maven.org/search?q=g:com.microsoft.azure%20AND%20a:spring-data-cosmosdb%20AND%20v:2.2.*) | -| ![version](https://img.shields.io/badge/version-2.1.x-blue) | [![Maven Central](https://img.shields.io/maven-central/v/com.microsoft.azure/spring-data-cosmosdb/2.1.svg)](https://search.maven.org/search?q=g:com.microsoft.azure%20AND%20a:spring-data-cosmosdb%20AND%20v:2.1.*) | -| ![version](https://img.shields.io/badge/version-2.0.x-blue) | [![Maven Central](https://img.shields.io/maven-central/v/com.microsoft.azure/spring-data-cosmosdb/2.0.svg)](https://search.maven.org/search?q=g:com.microsoft.azure%20AND%20a:spring-data-cosmosdb%20AND%20v:2.0.*) | ## Feature List -- Spring Data ReactiveCrudRepository CrudRepository basic CRUD functionality - - save - - findAll - - findOne by Id - - deleteAll - - delete by Id - - delete entity -- Spring Data [@Id](https://github.com/spring-projects/spring-data-commons/blob/db62390de90c93a78743c97cc2cc9ccd964994a5/src/main/java/org/springframework/data/annotation/Id.java) annotation. - There're 2 ways to map a field in domain class to `id` field of Azure Cosmos DB document. - - annotate a field in domain class with `@Id`, this field will be mapped to document `id` in Cosmos DB. - - set name of this field to `id`, this field will be mapped to document `id` in Azure Cosmos DB. -- Custom collection Name. - By default, collection name will be class name of user domain class. To customize it, add the `@Document(collection="myCustomCollectionName")` annotation to the domain class. The collection field also supports SpEL expressions (eg. `collection = "${dynamic.collection.name}"` or `collection = "#{@someBean.getContainerName()}"`) in order to provide collection names programmatically/via configuration properties. -- Custom IndexingPolicy - By default, IndexingPolicy will be set by azure service. To customize it add annotation `@DocumentIndexingPolicy` to domain class. This annotation has 4 attributes to customize, see following: -```java - boolean automatic; // Indicate if indexing policy use automatic or not - IndexingMode mode; // Indexing policy mode, option Consistent|Lazy|None. - String[] includePaths; // Included paths for indexing - String[] excludePaths; // Excluded paths for indexing -``` -- Supports Optimistic Locking for specific collections, which means upserts/deletes by document will fail with an exception in case the document was modified by another process in the meanwhile. To enable Optimistic Locking for a collection, just create a string `_etag` field and mark it with the `@Version` annotation. See the following: - -```java -@Document(collection = "myCollection") -class MyDocument { - String id; - String data; - @Version - String _etag; -} -``` -- Supports [Azure Cosmos DB partition](https://docs.microsoft.com/azure/cosmos-db/partition-data). To specify a field of domain class to be partition key field, just annotate it with `@PartitionKey`. When you do CRUD operation, pls specify your partition value. For more sample on partition CRUD, pls refer to [test here](./src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/AddressRepositoryIT.java) -- Supports [Spring Data custom query](https://docs.spring.io/spring-data/commons/docs/current/reference/html/#repositories.query-methods.details) find operation, e.g., `findByAFieldAndBField` -- Supports [Spring Data pagable and sort](https://docs.spring.io/spring-data/commons/docs/current/reference/html/#repositories.special-parameters). - - Based on available RUs on the database account, cosmosDB can return documents less than or equal to the requested size. - - Due to this variable number of returned documents in every iteration, user should not rely on the totalPageSize, and instead iterating over pageable should be done in this way. -```java - final CosmosPageRequest pageRequest = new CosmosPageRequest(0, pageSize, null); - Page page = tRepository.findAll(pageRequest); - List pageContent = page.getContent(); - while(page.hasNext()) { - Pageable nextPageable = page.nextPageable(); - page = repository.findAll(nextPageable); - pageContent = page.getContent(); - } -``` -- Supports [spring-boot-starter-data-rest](https://projects.spring.io/spring-data-rest/). -- Supports List and nested type in domain class. -- Configurable ObjectMapper bean with unique name `cosmosdbObjectMapper`, only configure customized ObjectMapper if you really need to. e.g., -```java - @Bean(name = "cosmosdbObjectMapper") - public ObjectMapper objectMapper() { - return new ObjectMapper(); // Do configuration to the ObjectMapper if required - } -``` ## Quick Start -### Add the dependency -`spring-data-cosmosdb` is published on Maven Central Repository. -If you are using Maven, add the following dependency. - -```xml - - com.microsoft.azure - spring-data-cosmosdb - 2.2.4 - -``` - -### Setup Configuration -Setup configuration class. - -CosmosKeyCredential feature provides capability to rotate keys on the fly. You can switch keys using switchToSecondaryKey(). -For more information on this, see the Sample Application code. - -### Sync and Reactive Repository support -2.2.x supports both sync and reactive repository support. - -Use `@EnableCosmosRepositories` to enable sync repository support. - -For reactive repository support, use `@EnableReactiveCosmosRepositories` - -### Response Diagnostics String and Query Metrics -2.2.x supports Response Diagnostics String and Query Metrics. -Set `populateQueryMetrics` flag to true in application.properties to enable query metrics. -In addition to setting the flag, implement `ResponseDiagnosticsProcessor` to log diagnostics information. - -```java -@Configuration -@EnableCosmosRepositories -@Slf4j -public class AppConfiguration extends AbstractCosmosConfiguration { - - @Value("${azure.cosmosdb.uri}") - private String uri; - - @Value("${azure.cosmosdb.key}") - private String key; - - @Value("${azure.cosmosdb.secondaryKey}") - private String secondaryKey; - - @Value("${azure.cosmosdb.database}") - private String dbName; - - @Value("${azure.cosmosdb.populateQueryMetrics}") - private boolean populateQueryMetrics; - - private CosmosKeyCredential cosmosKeyCredential; - - public CosmosDBConfig getConfig() { - this.cosmosKeyCredential = new CosmosKeyCredential(key); - CosmosDbConfig cosmosdbConfig = CosmosDBConfig.builder(uri, - this.cosmosKeyCredential, dbName).build(); - cosmosdbConfig.setPopulateQueryMetrics(populateQueryMetrics); - cosmosdbConfig.setResponseDiagnosticsProcessor(new ResponseDiagnosticsProcessorImplementation()); - return cosmosdbConfig; - } - - public void switchToSecondaryKey() { - this.cosmosKeyCredential.key(secondaryKey); - } - - private static class ResponseDiagnosticsProcessorImplementation implements ResponseDiagnosticsProcessor { - - @Override - public void processResponseDiagnostics(@Nullable ResponseDiagnostics responseDiagnostics) { - log.info("Response Diagnostics {}", responseDiagnostics); - } - } - -} -``` -Or if you want to customize your config: -```java -public CosmosDBConfig getConfig() { - this.cosmosKeyCredential = new CosmosKeyCredential(key); - CosmosDBConfig cosmosDbConfig = CosmosDBConfig.builder(uri, this.cosmosKeyCredential, dbName).build(); - cosmosDbConfig.getConnectionPolicy().setConnectionMode(ConnectionMode.DIRECT); - cosmosDbConfig.getConnectionPolicy().setMaxPoolSize(1000); - return cosmosDbConfig; -} -``` -By default, `@EnableCosmosRepositories` will scan the current package for any interfaces that extend one of Spring Data's repository interfaces. Using it to annotate your Configuration class to scan a different root package by type if your project layout has multiple projects and it's not finding your repositories. -```java -@Configuration -@EnableCosmosRepositories(basePackageClass=UserRepository.class) -public class AppConfiguration extends AbstractCosmosConfiguration { - // configuration code -} -``` - - -### Define an entity -Define a simple entity as Document in Azure Cosmos DB. - -You can define entities by adding the `@Document` annotation and specifying properties related to the container, such as the container name, request units (RUs), time to live, and auto-create container. - -Containers are created automatically unless you don't want them to: Set `autoCreateCollection` to false in `@Document` annotation to disable auto creation of containers. - -Note: By default request units assigned to newly created containers is 4000. Specify different ru value to customize request units for container created by the SDK (minimum RU value is 400). - -```java -@Document(collection = "myCollection", ru = "400") -public class User { - private String id; - private String firstName; - - - @PartitionKey - private String lastName; - - ... // setters and getters - - public User() { - // If you do not want to create a default constructor, - // use annotation @JsonCreator and @JsonProperty in the full args constructor - } - - public User(String id, String firstName, String lastName) { - this.id = id; - this.firstName = firstName; - this.lastName = lastName; - } - - @Override - public String toString() { - return String.format("User: %s %s, %s", firstName, lastName, id); - } -} -``` -`id` field will be used as document id in Azure Cosmos DB. If you want use another field like `emailAddress` as document `id`, just annotate that field with `@Id` annotation. - -Annotation `@Document(collection="mycollection")` is used to specify collection name in Azure Cosmos DB. -Annotation `@PartitionKey` on `lastName` field is used to specify this field be partition key in Azure Cosmos DB. - -```java -@Document(collection = "mycollection") -public class User { - @Id - private String emailAddress; - - ... -} -``` - -### Create repositories -Extends CosmosRepository interface, which provides Spring Data repository support. - -```java -import CosmosRepository; -import org.springframework.stereotype.Repository; - -@Repository -public interface UserRepository extends CosmosRepository { - List findByFirstName(String firstName); -} -``` - -`findByFirstName` method is custom query method, it will find documents per FirstName. - -### Create an Application class -Here create an application class with all the components - -```java -@SpringBootApplication -public class SampleApplication implements CommandLineRunner { - - @Autowired - private UserRepository repository; - - @Autowired - private ApplicationContext applicationContext; - - public static void main(String[] args) { - SpringApplication.run(SampleApplication.class, args); - } - - public void run(String... var1) throws Exception { - - final User testUser = new User("testId", "testFirstName", "testLastName"); - - repository.deleteAll(); - repository.save(testUser); - - // to find by Id, please specify partition key value if collection is partitioned - final User result = repository.findOne(testUser.getId(), testUser.getLastName); - // if emailAddress is mapped to id, then - // final User result = respository.findOne(testUser.getEmailAddress(), testUser.getLastName()); - - // Switch to secondary key - UserRepositoryConfiguration bean = - applicationContext.getBean(UserRepositoryConfiguration.class); - bean.switchToSecondaryKey(); - - // Now repository will use secondary key - repository.save(testUser); - - } -} -``` -Autowired UserRepository interface, then can do save, delete and find operations. Spring Data Azure Cosmos DB uses the CosmosTemplate to execute the queries behind *find*, *save* methods. You can use the template yourself for more complex queries. - ## Snapshots -[![Nexus OSS](https://img.shields.io/nexus/snapshots/https/oss.sonatype.org/com.microsoft.azure/spring-data-cosmosdb.svg)](https://oss.sonatype.org/content/repositories/snapshots/com/microsoft/azure/spring-data-cosmosdb/) - -Snapshots built from `master` branch are available, add [maven repositories](https://maven.apache.org/settings.html#Repositories) configuration to your pom file as below. -```xml - - - nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots/ - - true - always - - - -``` ## Troubleshooting -If you encounter any bug, please file an issue [here](https://github.com/Microsoft/spring-data-cosmosdb/issues/new). - -To suggest a new feature or changes that could be made, file an issue the same way you would for a bug. - ## Contributing -Contribution is welcome. Please follow [this instruction](https://github.com/Azure/azure-sdk-for-java/blob/master/CONTRIBUTING.md) to contribute code. - ## Code of Conduct -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. - -### Data/Telemetry - - This project collects usage data and sends it to Microsoft to help improve our products and services. Read our [privacy](https://privacy.microsoft.com/privacystatement) statement to learn more. - ## Key concepts ## Next steps From 40a3e2ad0c75b158c7f36cefa712372f7f2dcdba Mon Sep 17 00:00:00 2001 From: Yi Liu Date: Mon, 6 Jul 2020 15:11:40 +0800 Subject: [PATCH 16/17] add Contributing.md --- .../Contributing.md | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 sdk/cosmos/azure-spring-data-cosmosdb/Contributing.md diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/Contributing.md b/sdk/cosmos/azure-spring-data-cosmosdb/Contributing.md new file mode 100644 index 000000000000..8b047485aec2 --- /dev/null +++ b/sdk/cosmos/azure-spring-data-cosmosdb/Contributing.md @@ -0,0 +1,62 @@ +# Contributing +This instruction is guideline for building and code contribution. + +## Prequisites +- JDK 1.8 and above +- [Maven](http://maven.apache.org/) 3.0 and above + +## Build from source +To build the project, run maven commands. + +```bash +git clone https://github.com/Azure/azure-sdk-for-java.git +cd sdk/cosmos/azure-spring-data-cosmosdb +mvnw clean install +``` + +## Test +There're integration tests on azure and on emulator to trigger integration test execution against Azure Cosmos DB and against [Azure Cosmos DB Emulator](https://docs.microsoft.com/azure/cosmos-db/local-emulator), you need to follow the link to setup emulator before test execution. + +- Run unit tests +```bash +mvnw clean install +``` + +- Run integration tests + - on Azure + >**NOTE** Please note that integration test against Azure requires Azure Cosmos DB Document API and will automatically create a Cosmos database in your Azure subscription, then there will be **Azure usage fee.** + + Integration tests will require a Azure Subscription. If you don't already have an Azure subscription, you can activate your [MSDN subscriber benefits](https://azure.microsoft.com/pricing/member-offers/msdn-benefits-details/) or sign up for a [free Azure account](https://azure.microsoft.com/free/). + + 1. Create an Azure Cosmos DB on Azure. + - Go to [Azure portal](https://portal.azure.com/) and click +New. + - Click Databases, and then click Azure Cosmos DB to create your database. + - Navigate to the database you have created, and click Access keys and copy your URI and access keys for your database. + + 2. Set environment variables ACCOUNT_HOST, ACCOUNT_KEY and SECONDARY_ACCOUNT_KEY, where value of them are Cosmos account URI, primary key and secondary key. + 3. Run maven command with `integration-test-azure` profile. + + ```bash + set ACCOUNT_HOST=your-cosmos-account-uri + set ACCOUNT_KEY=your-cosmos-account-primary-key + set SECONDARY_ACCOUNT_KEY=your-cosmos-account-secondary-key + mvnw -P integration-test-azure clean install + ``` + - on Emulator + + Setup Azure Cosmos DB Emulator by following [this instruction](https://docs.microsoft.com/azure/cosmos-db/local-emulator), and set associated environment variables. Then run test with: + ```bash + mvnw -P integration-test-emulator install + ``` + + +- Skip tests execution +```bash +mvnw clean install -DskipTests +``` + +## Version management +Developing version naming convention is like `0.1.2-SNAPSHOT`. Release version naming convention is like `0.1.2`. + +## Contribute to code +Contribution is welcome. Please follow [this instruction](https://github.com/Azure/azure-sdk-for-java/blob/master/CONTRIBUTING.md) to contribute code. From a952b45fe9d50bd332493a415ca905fe0bbcee3b Mon Sep 17 00:00:00 2001 From: Yi Liu Date: Tue, 7 Jul 2020 09:33:42 +0800 Subject: [PATCH 17/17] modify version declaration in contributing.md --- sdk/cosmos/azure-spring-data-cosmosdb/Contributing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/cosmos/azure-spring-data-cosmosdb/Contributing.md b/sdk/cosmos/azure-spring-data-cosmosdb/Contributing.md index 8b047485aec2..b22da7d47c96 100644 --- a/sdk/cosmos/azure-spring-data-cosmosdb/Contributing.md +++ b/sdk/cosmos/azure-spring-data-cosmosdb/Contributing.md @@ -56,7 +56,7 @@ mvnw clean install -DskipTests ``` ## Version management -Developing version naming convention is like `0.1.2-SNAPSHOT`. Release version naming convention is like `0.1.2`. +Developing version naming convention is like `0.1.2-beta.1`. Release version naming convention is like `0.1.2`. ## Contribute to code Contribution is welcome. Please follow [this instruction](https://github.com/Azure/azure-sdk-for-java/blob/master/CONTRIBUTING.md) to contribute code.