From 47c6278bbe59e211bb654cf3cb4ea8fddac1846e Mon Sep 17 00:00:00 2001 From: Trevor Anderson <63077034+trande4884@users.noreply.github.com> Date: Tue, 9 May 2023 01:14:09 -0400 Subject: [PATCH] Migrating spring data cosmos from sdk/cosmos to sdk/spring (#33905) * Moving the azure-spring-data-cosmos and azure-spring-data-cosmos-test directories from sdk/cosmos to sdk/spring * Updating the azure-spring-data-cosmos-test pom file. * Updating the azure-spring-data-cosmos pom file. * Updating the changelog. * Making changes for PR. * Making changes for PR. * Update cspell to ignore these directories still. * Fixing paths to sdk/spring from sdk/cosmos. * Fixing more paths. * Fixing more paths. * Switching azure-spring-data-cosmos to use the dependency versoin of azure-cosmos and not the current version. * Fixing dependency. * Moving azure-spring-data-cosmos to the sdk/spring ci. * Updating CI pipelines to run correctly for the migration. 'java - cosmos - ci' had spring removed from it and put in it's own pipeline to accomdate the change, this new pipeline is 'java - cosmos - spring -ci' * Fixing tests. * Removing un-used dependency. * Resolving issue from merge conflict. * Fixing spring integration tests * Fixing spring integration tests. * Removing duplicate from POM. --- .vscode/cspell.json | 4 +- sdk/cosmos/README.md | 2 +- .../azure-cosmos-spark_3-1_2-12/README.md | 2 +- .../azure-cosmos-spark_3-2_2-12/README.md | 2 +- .../azure-cosmos-spark_3-3_2-12/README.md | 2 +- .../repository/TestRepositorySpELConfig.java | 31 ---- sdk/cosmos/ci.spring.yml | 81 ++++++++++ sdk/cosmos/ci.yml | 29 +--- sdk/cosmos/pom.xml | 2 - sdk/cosmos/tests.yml | 4 +- sdk/spring/CHANGELOG.md | 3 + .../CHANGELOG.md | 0 .../azure-spring-data-cosmos-test/README.md | 0 .../azure-spring-data-cosmos-test/pom.xml | 2 +- ...tractIntegrationTestCollectionManager.java | 0 .../spring/data/cosmos/ContainerLock.java | 0 .../spring/data/cosmos/ContainerLockIT.java | 1 - .../data/cosmos/CosmosFactoryTestIT.java | 1 - .../IntegrationTestCollectionManager.java | 0 ...ctiveIntegrationTestCollectionManager.java | 0 .../data/cosmos/common/DynamicContainer.java | 0 .../data/cosmos/common/PageTestUtils.java | 0 .../common/ResponseDiagnosticsTestUtils.java | 0 .../data/cosmos/common/TestConstants.java | 2 - .../spring/data/cosmos/common/TestUtils.java | 0 .../config/AbstractCosmosConfigurationIT.java | 0 .../data/cosmos/core/CosmosTemplateIT.java | 1 - .../core/CosmosTemplatePartitionIT.java | 0 .../MultiTenantContainerCosmosFactory.java | 0 .../MultiTenantContainerCosmosFactoryIT.java | 0 .../core/MultiTenantDBCosmosFactory.java | 0 .../core/MultiTenantDBCosmosFactoryIT.java | 0 .../cosmos/core/ReactiveCosmosTemplateIT.java | 0 .../ReactiveCosmosTemplatePartitionIT.java | 0 ...veMultiTenantContainerCosmosFactoryIT.java | 0 .../ReactiveMultiTenantDBCosmosFactoryIT.java | 0 .../event/ApplicationContextEventErrorIT.java | 0 ...pplicationContextEventErrorReactiveIT.java | 1 - .../event/ApplicationContextEventIT.java | 0 .../ApplicationContextEventReactiveIT.java | 0 .../event/ErrorEventListenerConfig.java | 0 .../SimpleCosmosMappingEventListener.java | 0 .../event/ThrowErrorEventListener.java | 0 .../spring/data/cosmos/domain/Address.java | 0 .../data/cosmos/domain/AuditableEntity.java | 0 .../domain/AuditableIdGeneratedEntity.java | 0 .../data/cosmos/domain/AutoScaleSample.java | 0 .../domain/ComplexIndexPolicyEntity.java | 0 .../cosmos/domain/CompositeIndexEntity.java | 0 .../spring/data/cosmos/domain/Contact.java | 0 .../spring/data/cosmos/domain/Course.java | 0 .../data/cosmos/domain/CourseWithEtag.java | 0 .../spring/data/cosmos/domain/Customer.java | 0 .../data/cosmos/domain/GenIdEntity.java | 0 .../spring/data/cosmos/domain/Importance.java | 0 .../data/cosmos/domain/IndexPolicyEntity.java | 0 .../domain/IndexPolicyOverwriteEntity.java | 0 .../data/cosmos/domain/IntegerIdDomain.java | 0 .../data/cosmos/domain/LongIdDomain.java | 0 .../cosmos/domain/LongIdDomainPartition.java | 0 .../azure/spring/data/cosmos/domain/Memo.java | 0 .../data/cosmos/domain/NestedEntity.java | 0 .../domain/NestedPartitionKeyEntity.java | 0 ...dPartitionKeyEntityWithGeneratedValue.java | 0 .../data/cosmos/domain/PageableMemo.java | 0 .../data/cosmos/domain/PageablePerson.java | 0 .../data/cosmos/domain/PartitionPerson.java | 0 .../data/cosmos/domain/PersistableEntity.java | 0 .../spring/data/cosmos/domain/Person.java | 1 - .../cosmos/domain/PersonCrossPartition.java | 0 .../data/cosmos/domain/PersonWithEtag.java | 0 .../spring/data/cosmos/domain/Project.java | 0 .../spring/data/cosmos/domain/Question.java | 0 .../data/cosmos/domain/ReactiveTeacher.java | 0 .../azure/spring/data/cosmos/domain/Role.java | 0 .../data/cosmos/domain/SortedProject.java | 0 .../data/cosmos/domain/SpELBeanStudent.java | 0 .../cosmos/domain/SpELPropertyStudent.java | 0 .../spring/data/cosmos/domain/Student.java | 0 .../spring/data/cosmos/domain/Teacher.java | 0 .../data/cosmos/domain/TimeToLiveSample.java | 0 .../data/cosmos/domain/UUIDIdDomain.java | 0 .../cosmos/domain/UniqueKeyPolicyEntity.java | 0 .../data/cosmos/domain/inheritance/Shape.java | 0 .../cosmos/domain/inheritance/Square.java | 0 .../repository/MultiCosmosTemplateIT.java | 0 .../MultiTenantTestRepositoryConfig.java | 0 .../ReactiveUUIDIdDomainRepositoryIT.java | 0 .../SecondaryTestRepositoryConfig.java | 0 .../repository/StubAuditorProvider.java | 0 .../repository/StubDateTimeProvider.java | 0 .../repository/TestRepositoryConfig.java | 0 .../repository/TestRepositorySpELConfig.java | 18 +++ .../integration/AddressRepositoryIT.java | 0 .../integration/AnnotatedQueryIT.java | 0 .../repository/integration/AuditableIT.java | 0 .../integration/CompositeIndexIT.java | 0 .../integration/ContactRepositoryIT.java | 1 - .../integration/CosmosAnnotationIT.java | 0 .../repository/integration/CountIT.java | 0 .../integration/CustomerRepositoryIT.java | 0 .../cosmos/repository/integration/EtagIT.java | 0 .../integration/IndexPolicyUpdateIT.java | 0 .../IntegerIdDomainRepositoryIT.java | 0 .../integration/LongIdDomainRepositoryIT.java | 0 .../integration/MemoRepositoryIT.java | 0 .../NestedPartitionKeyRepositoryIT.java | 0 .../PageableAddressRepositoryIT.java | 0 .../integration/PageableMemoRepositoryIT.java | 0 .../PageablePersonRepositoryIT.java | 0 .../repository/integration/PersistableIT.java | 0 .../integration/PersonCrossPartitionIT.java | 0 .../integration/ProjectRepositoryIT.java | 0 .../integration/ProjectRepositorySortIT.java | 0 .../integration/QuestionRepositoryIT.java | 0 .../integration/ReactiveAuditableIT.java | 0 .../ReactiveCourseRepositoryIT.java | 0 .../integration/ReactiveEtagIT.java | 0 .../ReactiveIndexPolicyUpdateIT.java | 0 ...dDomainPartitionPartitionRepositoryIT.java | 0 ...eactiveNestedPartitionKeyRepositoryIT.java | 0 .../integration/ReactiveRoleRepositoryIT.java | 0 .../ReactiveTeacherRepositoryIT.java | 0 .../integration/SpELCosmosAnnotationIT.java | 0 .../integration/SquareRepositoryIT.java | 0 .../integration/StudentRepositoryIT.java | 0 .../integration/TeacherRepositoryIT.java | 0 .../integration/UUIDIdDomainRepositoryIT.java | 0 .../integration/UniqueKeyPolicyIT.java | 0 .../repository/AddressRepository.java | 0 .../AuditableIdGeneratedRepository.java | 0 .../repository/AuditableRepository.java | 0 .../repository/ContactRepository.java | 0 .../repository/CustomerRepository.java | 0 .../repository/IntegerIdDomainRepository.java | 0 .../repository/LongIdDomainRepository.java | 0 .../repository/repository/MemoRepository.java | 0 .../NestedPartitionKeyRepository.java | 0 .../repository/PageableAddressRepository.java | 0 .../repository/PageableMemoRepository.java | 0 .../repository/PageablePersonRepository.java | 0 .../PersistableEntityRepository.java | 0 .../repository/PersonWithEtagRepository.java | 0 .../repository/ProjectRepository.java | 0 .../repository/QuestionRepository.java | 0 .../repository/ReactiveAddressRepository.java | 0 ...eactiveAuditableIdGeneratedRepository.java | 0 .../ReactiveAuditableRepository.java | 0 .../repository/ReactiveCourseRepository.java | 0 .../ReactiveCourseWithEtagRepository.java | 0 ...activeLongIdDomainPartitionRepository.java | 0 .../ReactiveNestedPartitionKeyRepository.java | 0 .../ReactivePersistableEntityRepository.java | 0 .../repository/ReactiveRoleRepository.java | 0 .../repository/ReactiveTeacherRepository.java | 0 .../ReactiveUUIDIdDomainRepository.java | 0 .../repository/SortedProjectRepository.java | 0 .../repository/SquareRepository.java | 0 .../repository/StudentRepository.java | 0 .../repository/TeacherRepository.java | 0 .../repository/UUIDIdDomainRepository.java | 0 .../UniqueKeyPolicyEntityRepository.java | 0 .../src/test/resources/application.properties | 12 +- .../src/test/resources/application.yml | 0 .../src/test/resources/logback-test.xml | 0 .../azure-spring-data-cosmos/CHANGELOG.md | 1 + .../azure-spring-data-cosmos/CONTRIBUTING.md | 2 +- .../azure-spring-data-cosmos/README.md | 8 +- .../azure-spring-data-cosmos/pom.xml | 4 +- .../azure/spring/data/cosmos/Constants.java | 0 .../spring/data/cosmos/CosmosFactory.java | 0 .../data/cosmos/common/CosmosUtils.java | 0 .../cosmos/common/ExpressionResolver.java | 0 .../spring/data/cosmos/common/MacAddress.java | 0 .../spring/data/cosmos/common/Memoizer.java | 0 .../data/cosmos/common/PropertyLoader.java | 0 .../data/cosmos/common/package-info.java | 0 .../config/AbstractCosmosConfiguration.java | 0 .../data/cosmos/config/CosmosConfig.java | 0 .../config/CosmosConfigurationSupport.java | 0 .../config/DatabaseThroughputConfig.java | 0 .../data/cosmos/config/package-info.java | 0 .../data/cosmos/core/CosmosOperations.java | 0 .../data/cosmos/core/CosmosTemplate.java | 0 .../cosmos/core/ReactiveCosmosOperations.java | 0 .../cosmos/core/ReactiveCosmosTemplate.java | 0 .../data/cosmos/core/ResponseDiagnostics.java | 0 .../core/ResponseDiagnosticsProcessor.java | 0 .../core/convert/MappingCosmosConverter.java | 0 .../core/convert/ObjectMapperFactory.java | 0 .../cosmos/core/convert/package-info.java | 0 .../generator/AbstractQueryGenerator.java | 0 .../core/generator/CountQueryGenerator.java | 0 .../generator/FindQuerySpecGenerator.java | 0 .../core/generator/NativeQueryGenerator.java | 0 .../core/generator/QuerySpecGenerator.java | 0 .../cosmos/core/generator/package-info.java | 0 .../mapping/BasicCosmosPersistentEntity.java | 0 .../BasicCosmosPersistentProperty.java | 0 .../cosmos/core/mapping/CompositeIndex.java | 0 .../core/mapping/CompositeIndexPath.java | 0 .../data/cosmos/core/mapping/Container.java | 0 .../core/mapping/CosmosAuditingRegistrar.java | 0 .../core/mapping/CosmosIndexingPolicy.java | 0 .../core/mapping/CosmosMappingContext.java | 0 .../core/mapping/CosmosPersistentEntity.java | 0 .../mapping/CosmosPersistentProperty.java | 0 .../core/mapping/CosmosSimpleTypes.java | 0 .../cosmos/core/mapping/CosmosUniqueKey.java | 0 .../core/mapping/CosmosUniqueKeyPolicy.java | 0 .../core/mapping/EnableCosmosAuditing.java | 0 .../cosmos/core/mapping/GeneratedValue.java | 0 .../cosmos/core/mapping/PartitionKey.java | 0 .../event/AbstractCosmosEventListener.java | 0 .../core/mapping/event/AfterLoadEvent.java | 0 .../mapping/event/CosmosMappingEvent.java | 0 .../core/mapping/event/package-info.java | 0 .../cosmos/core/mapping/package-info.java | 0 .../spring/data/cosmos/core/package-info.java | 0 .../cosmos/core/query/CosmosPageImpl.java | 0 .../cosmos/core/query/CosmosPageRequest.java | 0 .../data/cosmos/core/query/CosmosQuery.java | 0 .../cosmos/core/query/CosmosSliceImpl.java | 0 .../data/cosmos/core/query/Criteria.java | 0 .../data/cosmos/core/query/CriteriaType.java | 0 .../data/cosmos/core/query/package-info.java | 0 .../exception/ConfigurationException.java | 0 .../exception/CosmosAccessException.java | 0 .../exception/CosmosExceptionUtils.java | 0 .../exception/DatabaseCreationException.java | 0 .../exception/IllegalCollectionException.java | 0 .../exception/IllegalQueryException.java | 0 .../data/cosmos/exception/package-info.java | 0 .../spring/data/cosmos/package-info.java | 0 .../cosmos/repository/CosmosRepository.java | 0 .../spring/data/cosmos/repository/Query.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 .../data/cosmos/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 .../cosmos/repository/query/package-info.java | 0 .../support/CosmosEntityInformation.java | 0 .../support/CosmosRepositoryFactory.java | 0 .../support/CosmosRepositoryFactoryBean.java | 0 .../support/IndexPolicyCompareService.java | 0 .../ReactiveCosmosRepositoryFactory.java | 0 .../ReactiveCosmosRepositoryFactoryBean.java | 0 .../support/SimpleCosmosRepository.java | 0 .../SimpleReactiveCosmosRepository.java | 0 .../support/StringBasedCosmosQuery.java | 0 .../StringBasedReactiveCosmosQuery.java | 0 .../repository/support/package-info.java | 0 .../src/main/java/module-info.java | 0 .../azure-spring-data-cosmos.properties | 0 .../main/resources/META-INF/spring.factories | 0 ...riesUserReactiveRepositoryCodeSnippet.java | 0 ...tatedQueriesUserRepositoryCodeSnippet.java | 0 .../spring/data/cosmos/AppConfiguration.java | 0 .../cosmos/AppConfigurationCodeSnippet.java | 0 .../spring/data/cosmos/AuditableUser.java | 0 .../CosmosIndexingPolicyCodeSnippet.java | 0 .../spring/data/cosmos/CosmosProperties.java | 0 .../CosmosUniqueKeyPolicyCodeSnippet.java | 0 .../spring/data/cosmos/GeneratedIdEntity.java | 0 .../cosmos/MultiTenantDBCosmosFactory.java | 0 .../com/azure/spring/data/cosmos/MyItem.java | 0 .../data/cosmos/NestedEntitySample.java | 0 .../NestedPartitionKeyEntitySample.java | 0 .../ObjectMapperConfigurationCodeSnippet.java | 0 .../cosmos/PageableRepositoryCodeSnippet.java | 0 .../spring/data/cosmos/SampleApplication.java | 0 .../cosmos/SliceQueriesUserRepository.java | 0 .../cosmos/SliceRepositoryCodeSnippet.java | 0 .../com/azure/spring/data/cosmos/User.java | 0 .../spring/data/cosmos/UserRepository.java | 0 .../cosmos/UserRepositoryConfiguration.java | 0 .../azure/spring/data/cosmos/UserSample.java | 0 .../common/ExpressionResolverUnitTest.java | 0 .../data/cosmos/common/MemoizerUnitTest.java | 0 .../cosmos/common/PropertyLoaderUnitTest.java | 0 .../data/cosmos/common/TestConstants.java | 0 .../cosmos/core/CosmosFactoryUnitTest.java | 0 .../core/CosmosTemplateIllegalTest.java | 0 .../cosmos/core/CosmosTemplateUnitTest.java | 0 .../ZonedDateTimeDeserializerTest.java | 0 .../MappingCosmosConverterUnitTest.java | 0 .../generator/AbstractQueryGeneratorTest.java | 0 .../generator/NativeQueryGeneratorTest.java | 0 .../BasicCosmosPersistentEntityUnitTest.java | 0 .../mapping/CosmosMappingContextUnitTest.java | 0 .../event/CosmosEventListenerUnitTests.java | 0 .../core/query/CosmosQueryUnitTest.java | 0 .../cosmos/core/query/CriteriaUnitTest.java | 0 .../spring/data/cosmos/domain/Address.java | 0 .../spring/data/cosmos/domain/IPerson.java | 0 .../spring/data/cosmos/domain/Importance.java | 0 .../data/cosmos/domain/LongIdDomain.java | 0 .../azure/spring/data/cosmos/domain/Memo.java | 0 .../cosmos/domain/NoDBAnnotationPerson.java | 0 .../spring/data/cosmos/domain/Person.java | 0 .../data/cosmos/domain/PersonWithEtag.java | 0 .../azure/spring/data/cosmos/domain/Role.java | 0 .../spring/data/cosmos/domain/Student.java | 0 .../data/cosmos/domain/TimeToLiveSample.java | 0 .../data/cosmos/domain/UUIDIdDomain.java | 0 .../repository/CosmosAnnotationUnitTest.java | 0 .../SimpleCosmosRepositoryIllegalTest.java | 0 .../SimpleCosmosRepositoryUnitTest.java | 0 ...ositoryConfigurationExtensionUnitTest.java | 0 ...ositoryConfigurationExtensionUnitTest.java | 0 .../query/AbstractCosmosQueryUnitTest.java | 0 .../AbstractReactiveCosmosQueryUnitTest.java | 0 .../repository/PersonRepository.java | 0 .../CosmosEntityInformationUnitTest.java | 0 .../CosmosRepositoryFactoryBeanUnitTest.java | 0 .../CosmosRepositoryFactoryUnitTest.java | 0 .../src/test/resources/application.properties | 12 +- sdk/spring/ci.yml | 11 ++ .../cosmos-integration-matrix.json} | 0 sdk/spring/pom.xml | 4 + .../cosmos-spring/test-resources.json | 146 ++++++++++++++++++ sdk/spring/tests.yml | 1 + 347 files changed, 297 insertions(+), 94 deletions(-) delete mode 100644 sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/TestRepositorySpELConfig.java create mode 100644 sdk/cosmos/ci.spring.yml rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/CHANGELOG.md (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/README.md (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/pom.xml (99%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/AbstractIntegrationTestCollectionManager.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/ContainerLock.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/ContainerLockIT.java (99%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/CosmosFactoryTestIT.java (98%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/IntegrationTestCollectionManager.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/ReactiveIntegrationTestCollectionManager.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/DynamicContainer.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/PageTestUtils.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/ResponseDiagnosticsTestUtils.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/TestConstants.java (98%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/TestUtils.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/config/AbstractCosmosConfigurationIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateIT.java (99%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplatePartitionIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantContainerCosmosFactory.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantContainerCosmosFactoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantDBCosmosFactory.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantDBCosmosFactoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveCosmosTemplateIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveCosmosTemplatePartitionIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveMultiTenantContainerCosmosFactoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveMultiTenantDBCosmosFactoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventErrorIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventErrorReactiveIT.java (96%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventReactiveIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ErrorEventListenerConfig.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/SimpleCosmosMappingEventListener.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ThrowErrorEventListener.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Address.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/AuditableEntity.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/AuditableIdGeneratedEntity.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/AutoScaleSample.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/ComplexIndexPolicyEntity.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/CompositeIndexEntity.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Contact.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Course.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/CourseWithEtag.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Customer.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/GenIdEntity.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Importance.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/IndexPolicyEntity.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/IndexPolicyOverwriteEntity.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/IntegerIdDomain.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/LongIdDomain.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/LongIdDomainPartition.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Memo.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/NestedEntity.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/NestedPartitionKeyEntity.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/NestedPartitionKeyEntityWithGeneratedValue.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PageableMemo.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PageablePerson.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PartitionPerson.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PersistableEntity.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Person.java (98%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PersonCrossPartition.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PersonWithEtag.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Project.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Question.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/ReactiveTeacher.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Role.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/SortedProject.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/SpELBeanStudent.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/SpELPropertyStudent.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Student.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Teacher.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/TimeToLiveSample.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/UUIDIdDomain.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/UniqueKeyPolicyEntity.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/inheritance/Shape.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/inheritance/Square.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/MultiCosmosTemplateIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/MultiTenantTestRepositoryConfig.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/ReactiveUUIDIdDomainRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/SecondaryTestRepositoryConfig.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/StubAuditorProvider.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/StubDateTimeProvider.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/TestRepositoryConfig.java (100%) create mode 100644 sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/TestRepositorySpELConfig.java rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AddressRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AnnotatedQueryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AuditableIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CompositeIndexIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ContactRepositoryIT.java (99%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CosmosAnnotationIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CountIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CustomerRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/EtagIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/IndexPolicyUpdateIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/IntegerIdDomainRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/LongIdDomainRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/MemoRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/NestedPartitionKeyRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PageableAddressRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PageableMemoRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PageablePersonRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PersistableIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PersonCrossPartitionIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ProjectRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ProjectRepositorySortIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/QuestionRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveAuditableIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveCourseRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveEtagIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveIndexPolicyUpdateIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveLongIdDomainPartitionPartitionRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveNestedPartitionKeyRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveRoleRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveTeacherRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/SpELCosmosAnnotationIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/SquareRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/StudentRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/TeacherRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/UUIDIdDomainRepositoryIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/UniqueKeyPolicyIT.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/AddressRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/AuditableIdGeneratedRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/AuditableRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ContactRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/CustomerRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/IntegerIdDomainRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/LongIdDomainRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/MemoRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/NestedPartitionKeyRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PageableAddressRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PageableMemoRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PageablePersonRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PersistableEntityRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PersonWithEtagRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ProjectRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/QuestionRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveAddressRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveAuditableIdGeneratedRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveAuditableRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveCourseRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveCourseWithEtagRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveLongIdDomainPartitionRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveNestedPartitionKeyRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactivePersistableEntityRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveRoleRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveTeacherRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveUUIDIdDomainRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/SortedProjectRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/SquareRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/StudentRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/TeacherRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/UUIDIdDomainRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/UniqueKeyPolicyEntityRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/resources/application.properties (67%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/resources/application.yml (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos-test/src/test/resources/logback-test.xml (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/CHANGELOG.md (98%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/CONTRIBUTING.md (98%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/README.md (99%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/pom.xml (98%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/Constants.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/CosmosFactory.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/CosmosUtils.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/ExpressionResolver.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/MacAddress.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/Memoizer.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/PropertyLoader.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/package-info.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/AbstractCosmosConfiguration.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/CosmosConfig.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/CosmosConfigurationSupport.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/DatabaseThroughputConfig.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/package-info.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/CosmosOperations.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/CosmosTemplate.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ReactiveCosmosOperations.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ReactiveCosmosTemplate.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ResponseDiagnostics.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ResponseDiagnosticsProcessor.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/convert/MappingCosmosConverter.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/convert/ObjectMapperFactory.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/convert/package-info.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/AbstractQueryGenerator.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/CountQueryGenerator.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/FindQuerySpecGenerator.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/NativeQueryGenerator.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/QuerySpecGenerator.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/package-info.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/BasicCosmosPersistentEntity.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/BasicCosmosPersistentProperty.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CompositeIndex.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CompositeIndexPath.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/Container.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosAuditingRegistrar.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosIndexingPolicy.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosMappingContext.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosPersistentEntity.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosPersistentProperty.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosSimpleTypes.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosUniqueKey.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosUniqueKeyPolicy.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/EnableCosmosAuditing.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/GeneratedValue.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/PartitionKey.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/AbstractCosmosEventListener.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/AfterLoadEvent.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/CosmosMappingEvent.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/package-info.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/package-info.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/package-info.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosPageImpl.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosPageRequest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosQuery.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosSliceImpl.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/Criteria.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CriteriaType.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/package-info.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/ConfigurationException.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/CosmosAccessException.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/CosmosExceptionUtils.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/DatabaseCreationException.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/IllegalCollectionException.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/IllegalQueryException.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/package-info.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/package-info.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/CosmosRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/Query.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/ReactiveCosmosRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/CosmosRepositoriesRegistrar.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/CosmosRepositoryConfigurationExtension.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/EnableCosmosRepositories.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/EnableReactiveCosmosRepositories.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/ReactiveCosmosRepositoriesRegistrar.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/ReactiveCosmosRepositoryConfigurationExtension.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/package-info.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/package-info.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/AbstractCosmosQuery.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/AbstractReactiveCosmosQuery.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosEntityMetadata.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameter.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameterAccessor.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameterParameterAccessor.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameters.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryCreator.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryExecution.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryMethod.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/PartTreeCosmosQuery.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/PartTreeReactiveCosmosQuery.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosEntityMetadata.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosParameterAccessor.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosParameterParameterAccessor.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosQueryCreator.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosQueryExecution.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosQueryMethod.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/SimpleCosmosEntityMetadata.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/SimpleReactiveCosmosEntityMetadata.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/package-info.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/CosmosEntityInformation.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactory.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactoryBean.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/IndexPolicyCompareService.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/ReactiveCosmosRepositoryFactory.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/ReactiveCosmosRepositoryFactoryBean.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/SimpleCosmosRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/SimpleReactiveCosmosRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/StringBasedCosmosQuery.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/StringBasedReactiveCosmosQuery.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/package-info.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/java/module-info.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/resources/META-INF/azure-spring-data-cosmos.properties (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/main/resources/META-INF/spring.factories (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AnnotatedQueriesUserReactiveRepositoryCodeSnippet.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AnnotatedQueriesUserRepositoryCodeSnippet.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AppConfiguration.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AppConfigurationCodeSnippet.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AuditableUser.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/CosmosIndexingPolicyCodeSnippet.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/CosmosProperties.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/CosmosUniqueKeyPolicyCodeSnippet.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/GeneratedIdEntity.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/MultiTenantDBCosmosFactory.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/MyItem.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/NestedEntitySample.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/NestedPartitionKeyEntitySample.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/ObjectMapperConfigurationCodeSnippet.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/PageableRepositoryCodeSnippet.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/SampleApplication.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/SliceQueriesUserRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/SliceRepositoryCodeSnippet.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/User.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/UserRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/UserRepositoryConfiguration.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/UserSample.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/ExpressionResolverUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/MemoizerUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/PropertyLoaderUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/TestConstants.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/CosmosFactoryUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateIllegalTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/convert/ZonedDateTimeDeserializerTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/converter/MappingCosmosConverterUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/generator/AbstractQueryGeneratorTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/generator/NativeQueryGeneratorTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/mapping/BasicCosmosPersistentEntityUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/mapping/CosmosMappingContextUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/CosmosEventListenerUnitTests.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/query/CosmosQueryUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/query/CriteriaUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Address.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/IPerson.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Importance.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/LongIdDomain.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Memo.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/NoDBAnnotationPerson.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Person.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/PersonWithEtag.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Role.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Student.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/TimeToLiveSample.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/UUIDIdDomain.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/CosmosAnnotationUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/SimpleCosmosRepositoryIllegalTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/SimpleCosmosRepositoryUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/config/CosmosRepositoryConfigurationExtensionUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/config/ReactiveCosmosRepositoryConfigurationExtensionUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/query/AbstractCosmosQueryUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/query/AbstractReactiveCosmosQueryUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/repository/PersonRepository.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/support/CosmosEntityInformationUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactoryBeanUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactoryUnitTest.java (100%) rename sdk/{cosmos => spring}/azure-spring-data-cosmos/src/test/resources/application.properties (67%) rename sdk/{cosmos/integration-matrix.json => spring/cosmos-integration-matrix.json} (100%) create mode 100644 sdk/spring/spring-cloud-azure-integration-tests/test-resources/cosmos-spring/test-resources.json diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 71a8f25dea870..5f57eeec94ef5 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -132,9 +132,9 @@ "sdk/cosmos/azure-cosmos-spark_3-3_2-12/**", "sdk/core/azure-core-test/**", "sdk/cosmos/azure-cosmos-encryption/**", - "sdk/cosmos/azure-spring-data-cosmos-test/**", + "sdk/spring/azure-spring-data-cosmos-test/**", "sdk/cosmos/azure-cosmos-spark_3_2-12/**", - "sdk/cosmos/azure-spring-data-cosmos/**", + "sdk/spring/azure-spring-data-cosmos/**", "sdk/core/azure-json/**", "sdk/deviceupdate/azure-iot-deviceupdate/**", "sdk/e2e/src/**", diff --git a/sdk/cosmos/README.md b/sdk/cosmos/README.md index 7f8831d80f04c..41a9d627d2c0c 100644 --- a/sdk/cosmos/README.md +++ b/sdk/cosmos/README.md @@ -9,7 +9,7 @@ This project provides SDK library in Java for interacting with [SQL API][sql_api To get started with a specific library, see the **README.md** file located in the library's project folder. You can find service libraries in the `/sdk/cosmos/` directory. - [Azure Cosmos](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/cosmos/azure-cosmos/README.md) is Microsoft's Azure Cosmos DB Java SDK which provides client-side logical representation to access the Azure Cosmos DB SQL API. The SDK provides Reactor Core based async APIs. -- [Azure Spring Data Cosmos](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/cosmos/azure-spring-data-cosmos/README.md) provides Spring Data support for Azure Cosmos DB using the SQL API, based on Spring Data framework. +- [Azure Spring Data Cosmos](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/spring/azure-spring-data-cosmos/README.md) provides Spring Data support for Azure Cosmos DB using the SQL API, based on Spring Data framework. - [Azure Cosmos Encryption](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/cosmos/azure-cosmos-encryption/README.md) supports encryption for Azure Cosmos DB using SQL API. This plugin library is still under development and not is not ready to be consumed yet. - [Azure Cosmos Benchmark](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/cosmos/azure-cosmos-benchmark/README.md) is the benchmarking tool which provides different kinds of benchmarking workloads including but not limited to `readLatency`, `readThroughput`, `writeThroughput`, `readMyWrites`, etc. - [Azure Cosmos DotNet Benchmark](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/cosmos/azure-cosmos-dotnet-benchmark/README.md) is the port of CosmosDB .NET benchmarking tool. diff --git a/sdk/cosmos/azure-cosmos-spark_3-1_2-12/README.md b/sdk/cosmos/azure-cosmos-spark_3-1_2-12/README.md index 266a0a68b7512..35d89ac12e5e4 100644 --- a/sdk/cosmos/azure-cosmos-spark_3-1_2-12/README.md +++ b/sdk/cosmos/azure-cosmos-spark_3-1_2-12/README.md @@ -152,7 +152,7 @@ or contact [opencode@microsoft.com][coc_contact] with any additional questions o [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [coc_contact]: mailto:opencode@microsoft.com [azure_subscription]: https://azure.microsoft.com/free/ -[samples]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos +[samples]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos [sql_api_query]: https://docs.microsoft.com/azure/cosmos-db/sql-api-sql-query [local_emulator]: https://docs.microsoft.com/azure/cosmos-db/local-emulator [local_emulator_export_ssl_certificates]: https://docs.microsoft.com/azure/cosmos-db/local-emulator-export-ssl-certificates diff --git a/sdk/cosmos/azure-cosmos-spark_3-2_2-12/README.md b/sdk/cosmos/azure-cosmos-spark_3-2_2-12/README.md index 82942e4b3f49b..8fb6dc8c27f21 100644 --- a/sdk/cosmos/azure-cosmos-spark_3-2_2-12/README.md +++ b/sdk/cosmos/azure-cosmos-spark_3-2_2-12/README.md @@ -152,7 +152,7 @@ or contact [opencode@microsoft.com][coc_contact] with any additional questions o [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [coc_contact]: mailto:opencode@microsoft.com [azure_subscription]: https://azure.microsoft.com/free/ -[samples]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos +[samples]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos [sql_api_query]: https://docs.microsoft.com/azure/cosmos-db/sql-api-sql-query [local_emulator]: https://docs.microsoft.com/azure/cosmos-db/local-emulator [local_emulator_export_ssl_certificates]: https://docs.microsoft.com/azure/cosmos-db/local-emulator-export-ssl-certificates diff --git a/sdk/cosmos/azure-cosmos-spark_3-3_2-12/README.md b/sdk/cosmos/azure-cosmos-spark_3-3_2-12/README.md index 6ee80c3744fcd..54aaf60e02980 100644 --- a/sdk/cosmos/azure-cosmos-spark_3-3_2-12/README.md +++ b/sdk/cosmos/azure-cosmos-spark_3-3_2-12/README.md @@ -152,7 +152,7 @@ or contact [opencode@microsoft.com][coc_contact] with any additional questions o [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [coc_contact]: mailto:opencode@microsoft.com [azure_subscription]: https://azure.microsoft.com/free/ -[samples]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos +[samples]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos [sql_api_query]: https://docs.microsoft.com/azure/cosmos-db/sql-api-sql-query [local_emulator]: https://docs.microsoft.com/azure/cosmos-db/local-emulator [local_emulator_export_ssl_certificates]: https://docs.microsoft.com/azure/cosmos-db/local-emulator-export-ssl-certificates diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/TestRepositorySpELConfig.java b/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/TestRepositorySpELConfig.java deleted file mode 100644 index 11bffcf34dff5..0000000000000 --- a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/TestRepositorySpELConfig.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -package com.azure.spring.data.cosmos.repository; - -import com.azure.cosmos.CosmosClientBuilder; -import com.azure.spring.data.cosmos.common.DynamicContainer; -import com.azure.spring.data.cosmos.common.ResponseDiagnosticsTestUtils; -import com.azure.spring.data.cosmos.common.TestConstants; -import com.azure.spring.data.cosmos.config.AbstractCosmosConfiguration; -import com.azure.spring.data.cosmos.config.CosmosConfig; -import com.azure.spring.data.cosmos.core.mapping.EnableCosmosAuditing; -import com.azure.spring.data.cosmos.repository.config.EnableCosmosRepositories; -import com.azure.spring.data.cosmos.repository.config.EnableReactiveCosmosRepositories; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.PropertySource; -import org.springframework.util.StringUtils; - -import java.util.Arrays; -import java.util.Collection; - -@Configuration -public class TestRepositorySpELConfig extends TestRepositoryConfig { - - @Bean - public DynamicContainer dynamicContainer() { - return new DynamicContainer(TestConstants.DYNAMIC_BEAN_COLLECTION_NAME); - } - -} diff --git a/sdk/cosmos/ci.spring.yml b/sdk/cosmos/ci.spring.yml new file mode 100644 index 0000000000000..dede086309143 --- /dev/null +++ b/sdk/cosmos/ci.spring.yml @@ -0,0 +1,81 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. +trigger: + branches: + include: + - main + - hotfix/* + - release/* + paths: + include: + - sdk/cosmos/ci.spring.yml + - sdk/cosmos/azure-cosmos/ + - sdk/cosmos/azure-cosmos-benchmark/ + - sdk/cosmos/azure-cosmos-dotnet-benchmark/ + - sdk/cosmos/azure-cosmos-encryption/ + - sdk/cosmos/azure-cosmos-examples/ + - sdk/cosmos/azure-cosmos-spark_3_2-12/ + - sdk/cosmos/azure-cosmos-spark_3-1_2-12/ + - sdk/cosmos/azure-cosmos-spark_3-2_2-12/ + - sdk/cosmos/azure-cosmos-spark_3-3_2-12/ + - sdk/cosmos/azure-cosmos-test/ + - sdk/cosmos/azure-cosmos-tests/ + - sdk/cosmos/faq/ + exclude: + - sdk/cosmos/pom.xml + - sdk/cosmos/azure-cosmos/pom.xml + - sdk/cosmos/azure-cosmos-tests/pom.xml + - sdk/cosmos/azure-cosmos-benchmark/pom.xml + - sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml + - sdk/cosmos/azure-cosmos-encryption/pom.xml + - sdk/cosmos/azure-cosmos-spark_3_2-12/pom.xml + - sdk/cosmos/azure-cosmos-spark_3-1_2-12/pom.xml + - sdk/cosmos/azure-cosmos-spark_3-2_2-12/pom.xml + - sdk/cosmos/azure-cosmos-spark_3-3_2-12/pom.xml - + +pr: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/cosmos/ci.spring.yml + - sdk/cosmos/azure-cosmos/ + - sdk/cosmos/azure-cosmos-benchmark/ + - sdk/cosmos/azure-cosmos-dotnet-benchmark/ + - sdk/cosmos/azure-cosmos-encryption/ + - sdk/cosmos/azure-cosmos-examples/ + - sdk/cosmos/azure-cosmos-test/ + - sdk/cosmos/azure-cosmos-tests/ + - sdk/cosmos/azure-cosmos-spark_3_2-12/ + - sdk/cosmos/azure-cosmos-spark_3-1_2-12/ + - sdk/cosmos/azure-cosmos-spark_3-2_2-12/ + - sdk/cosmos/azure-cosmos-spark_3-3_2-12/ - + - sdk/cosmos/faq/ + exclude: + - sdk/cosmos/pom.xml + - sdk/cosmos/azure-cosmos/pom.xml + - sdk/cosmos/azure-cosmos-benchmark/pom.xml + - sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml + - sdk/cosmos/azure-cosmos-encryption/pom.xml + - sdk/cosmos/azure-cosmos-spark_3_2-12/pom.xml + - sdk/cosmos/azure-cosmos-spark_3-1_2-12/pom.xml + - sdk/cosmos/azure-cosmos-spark_3-2_2-12/pom.xml + - sdk/cosmos/azure-cosmos-spark_3-3_2-12/pom.xml - + - sdk/cosmos/azure-cosmos-test/pom.xml + - sdk/cosmos/azure-cosmos-tests/pom.xml + +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-client.yml + parameters: + ServiceDirectory: spring + Artifacts: + - name: azure-spring-data-cosmos + groupId: com.azure + safeName: azurespringdatacosmos + releaseInBatch: false + AdditionalModules: + - name: azure-spring-data-cosmos-test + groupId: com.azure diff --git a/sdk/cosmos/ci.yml b/sdk/cosmos/ci.yml index 142a4119b7886..3dd25c3051b33 100644 --- a/sdk/cosmos/ci.yml +++ b/sdk/cosmos/ci.yml @@ -20,11 +20,7 @@ trigger: - sdk/cosmos/azure-cosmos-spark_3-3_2-12/ - sdk/cosmos/azure-cosmos-test/ - sdk/cosmos/azure-cosmos-tests/ - - sdk/cosmos/azure-spring-data-cosmos/ - - sdk/cosmos/azure-spring-data-cosmos-test/ - sdk/cosmos/faq/ - - eng/pipelines/templates/stages/archetype-sdk-client.yml - - eng/pipelines/templates/jobs/ci.yml exclude: - sdk/cosmos/pom.xml - sdk/cosmos/azure-cosmos/pom.xml @@ -35,9 +31,7 @@ trigger: - sdk/cosmos/azure-cosmos-spark_3_2-12/pom.xml - sdk/cosmos/azure-cosmos-spark_3-1_2-12/pom.xml - sdk/cosmos/azure-cosmos-spark_3-2_2-12/pom.xml - - sdk/cosmos/azure-cosmos-spark_3-3_2-12/pom.xml - - - sdk/cosmos/azure-spring-data-cosmos/pom.xml - - sdk/cosmos/azure-spring-data-cosmos-test/pom.xml + - sdk/cosmos/azure-cosmos-spark_3-3_2-12/pom.xml pr: branches: @@ -60,9 +54,7 @@ pr: - sdk/cosmos/azure-cosmos-spark_3_2-12/ - sdk/cosmos/azure-cosmos-spark_3-1_2-12/ - sdk/cosmos/azure-cosmos-spark_3-2_2-12/ - - sdk/cosmos/azure-cosmos-spark_3-3_2-12/ - - - sdk/cosmos/azure-spring-data-cosmos/ - - sdk/cosmos/azure-spring-data-cosmos-test/ + - sdk/cosmos/azure-cosmos-spark_3-3_2-12/ - sdk/cosmos/faq/ exclude: - sdk/cosmos/pom.xml @@ -73,21 +65,14 @@ pr: - sdk/cosmos/azure-cosmos-spark_3_2-12/pom.xml - sdk/cosmos/azure-cosmos-spark_3-1_2-12/pom.xml - sdk/cosmos/azure-cosmos-spark_3-2_2-12/pom.xml - - sdk/cosmos/azure-cosmos-spark_3-3_2-12/pom.xml - - - sdk/cosmos/azure-spring-data-cosmos/pom.xml - - sdk/cosmos/azure-spring-data-cosmos-test/pom.xml + - sdk/cosmos/azure-cosmos-spark_3-3_2-12/pom.xml - sdk/cosmos/azure-cosmos-test/pom.xml - sdk/cosmos/azure-cosmos-tests/pom.xml - parameters: - name: release_azurecosmos displayName: 'azure-cosmos' type: boolean default: true - - name: release_azurespringdatacosmos - displayName: 'azure-spring-data-cosmos' - type: boolean - default: true - name: release_azurecosmosencryption displayName: 'azure-cosmos-encryption' type: boolean @@ -110,7 +95,7 @@ parameters: default: true extends: - template: ../../eng/pipelines/templates/stages/cosmos-sdk-client.yml #NOTE: Non-standard template. + template: /eng/pipelines/templates/stages/cosmos-sdk-client.yml #NOTE: Non-standard template. parameters: ServiceDirectory: cosmos EnableBatchRelease: true @@ -120,10 +105,6 @@ extends: groupId: com.azure safeName: azurecosmos releaseInBatch: ${{ parameters.release_azurecosmos }} - - name: azure-spring-data-cosmos - groupId: com.azure - safeName: azurespringdatacosmos - releaseInBatch: ${{ parameters.release_azurespringdatacosmos }} - name: azure-cosmos-encryption groupId: com.azure safeName: azurecosmosencryption @@ -158,7 +139,5 @@ extends: groupId: com.azure - name: azure-cosmos-benchmark groupId: com.azure - - name: azure-spring-data-cosmos-test - groupId: com.azure - name: azure-cosmos-spark_3_2-12 groupId: com.azure.cosmos.spark diff --git a/sdk/cosmos/pom.xml b/sdk/cosmos/pom.xml index 2a719273c5af4..2da5cf466f541 100644 --- a/sdk/cosmos/pom.xml +++ b/sdk/cosmos/pom.xml @@ -14,8 +14,6 @@ azure-cosmos-benchmark azure-cosmos-dotnet-benchmark azure-cosmos-encryption - azure-spring-data-cosmos - azure-spring-data-cosmos-test azure-cosmos-spark_3_2-12 azure-cosmos-spark_3-1_2-12 azure-cosmos-spark_3-2_2-12 diff --git a/sdk/cosmos/tests.yml b/sdk/cosmos/tests.yml index c2fec22e2bd7e..d25d4c8b48aea 100644 --- a/sdk/cosmos/tests.yml +++ b/sdk/cosmos/tests.yml @@ -47,10 +47,10 @@ stages: - $(sub-config-cosmos-azure-cloud-test-resources) MatrixConfigs: - Name: Cosmos_live_test_integration - Path: sdk/cosmos/integration-matrix.json + Path: sdk/spring/cosmos-integration-matrix.json Selection: all GenerateVMJobs: true - ServiceDirectory: cosmos + ServiceDirectory: spring Artifacts: - name: azure-spring-data-cosmos-test groupId: com.azure diff --git a/sdk/spring/CHANGELOG.md b/sdk/spring/CHANGELOG.md index aaa6bb4ef99ee..9a9a2f0618fa4 100644 --- a/sdk/spring/CHANGELOG.md +++ b/sdk/spring/CHANGELOG.md @@ -92,6 +92,9 @@ This section includes changes in `spring-cloud-azure-appconfiguration-config` an - spring-cloud-azure-feature-management - spring-cloud-azure-feature-management-web +#### Features Added +- The module `azure-spring-data-cosmos` was moved from sdk/cosmos to sdk/spring - See [PR 33905](https://github.com/Azure/azure-sdk-for-java/pull/33905) + ### Spring Messaging Event Hubs This section includes changes in `spring-messaging-azure-eventhubs` module. diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/CHANGELOG.md b/sdk/spring/azure-spring-data-cosmos-test/CHANGELOG.md similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/CHANGELOG.md rename to sdk/spring/azure-spring-data-cosmos-test/CHANGELOG.md diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/README.md b/sdk/spring/azure-spring-data-cosmos-test/README.md similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/README.md rename to sdk/spring/azure-spring-data-cosmos-test/README.md diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/pom.xml b/sdk/spring/azure-spring-data-cosmos-test/pom.xml similarity index 99% rename from sdk/cosmos/azure-spring-data-cosmos-test/pom.xml rename to sdk/spring/azure-spring-data-cosmos-test/pom.xml index 5d771e169292d..fd689499a84ad 100644 --- a/sdk/cosmos/azure-spring-data-cosmos-test/pom.xml +++ b/sdk/spring/azure-spring-data-cosmos-test/pom.xml @@ -16,7 +16,7 @@ jar Spring Data Test for Azure Cosmos DB SQL API Spring Data Test for Azure Cosmos DB SQL API - https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-spring-data-cosmos-test + https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/spring/azure-spring-data-cosmos-test azure-spring-data-cosmos-test diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/AbstractIntegrationTestCollectionManager.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/AbstractIntegrationTestCollectionManager.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/AbstractIntegrationTestCollectionManager.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/AbstractIntegrationTestCollectionManager.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/ContainerLock.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/ContainerLock.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/ContainerLock.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/ContainerLock.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/ContainerLockIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/ContainerLockIT.java similarity index 99% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/ContainerLockIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/ContainerLockIT.java index f13d43f8e15db..bbe66f8dc73e2 100644 --- a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/ContainerLockIT.java +++ b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/ContainerLockIT.java @@ -7,7 +7,6 @@ import com.azure.spring.data.cosmos.repository.TestRepositoryConfig; import com.azure.spring.data.cosmos.repository.support.CosmosEntityInformation; import org.junit.After; -import org.junit.AfterClass; import org.junit.Assert; import org.junit.Before; import org.junit.Test; diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/CosmosFactoryTestIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/CosmosFactoryTestIT.java similarity index 98% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/CosmosFactoryTestIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/CosmosFactoryTestIT.java index f0afe3a848e16..1d13b90a1776a 100644 --- a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/CosmosFactoryTestIT.java +++ b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/CosmosFactoryTestIT.java @@ -4,7 +4,6 @@ import com.azure.cosmos.CosmosAsyncClient; import com.azure.cosmos.CosmosClientBuilder; -import com.azure.cosmos.implementation.TestConfigurations; import com.azure.spring.data.cosmos.repository.TestRepositoryConfig; import org.apache.commons.lang3.reflect.FieldUtils; import org.junit.Test; diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/IntegrationTestCollectionManager.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/IntegrationTestCollectionManager.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/IntegrationTestCollectionManager.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/IntegrationTestCollectionManager.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/ReactiveIntegrationTestCollectionManager.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/ReactiveIntegrationTestCollectionManager.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/ReactiveIntegrationTestCollectionManager.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/ReactiveIntegrationTestCollectionManager.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/DynamicContainer.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/DynamicContainer.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/DynamicContainer.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/DynamicContainer.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/PageTestUtils.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/PageTestUtils.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/PageTestUtils.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/PageTestUtils.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/ResponseDiagnosticsTestUtils.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/ResponseDiagnosticsTestUtils.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/ResponseDiagnosticsTestUtils.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/ResponseDiagnosticsTestUtils.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/TestConstants.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/TestConstants.java similarity index 98% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/TestConstants.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/TestConstants.java index 22a87ef281002..945e313ed70bb 100644 --- a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/TestConstants.java +++ b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/TestConstants.java @@ -4,8 +4,6 @@ import com.azure.cosmos.models.IndexingMode; import com.azure.spring.data.cosmos.domain.Address; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; import java.util.Arrays; import java.util.HashMap; diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/TestUtils.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/TestUtils.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/TestUtils.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/TestUtils.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/config/AbstractCosmosConfigurationIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/config/AbstractCosmosConfigurationIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/config/AbstractCosmosConfigurationIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/config/AbstractCosmosConfigurationIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateIT.java similarity index 99% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateIT.java index 55bf81e7539f2..bb69ea3ad83e0 100644 --- a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateIT.java +++ b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateIT.java @@ -36,7 +36,6 @@ import com.azure.spring.data.cosmos.domain.Person; import com.azure.spring.data.cosmos.exception.CosmosAccessException; import com.azure.spring.data.cosmos.repository.TestRepositoryConfig; -import com.azure.spring.data.cosmos.repository.repository.AuditableRepository; import com.azure.spring.data.cosmos.repository.support.CosmosEntityInformation; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonNode; diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplatePartitionIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplatePartitionIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplatePartitionIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplatePartitionIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantContainerCosmosFactory.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantContainerCosmosFactory.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantContainerCosmosFactory.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantContainerCosmosFactory.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantContainerCosmosFactoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantContainerCosmosFactoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantContainerCosmosFactoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantContainerCosmosFactoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantDBCosmosFactory.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantDBCosmosFactory.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantDBCosmosFactory.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantDBCosmosFactory.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantDBCosmosFactoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantDBCosmosFactoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantDBCosmosFactoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/MultiTenantDBCosmosFactoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveCosmosTemplateIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveCosmosTemplateIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveCosmosTemplateIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveCosmosTemplateIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveCosmosTemplatePartitionIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveCosmosTemplatePartitionIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveCosmosTemplatePartitionIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveCosmosTemplatePartitionIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveMultiTenantContainerCosmosFactoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveMultiTenantContainerCosmosFactoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveMultiTenantContainerCosmosFactoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveMultiTenantContainerCosmosFactoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveMultiTenantDBCosmosFactoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveMultiTenantDBCosmosFactoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveMultiTenantDBCosmosFactoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/ReactiveMultiTenantDBCosmosFactoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventErrorIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventErrorIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventErrorIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventErrorIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventErrorReactiveIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventErrorReactiveIT.java similarity index 96% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventErrorReactiveIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventErrorReactiveIT.java index 22cb88e3e5092..6f833a984b6f1 100644 --- a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventErrorReactiveIT.java +++ b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventErrorReactiveIT.java @@ -8,7 +8,6 @@ import com.azure.spring.data.cosmos.domain.Address; import com.azure.spring.data.cosmos.exception.CosmosAccessException; import com.azure.spring.data.cosmos.repository.TestRepositoryConfig; -import com.azure.spring.data.cosmos.repository.repository.AddressRepository; import com.azure.spring.data.cosmos.repository.repository.ReactiveAddressRepository; import org.assertj.core.util.Lists; import org.junit.Before; diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventReactiveIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventReactiveIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventReactiveIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ApplicationContextEventReactiveIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ErrorEventListenerConfig.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ErrorEventListenerConfig.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ErrorEventListenerConfig.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ErrorEventListenerConfig.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/SimpleCosmosMappingEventListener.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/SimpleCosmosMappingEventListener.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/SimpleCosmosMappingEventListener.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/SimpleCosmosMappingEventListener.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ThrowErrorEventListener.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ThrowErrorEventListener.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ThrowErrorEventListener.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/ThrowErrorEventListener.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Address.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Address.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Address.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Address.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/AuditableEntity.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/AuditableEntity.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/AuditableEntity.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/AuditableEntity.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/AuditableIdGeneratedEntity.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/AuditableIdGeneratedEntity.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/AuditableIdGeneratedEntity.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/AuditableIdGeneratedEntity.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/AutoScaleSample.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/AutoScaleSample.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/AutoScaleSample.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/AutoScaleSample.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/ComplexIndexPolicyEntity.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/ComplexIndexPolicyEntity.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/ComplexIndexPolicyEntity.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/ComplexIndexPolicyEntity.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/CompositeIndexEntity.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/CompositeIndexEntity.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/CompositeIndexEntity.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/CompositeIndexEntity.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Contact.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Contact.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Contact.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Contact.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Course.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Course.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Course.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Course.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/CourseWithEtag.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/CourseWithEtag.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/CourseWithEtag.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/CourseWithEtag.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Customer.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Customer.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Customer.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Customer.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/GenIdEntity.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/GenIdEntity.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/GenIdEntity.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/GenIdEntity.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Importance.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Importance.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Importance.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Importance.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/IndexPolicyEntity.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/IndexPolicyEntity.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/IndexPolicyEntity.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/IndexPolicyEntity.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/IndexPolicyOverwriteEntity.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/IndexPolicyOverwriteEntity.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/IndexPolicyOverwriteEntity.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/IndexPolicyOverwriteEntity.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/IntegerIdDomain.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/IntegerIdDomain.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/IntegerIdDomain.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/IntegerIdDomain.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/LongIdDomain.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/LongIdDomain.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/LongIdDomain.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/LongIdDomain.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/LongIdDomainPartition.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/LongIdDomainPartition.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/LongIdDomainPartition.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/LongIdDomainPartition.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Memo.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Memo.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Memo.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Memo.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/NestedEntity.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/NestedEntity.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/NestedEntity.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/NestedEntity.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/NestedPartitionKeyEntity.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/NestedPartitionKeyEntity.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/NestedPartitionKeyEntity.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/NestedPartitionKeyEntity.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/NestedPartitionKeyEntityWithGeneratedValue.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/NestedPartitionKeyEntityWithGeneratedValue.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/NestedPartitionKeyEntityWithGeneratedValue.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/NestedPartitionKeyEntityWithGeneratedValue.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PageableMemo.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PageableMemo.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PageableMemo.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PageableMemo.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PageablePerson.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PageablePerson.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PageablePerson.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PageablePerson.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PartitionPerson.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PartitionPerson.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PartitionPerson.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PartitionPerson.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PersistableEntity.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PersistableEntity.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PersistableEntity.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PersistableEntity.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Person.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Person.java similarity index 98% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Person.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Person.java index 99f59ce9dab4b..251f8edd74ab9 100644 --- a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Person.java +++ b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Person.java @@ -3,7 +3,6 @@ package com.azure.spring.data.cosmos.domain; -import com.azure.spring.data.cosmos.common.TestConstants; import com.azure.spring.data.cosmos.core.mapping.Container; import com.azure.spring.data.cosmos.core.mapping.CosmosIndexingPolicy; import com.azure.spring.data.cosmos.core.mapping.PartitionKey; diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PersonCrossPartition.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PersonCrossPartition.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PersonCrossPartition.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PersonCrossPartition.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PersonWithEtag.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PersonWithEtag.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PersonWithEtag.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/PersonWithEtag.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Project.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Project.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Project.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Project.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Question.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Question.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Question.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Question.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/ReactiveTeacher.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/ReactiveTeacher.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/ReactiveTeacher.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/ReactiveTeacher.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Role.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Role.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Role.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Role.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/SortedProject.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/SortedProject.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/SortedProject.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/SortedProject.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/SpELBeanStudent.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/SpELBeanStudent.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/SpELBeanStudent.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/SpELBeanStudent.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/SpELPropertyStudent.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/SpELPropertyStudent.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/SpELPropertyStudent.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/SpELPropertyStudent.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Student.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Student.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Student.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Student.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Teacher.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Teacher.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Teacher.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/Teacher.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/TimeToLiveSample.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/TimeToLiveSample.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/TimeToLiveSample.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/TimeToLiveSample.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/UUIDIdDomain.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/UUIDIdDomain.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/UUIDIdDomain.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/UUIDIdDomain.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/UniqueKeyPolicyEntity.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/UniqueKeyPolicyEntity.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/UniqueKeyPolicyEntity.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/UniqueKeyPolicyEntity.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/inheritance/Shape.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/inheritance/Shape.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/inheritance/Shape.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/inheritance/Shape.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/inheritance/Square.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/inheritance/Square.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/inheritance/Square.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/domain/inheritance/Square.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/MultiCosmosTemplateIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/MultiCosmosTemplateIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/MultiCosmosTemplateIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/MultiCosmosTemplateIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/MultiTenantTestRepositoryConfig.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/MultiTenantTestRepositoryConfig.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/MultiTenantTestRepositoryConfig.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/MultiTenantTestRepositoryConfig.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/ReactiveUUIDIdDomainRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/ReactiveUUIDIdDomainRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/ReactiveUUIDIdDomainRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/ReactiveUUIDIdDomainRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/SecondaryTestRepositoryConfig.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/SecondaryTestRepositoryConfig.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/SecondaryTestRepositoryConfig.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/SecondaryTestRepositoryConfig.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/StubAuditorProvider.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/StubAuditorProvider.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/StubAuditorProvider.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/StubAuditorProvider.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/StubDateTimeProvider.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/StubDateTimeProvider.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/StubDateTimeProvider.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/StubDateTimeProvider.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/TestRepositoryConfig.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/TestRepositoryConfig.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/TestRepositoryConfig.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/TestRepositoryConfig.java diff --git a/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/TestRepositorySpELConfig.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/TestRepositorySpELConfig.java new file mode 100644 index 0000000000000..b74bf2ad4cfae --- /dev/null +++ b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/TestRepositorySpELConfig.java @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.spring.data.cosmos.repository; + +import com.azure.spring.data.cosmos.common.DynamicContainer; +import com.azure.spring.data.cosmos.common.TestConstants; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +@Configuration +public class TestRepositorySpELConfig extends TestRepositoryConfig { + + @Bean + public DynamicContainer dynamicContainer() { + return new DynamicContainer(TestConstants.DYNAMIC_BEAN_COLLECTION_NAME); + } + +} diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AddressRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AddressRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AddressRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AddressRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AnnotatedQueryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AnnotatedQueryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AnnotatedQueryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AnnotatedQueryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AuditableIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AuditableIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AuditableIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AuditableIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CompositeIndexIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CompositeIndexIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CompositeIndexIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CompositeIndexIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ContactRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ContactRepositoryIT.java similarity index 99% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ContactRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ContactRepositoryIT.java index dc5d50abac531..2f7c30df018fa 100644 --- a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ContactRepositoryIT.java +++ b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ContactRepositoryIT.java @@ -14,7 +14,6 @@ import org.junit.Assert; import org.junit.Before; import org.junit.ClassRule; -import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CosmosAnnotationIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CosmosAnnotationIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CosmosAnnotationIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CosmosAnnotationIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CountIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CountIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CountIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CountIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CustomerRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CustomerRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CustomerRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/CustomerRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/EtagIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/EtagIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/EtagIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/EtagIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/IndexPolicyUpdateIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/IndexPolicyUpdateIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/IndexPolicyUpdateIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/IndexPolicyUpdateIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/IntegerIdDomainRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/IntegerIdDomainRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/IntegerIdDomainRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/IntegerIdDomainRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/LongIdDomainRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/LongIdDomainRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/LongIdDomainRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/LongIdDomainRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/MemoRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/MemoRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/MemoRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/MemoRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/NestedPartitionKeyRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/NestedPartitionKeyRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/NestedPartitionKeyRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/NestedPartitionKeyRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PageableAddressRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PageableAddressRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PageableAddressRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PageableAddressRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PageableMemoRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PageableMemoRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PageableMemoRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PageableMemoRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PageablePersonRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PageablePersonRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PageablePersonRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PageablePersonRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PersistableIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PersistableIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PersistableIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PersistableIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PersonCrossPartitionIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PersonCrossPartitionIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PersonCrossPartitionIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PersonCrossPartitionIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ProjectRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ProjectRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ProjectRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ProjectRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ProjectRepositorySortIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ProjectRepositorySortIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ProjectRepositorySortIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ProjectRepositorySortIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/QuestionRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/QuestionRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/QuestionRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/QuestionRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveAuditableIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveAuditableIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveAuditableIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveAuditableIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveCourseRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveCourseRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveCourseRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveCourseRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveEtagIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveEtagIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveEtagIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveEtagIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveIndexPolicyUpdateIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveIndexPolicyUpdateIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveIndexPolicyUpdateIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveIndexPolicyUpdateIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveLongIdDomainPartitionPartitionRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveLongIdDomainPartitionPartitionRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveLongIdDomainPartitionPartitionRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveLongIdDomainPartitionPartitionRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveNestedPartitionKeyRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveNestedPartitionKeyRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveNestedPartitionKeyRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveNestedPartitionKeyRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveRoleRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveRoleRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveRoleRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveRoleRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveTeacherRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveTeacherRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveTeacherRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ReactiveTeacherRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/SpELCosmosAnnotationIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/SpELCosmosAnnotationIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/SpELCosmosAnnotationIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/SpELCosmosAnnotationIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/SquareRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/SquareRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/SquareRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/SquareRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/StudentRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/StudentRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/StudentRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/StudentRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/TeacherRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/TeacherRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/TeacherRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/TeacherRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/UUIDIdDomainRepositoryIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/UUIDIdDomainRepositoryIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/UUIDIdDomainRepositoryIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/UUIDIdDomainRepositoryIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/UniqueKeyPolicyIT.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/UniqueKeyPolicyIT.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/UniqueKeyPolicyIT.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/UniqueKeyPolicyIT.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/AddressRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/AddressRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/AddressRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/AddressRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/AuditableIdGeneratedRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/AuditableIdGeneratedRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/AuditableIdGeneratedRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/AuditableIdGeneratedRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/AuditableRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/AuditableRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/AuditableRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/AuditableRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ContactRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ContactRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ContactRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ContactRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/CustomerRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/CustomerRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/CustomerRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/CustomerRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/IntegerIdDomainRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/IntegerIdDomainRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/IntegerIdDomainRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/IntegerIdDomainRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/LongIdDomainRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/LongIdDomainRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/LongIdDomainRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/LongIdDomainRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/MemoRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/MemoRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/MemoRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/MemoRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/NestedPartitionKeyRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/NestedPartitionKeyRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/NestedPartitionKeyRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/NestedPartitionKeyRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PageableAddressRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PageableAddressRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PageableAddressRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PageableAddressRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PageableMemoRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PageableMemoRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PageableMemoRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PageableMemoRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PageablePersonRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PageablePersonRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PageablePersonRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PageablePersonRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PersistableEntityRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PersistableEntityRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PersistableEntityRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PersistableEntityRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PersonWithEtagRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PersonWithEtagRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PersonWithEtagRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/PersonWithEtagRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ProjectRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ProjectRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ProjectRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ProjectRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/QuestionRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/QuestionRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/QuestionRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/QuestionRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveAddressRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveAddressRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveAddressRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveAddressRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveAuditableIdGeneratedRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveAuditableIdGeneratedRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveAuditableIdGeneratedRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveAuditableIdGeneratedRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveAuditableRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveAuditableRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveAuditableRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveAuditableRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveCourseRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveCourseRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveCourseRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveCourseRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveCourseWithEtagRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveCourseWithEtagRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveCourseWithEtagRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveCourseWithEtagRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveLongIdDomainPartitionRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveLongIdDomainPartitionRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveLongIdDomainPartitionRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveLongIdDomainPartitionRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveNestedPartitionKeyRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveNestedPartitionKeyRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveNestedPartitionKeyRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveNestedPartitionKeyRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactivePersistableEntityRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactivePersistableEntityRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactivePersistableEntityRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactivePersistableEntityRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveRoleRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveRoleRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveRoleRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveRoleRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveTeacherRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveTeacherRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveTeacherRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveTeacherRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveUUIDIdDomainRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveUUIDIdDomainRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveUUIDIdDomainRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveUUIDIdDomainRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/SortedProjectRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/SortedProjectRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/SortedProjectRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/SortedProjectRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/SquareRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/SquareRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/SquareRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/SquareRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/StudentRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/StudentRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/StudentRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/StudentRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/TeacherRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/TeacherRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/TeacherRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/TeacherRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/UUIDIdDomainRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/UUIDIdDomainRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/UUIDIdDomainRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/UUIDIdDomainRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/UniqueKeyPolicyEntityRepository.java b/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/UniqueKeyPolicyEntityRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/UniqueKeyPolicyEntityRepository.java rename to sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/repository/UniqueKeyPolicyEntityRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/resources/application.properties b/sdk/spring/azure-spring-data-cosmos-test/src/test/resources/application.properties similarity index 67% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/resources/application.properties rename to sdk/spring/azure-spring-data-cosmos-test/src/test/resources/application.properties index a93df8ed8cc1a..18af39dea3c10 100644 --- a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/resources/application.properties +++ b/sdk/spring/azure-spring-data-cosmos-test/src/test/resources/application.properties @@ -1,6 +1,6 @@ -cosmos.uri=${ACCOUNT_HOST} -cosmos.key=${ACCOUNT_KEY} -cosmos.secondaryKey=${SECONDARY_ACCOUNT_KEY} +cosmos.uri=${COSMOS_SPRING_ACCOUNT_HOST} +cosmos.key=${COSMOS_SPRING_ACCOUNT_KEY} +cosmos.secondaryKey=${COSMOS_SPRING_SECONDARY_ACCOUNT_KEY} dynamic.collection.name=spel-property-collection # Populate query metrics @@ -13,9 +13,9 @@ cosmos.maxBufferedItemCount=0 cosmos.responseContinuationTokenLimitInKb=0 # Secondary DataSource Config -cosmos.secondary.uri=${NEW_ACCOUNT_HOST} -cosmos.secondary.key=${NEW_ACCOUNT_KEY} -cosmos.secondary.secondaryKey=${NEW_SECONDARY_ACCOUNT_KEY} +cosmos.secondary.uri=${COSMOS_SPRING_NEW_ACCOUNT_HOST} +cosmos.secondary.key=${COSMOS_SPRING_NEW_ACCOUNT_KEY} +cosmos.secondary.secondaryKey=${COSMOS_SPRING_NEW_SECONDARY_ACCOUNT_KEY} # Populate query metrics cosmos.secondary.queryMetricsEnabled=true diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/resources/application.yml b/sdk/spring/azure-spring-data-cosmos-test/src/test/resources/application.yml similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/resources/application.yml rename to sdk/spring/azure-spring-data-cosmos-test/src/test/resources/application.yml diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/src/test/resources/logback-test.xml b/sdk/spring/azure-spring-data-cosmos-test/src/test/resources/logback-test.xml similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos-test/src/test/resources/logback-test.xml rename to sdk/spring/azure-spring-data-cosmos-test/src/test/resources/logback-test.xml diff --git a/sdk/cosmos/azure-spring-data-cosmos/CHANGELOG.md b/sdk/spring/azure-spring-data-cosmos/CHANGELOG.md similarity index 98% rename from sdk/cosmos/azure-spring-data-cosmos/CHANGELOG.md rename to sdk/spring/azure-spring-data-cosmos/CHANGELOG.md index 91e4552dde5c5..532baf4599d42 100644 --- a/sdk/cosmos/azure-spring-data-cosmos/CHANGELOG.md +++ b/sdk/spring/azure-spring-data-cosmos/CHANGELOG.md @@ -9,6 +9,7 @@ #### Bugs Fixed #### Other Changes +* The module `azure-spring-data-cosmos` was moved from sdk/cosmos to sdk/spring - See [PR 33905](https://github.com/Azure/azure-sdk-for-java/pull/33905) ### 3.34.0 (2023-04-21) #### Breaking Changes diff --git a/sdk/cosmos/azure-spring-data-cosmos/CONTRIBUTING.md b/sdk/spring/azure-spring-data-cosmos/CONTRIBUTING.md similarity index 98% rename from sdk/cosmos/azure-spring-data-cosmos/CONTRIBUTING.md rename to sdk/spring/azure-spring-data-cosmos/CONTRIBUTING.md index 2c2c5e984524c..fd033030498b6 100644 --- a/sdk/cosmos/azure-spring-data-cosmos/CONTRIBUTING.md +++ b/sdk/spring/azure-spring-data-cosmos/CONTRIBUTING.md @@ -10,7 +10,7 @@ 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-cosmos +cd sdk/spring/azure-spring-data-cosmos mvn clean install ``` diff --git a/sdk/cosmos/azure-spring-data-cosmos/README.md b/sdk/spring/azure-spring-data-cosmos/README.md similarity index 99% rename from sdk/cosmos/azure-spring-data-cosmos/README.md rename to sdk/spring/azure-spring-data-cosmos/README.md index 884d136442983..7485e0dc6a28b 100644 --- a/sdk/cosmos/azure-spring-data-cosmos/README.md +++ b/sdk/spring/azure-spring-data-cosmos/README.md @@ -631,7 +631,7 @@ azure.cosmos.secondary.database=your-secondary-cosmosDb-dbName azure.cosmos.secondary.populateQueryMetrics=if-populate-query-metrics ``` -- The [Entity](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-spring-data-cosmos#define-an-entity) and [Repository](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-spring-data-cosmos#create-repositories) definition is similar as above. You can put different database entities into different packages. +- The [Entity](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/spring/azure-spring-data-cosmos#define-an-entity) and [Repository](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/spring/azure-spring-data-cosmos#create-repositories) definition is similar as above. You can put different database entities into different packages. - The `@EnableReactiveCosmosRepositories` or `@EnableCosmosRepositories` support user-define the cosmos template, use `reactiveCosmosTemplateRef` or `cosmosTemplateRef` to config the name of the `ReactiveCosmosTemplate` or `CosmosTemplate` bean to be used with the repositories detected. - If you have multiple cosmos database accounts, you can define multiple `CosmosAsyncClient`. If the single cosmos account has multiple databases, you can use the same `CosmosAsyncClient` to initialize the cosmos template. @@ -825,7 +825,7 @@ azure.cosmos.database=your-cosmosDb-dbName azure.cosmos.populate-query-metrics=if-populate-query-metrics ``` -- The [Entity](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-spring-data-cosmos#define-an-entity) and [Repository](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-spring-data-cosmos#create-repositories) definition is similar as above. You can put different database entities into different packages. +- The [Entity](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/spring/azure-spring-data-cosmos#define-an-entity) and [Repository](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/spring/azure-spring-data-cosmos#create-repositories) definition is similar as above. You can put different database entities into different packages. - You can use `EnableReactiveCosmosRepositories` with different `reactiveCosmosTemplateRef` to define multiple databases in single cosmos account. ```java @@ -1033,7 +1033,7 @@ or contact [opencode@microsoft.com][coc_contact] with any additional questions o [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [coc_contact]: mailto:opencode@microsoft.com [azure_subscription]: https://azure.microsoft.com/free/ -[samples]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos +[samples]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos [sample-for-multi-database]: https://github.com/Azure-Samples/azure-spring-boot-samples/tree/spring-cloud-azure_v4.3.0/cosmos/azure-spring-data-cosmos/cosmos-multi-database-multi-account [sample-for-multi-database-single-account]: https://github.com/Azure-Samples/azure-spring-boot-samples/tree/spring-cloud-azure_v4.3.0/cosmos/azure-spring-data-cosmos/cosmos-multi-database-single-account [sql_api_query]: https://docs.microsoft.com/azure/cosmos-db/sql-api-sql-query @@ -1041,7 +1041,7 @@ or contact [opencode@microsoft.com][coc_contact] with any additional questions o [local_emulator_export_ssl_certificates]: https://docs.microsoft.com/azure/cosmos-db/local-emulator-export-ssl-certificates [spring_data_commons_id_annotation]: https://github.com/spring-projects/spring-data-commons/blob/main/src/main/java/org/springframework/data/annotation/Id.java [azure_cosmos_db_partition]: https://docs.microsoft.com/azure/cosmos-db/partition-data -[address_repository_it_test]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AddressRepositoryIT.java +[address_repository_it_test]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/spring/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AddressRepositoryIT.java [azure_spring_data_cosmos_docs]: https://docs.microsoft.com/azure/cosmos-db/sql-api-sdk-java-spring-v3 [spring_data_custom_query]: https://docs.spring.io/spring-data/commons/docs/current/reference/html/#repositories.query-methods.details [sql_queries_in_cosmos]: https://docs.microsoft.com/azure/cosmos-db/tutorial-query-sql-api diff --git a/sdk/cosmos/azure-spring-data-cosmos/pom.xml b/sdk/spring/azure-spring-data-cosmos/pom.xml similarity index 98% rename from sdk/cosmos/azure-spring-data-cosmos/pom.xml rename to sdk/spring/azure-spring-data-cosmos/pom.xml index 3e3a6c079cd4a..54b43242c22ea 100644 --- a/sdk/cosmos/azure-spring-data-cosmos/pom.xml +++ b/sdk/spring/azure-spring-data-cosmos/pom.xml @@ -16,7 +16,7 @@ jar Spring Data for Azure Cosmos DB SQL API Spring Data for Azure Cosmos DB SQL API - https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/cosmos/azure-spring-data-cosmos + https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/spring/azure-spring-data-cosmos MM-dd-HH-mm-ss @@ -88,7 +88,7 @@ com.azure azure-cosmos - 4.45.0-beta.1 + 4.44.0 com.fasterxml.jackson.module diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/Constants.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/Constants.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/Constants.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/Constants.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/CosmosFactory.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/CosmosFactory.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/CosmosFactory.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/CosmosFactory.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/CosmosUtils.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/CosmosUtils.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/CosmosUtils.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/CosmosUtils.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/ExpressionResolver.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/ExpressionResolver.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/ExpressionResolver.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/ExpressionResolver.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/MacAddress.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/MacAddress.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/MacAddress.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/MacAddress.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/Memoizer.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/Memoizer.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/Memoizer.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/Memoizer.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/PropertyLoader.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/PropertyLoader.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/PropertyLoader.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/PropertyLoader.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/package-info.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/package-info.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/common/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/AbstractCosmosConfiguration.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/AbstractCosmosConfiguration.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/AbstractCosmosConfiguration.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/AbstractCosmosConfiguration.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/CosmosConfig.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/CosmosConfig.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/CosmosConfig.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/CosmosConfig.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/CosmosConfigurationSupport.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/CosmosConfigurationSupport.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/CosmosConfigurationSupport.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/CosmosConfigurationSupport.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/DatabaseThroughputConfig.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/DatabaseThroughputConfig.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/DatabaseThroughputConfig.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/DatabaseThroughputConfig.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/package-info.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/package-info.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/CosmosOperations.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/CosmosOperations.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/CosmosOperations.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/CosmosOperations.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/CosmosTemplate.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/CosmosTemplate.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/CosmosTemplate.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/CosmosTemplate.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ReactiveCosmosOperations.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ReactiveCosmosOperations.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ReactiveCosmosOperations.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ReactiveCosmosOperations.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ReactiveCosmosTemplate.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ReactiveCosmosTemplate.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ReactiveCosmosTemplate.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ReactiveCosmosTemplate.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ResponseDiagnostics.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ResponseDiagnostics.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ResponseDiagnostics.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ResponseDiagnostics.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ResponseDiagnosticsProcessor.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ResponseDiagnosticsProcessor.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ResponseDiagnosticsProcessor.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/ResponseDiagnosticsProcessor.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/convert/MappingCosmosConverter.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/convert/MappingCosmosConverter.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/convert/MappingCosmosConverter.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/convert/MappingCosmosConverter.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/convert/ObjectMapperFactory.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/convert/ObjectMapperFactory.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/convert/ObjectMapperFactory.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/convert/ObjectMapperFactory.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/convert/package-info.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/convert/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/convert/package-info.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/convert/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/AbstractQueryGenerator.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/AbstractQueryGenerator.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/AbstractQueryGenerator.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/AbstractQueryGenerator.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/CountQueryGenerator.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/CountQueryGenerator.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/CountQueryGenerator.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/CountQueryGenerator.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/FindQuerySpecGenerator.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/FindQuerySpecGenerator.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/FindQuerySpecGenerator.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/FindQuerySpecGenerator.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/NativeQueryGenerator.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/NativeQueryGenerator.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/NativeQueryGenerator.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/NativeQueryGenerator.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/QuerySpecGenerator.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/QuerySpecGenerator.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/QuerySpecGenerator.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/QuerySpecGenerator.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/package-info.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/package-info.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/generator/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/BasicCosmosPersistentEntity.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/BasicCosmosPersistentEntity.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/BasicCosmosPersistentEntity.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/BasicCosmosPersistentEntity.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/BasicCosmosPersistentProperty.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/BasicCosmosPersistentProperty.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/BasicCosmosPersistentProperty.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/BasicCosmosPersistentProperty.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CompositeIndex.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CompositeIndex.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CompositeIndex.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CompositeIndex.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CompositeIndexPath.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CompositeIndexPath.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CompositeIndexPath.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CompositeIndexPath.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/Container.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/Container.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/Container.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/Container.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosAuditingRegistrar.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosAuditingRegistrar.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosAuditingRegistrar.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosAuditingRegistrar.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosIndexingPolicy.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosIndexingPolicy.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosIndexingPolicy.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosIndexingPolicy.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosMappingContext.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosMappingContext.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosMappingContext.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosMappingContext.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosPersistentEntity.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosPersistentEntity.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosPersistentEntity.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosPersistentEntity.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosPersistentProperty.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosPersistentProperty.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosPersistentProperty.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosPersistentProperty.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosSimpleTypes.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosSimpleTypes.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosSimpleTypes.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosSimpleTypes.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosUniqueKey.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosUniqueKey.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosUniqueKey.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosUniqueKey.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosUniqueKeyPolicy.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosUniqueKeyPolicy.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosUniqueKeyPolicy.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosUniqueKeyPolicy.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/EnableCosmosAuditing.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/EnableCosmosAuditing.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/EnableCosmosAuditing.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/EnableCosmosAuditing.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/GeneratedValue.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/GeneratedValue.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/GeneratedValue.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/GeneratedValue.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/PartitionKey.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/PartitionKey.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/PartitionKey.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/PartitionKey.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/AbstractCosmosEventListener.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/AbstractCosmosEventListener.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/AbstractCosmosEventListener.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/AbstractCosmosEventListener.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/AfterLoadEvent.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/AfterLoadEvent.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/AfterLoadEvent.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/AfterLoadEvent.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/CosmosMappingEvent.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/CosmosMappingEvent.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/CosmosMappingEvent.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/CosmosMappingEvent.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/package-info.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/package-info.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/event/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/package-info.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/package-info.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/package-info.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/package-info.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosPageImpl.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosPageImpl.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosPageImpl.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosPageImpl.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosPageRequest.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosPageRequest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosPageRequest.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosPageRequest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosQuery.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosQuery.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosQuery.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosQuery.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosSliceImpl.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosSliceImpl.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosSliceImpl.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CosmosSliceImpl.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/Criteria.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/Criteria.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/Criteria.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/Criteria.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CriteriaType.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CriteriaType.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CriteriaType.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/CriteriaType.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/package-info.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/package-info.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/query/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/ConfigurationException.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/ConfigurationException.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/ConfigurationException.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/ConfigurationException.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/CosmosAccessException.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/CosmosAccessException.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/CosmosAccessException.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/CosmosAccessException.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/CosmosExceptionUtils.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/CosmosExceptionUtils.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/CosmosExceptionUtils.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/CosmosExceptionUtils.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/DatabaseCreationException.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/DatabaseCreationException.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/DatabaseCreationException.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/DatabaseCreationException.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/IllegalCollectionException.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/IllegalCollectionException.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/IllegalCollectionException.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/IllegalCollectionException.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/IllegalQueryException.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/IllegalQueryException.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/IllegalQueryException.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/IllegalQueryException.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/package-info.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/package-info.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/exception/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/package-info.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/package-info.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/CosmosRepository.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/CosmosRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/CosmosRepository.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/CosmosRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/Query.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/Query.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/Query.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/Query.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/ReactiveCosmosRepository.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/ReactiveCosmosRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/ReactiveCosmosRepository.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/ReactiveCosmosRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/CosmosRepositoriesRegistrar.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/CosmosRepositoriesRegistrar.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/CosmosRepositoriesRegistrar.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/CosmosRepositoriesRegistrar.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/CosmosRepositoryConfigurationExtension.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/CosmosRepositoryConfigurationExtension.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/CosmosRepositoryConfigurationExtension.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/CosmosRepositoryConfigurationExtension.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/EnableCosmosRepositories.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/EnableCosmosRepositories.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/EnableCosmosRepositories.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/EnableCosmosRepositories.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/EnableReactiveCosmosRepositories.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/EnableReactiveCosmosRepositories.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/EnableReactiveCosmosRepositories.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/EnableReactiveCosmosRepositories.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/ReactiveCosmosRepositoriesRegistrar.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/ReactiveCosmosRepositoriesRegistrar.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/ReactiveCosmosRepositoriesRegistrar.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/ReactiveCosmosRepositoriesRegistrar.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/ReactiveCosmosRepositoryConfigurationExtension.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/ReactiveCosmosRepositoryConfigurationExtension.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/ReactiveCosmosRepositoryConfigurationExtension.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/ReactiveCosmosRepositoryConfigurationExtension.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/package-info.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/package-info.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/config/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/package-info.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/package-info.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/AbstractCosmosQuery.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/AbstractCosmosQuery.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/AbstractCosmosQuery.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/AbstractCosmosQuery.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/AbstractReactiveCosmosQuery.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/AbstractReactiveCosmosQuery.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/AbstractReactiveCosmosQuery.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/AbstractReactiveCosmosQuery.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosEntityMetadata.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosEntityMetadata.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosEntityMetadata.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosEntityMetadata.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameter.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameter.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameter.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameter.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameterAccessor.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameterAccessor.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameterAccessor.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameterAccessor.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameterParameterAccessor.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameterParameterAccessor.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameterParameterAccessor.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameterParameterAccessor.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameters.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameters.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameters.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosParameters.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryCreator.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryCreator.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryCreator.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryCreator.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryExecution.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryExecution.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryExecution.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryExecution.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryMethod.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryMethod.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryMethod.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryMethod.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/PartTreeCosmosQuery.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/PartTreeCosmosQuery.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/PartTreeCosmosQuery.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/PartTreeCosmosQuery.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/PartTreeReactiveCosmosQuery.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/PartTreeReactiveCosmosQuery.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/PartTreeReactiveCosmosQuery.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/PartTreeReactiveCosmosQuery.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosEntityMetadata.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosEntityMetadata.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosEntityMetadata.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosEntityMetadata.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosParameterAccessor.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosParameterAccessor.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosParameterAccessor.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosParameterAccessor.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosParameterParameterAccessor.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosParameterParameterAccessor.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosParameterParameterAccessor.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosParameterParameterAccessor.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosQueryCreator.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosQueryCreator.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosQueryCreator.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosQueryCreator.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosQueryExecution.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosQueryExecution.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosQueryExecution.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosQueryExecution.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosQueryMethod.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosQueryMethod.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosQueryMethod.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosQueryMethod.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/SimpleCosmosEntityMetadata.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/SimpleCosmosEntityMetadata.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/SimpleCosmosEntityMetadata.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/SimpleCosmosEntityMetadata.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/SimpleReactiveCosmosEntityMetadata.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/SimpleReactiveCosmosEntityMetadata.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/SimpleReactiveCosmosEntityMetadata.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/SimpleReactiveCosmosEntityMetadata.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/package-info.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/package-info.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/query/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/CosmosEntityInformation.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/CosmosEntityInformation.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/CosmosEntityInformation.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/CosmosEntityInformation.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactory.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactory.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactory.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactory.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactoryBean.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactoryBean.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactoryBean.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactoryBean.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/IndexPolicyCompareService.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/IndexPolicyCompareService.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/IndexPolicyCompareService.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/IndexPolicyCompareService.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/ReactiveCosmosRepositoryFactory.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/ReactiveCosmosRepositoryFactory.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/ReactiveCosmosRepositoryFactory.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/ReactiveCosmosRepositoryFactory.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/ReactiveCosmosRepositoryFactoryBean.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/ReactiveCosmosRepositoryFactoryBean.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/ReactiveCosmosRepositoryFactoryBean.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/ReactiveCosmosRepositoryFactoryBean.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/SimpleCosmosRepository.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/SimpleCosmosRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/SimpleCosmosRepository.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/SimpleCosmosRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/SimpleReactiveCosmosRepository.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/SimpleReactiveCosmosRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/SimpleReactiveCosmosRepository.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/SimpleReactiveCosmosRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/StringBasedCosmosQuery.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/StringBasedCosmosQuery.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/StringBasedCosmosQuery.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/StringBasedCosmosQuery.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/StringBasedReactiveCosmosQuery.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/StringBasedReactiveCosmosQuery.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/StringBasedReactiveCosmosQuery.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/StringBasedReactiveCosmosQuery.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/package-info.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/package-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/package-info.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/repository/support/package-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/module-info.java b/sdk/spring/azure-spring-data-cosmos/src/main/java/module-info.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/java/module-info.java rename to sdk/spring/azure-spring-data-cosmos/src/main/java/module-info.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/resources/META-INF/azure-spring-data-cosmos.properties b/sdk/spring/azure-spring-data-cosmos/src/main/resources/META-INF/azure-spring-data-cosmos.properties similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/resources/META-INF/azure-spring-data-cosmos.properties rename to sdk/spring/azure-spring-data-cosmos/src/main/resources/META-INF/azure-spring-data-cosmos.properties diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/resources/META-INF/spring.factories b/sdk/spring/azure-spring-data-cosmos/src/main/resources/META-INF/spring.factories similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/main/resources/META-INF/spring.factories rename to sdk/spring/azure-spring-data-cosmos/src/main/resources/META-INF/spring.factories diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AnnotatedQueriesUserReactiveRepositoryCodeSnippet.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AnnotatedQueriesUserReactiveRepositoryCodeSnippet.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AnnotatedQueriesUserReactiveRepositoryCodeSnippet.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AnnotatedQueriesUserReactiveRepositoryCodeSnippet.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AnnotatedQueriesUserRepositoryCodeSnippet.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AnnotatedQueriesUserRepositoryCodeSnippet.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AnnotatedQueriesUserRepositoryCodeSnippet.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AnnotatedQueriesUserRepositoryCodeSnippet.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AppConfiguration.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AppConfiguration.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AppConfiguration.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AppConfiguration.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AppConfigurationCodeSnippet.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AppConfigurationCodeSnippet.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AppConfigurationCodeSnippet.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AppConfigurationCodeSnippet.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AuditableUser.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AuditableUser.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AuditableUser.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/AuditableUser.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/CosmosIndexingPolicyCodeSnippet.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/CosmosIndexingPolicyCodeSnippet.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/CosmosIndexingPolicyCodeSnippet.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/CosmosIndexingPolicyCodeSnippet.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/CosmosProperties.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/CosmosProperties.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/CosmosProperties.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/CosmosProperties.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/CosmosUniqueKeyPolicyCodeSnippet.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/CosmosUniqueKeyPolicyCodeSnippet.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/CosmosUniqueKeyPolicyCodeSnippet.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/CosmosUniqueKeyPolicyCodeSnippet.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/GeneratedIdEntity.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/GeneratedIdEntity.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/GeneratedIdEntity.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/GeneratedIdEntity.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/MultiTenantDBCosmosFactory.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/MultiTenantDBCosmosFactory.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/MultiTenantDBCosmosFactory.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/MultiTenantDBCosmosFactory.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/MyItem.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/MyItem.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/MyItem.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/MyItem.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/NestedEntitySample.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/NestedEntitySample.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/NestedEntitySample.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/NestedEntitySample.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/NestedPartitionKeyEntitySample.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/NestedPartitionKeyEntitySample.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/NestedPartitionKeyEntitySample.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/NestedPartitionKeyEntitySample.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/ObjectMapperConfigurationCodeSnippet.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/ObjectMapperConfigurationCodeSnippet.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/ObjectMapperConfigurationCodeSnippet.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/ObjectMapperConfigurationCodeSnippet.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/PageableRepositoryCodeSnippet.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/PageableRepositoryCodeSnippet.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/PageableRepositoryCodeSnippet.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/PageableRepositoryCodeSnippet.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/SampleApplication.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/SampleApplication.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/SampleApplication.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/SampleApplication.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/SliceQueriesUserRepository.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/SliceQueriesUserRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/SliceQueriesUserRepository.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/SliceQueriesUserRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/SliceRepositoryCodeSnippet.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/SliceRepositoryCodeSnippet.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/SliceRepositoryCodeSnippet.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/SliceRepositoryCodeSnippet.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/User.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/User.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/User.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/User.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/UserRepository.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/UserRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/UserRepository.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/UserRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/UserRepositoryConfiguration.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/UserRepositoryConfiguration.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/UserRepositoryConfiguration.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/UserRepositoryConfiguration.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/UserSample.java b/sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/UserSample.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/UserSample.java rename to sdk/spring/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos/UserSample.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/ExpressionResolverUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/ExpressionResolverUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/ExpressionResolverUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/ExpressionResolverUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/MemoizerUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/MemoizerUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/MemoizerUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/MemoizerUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/PropertyLoaderUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/PropertyLoaderUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/PropertyLoaderUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/PropertyLoaderUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/TestConstants.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/TestConstants.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/TestConstants.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/common/TestConstants.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/CosmosFactoryUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/CosmosFactoryUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/CosmosFactoryUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/CosmosFactoryUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateIllegalTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateIllegalTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateIllegalTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateIllegalTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/convert/ZonedDateTimeDeserializerTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/convert/ZonedDateTimeDeserializerTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/convert/ZonedDateTimeDeserializerTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/convert/ZonedDateTimeDeserializerTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/converter/MappingCosmosConverterUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/converter/MappingCosmosConverterUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/converter/MappingCosmosConverterUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/converter/MappingCosmosConverterUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/generator/AbstractQueryGeneratorTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/generator/AbstractQueryGeneratorTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/generator/AbstractQueryGeneratorTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/generator/AbstractQueryGeneratorTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/generator/NativeQueryGeneratorTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/generator/NativeQueryGeneratorTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/generator/NativeQueryGeneratorTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/generator/NativeQueryGeneratorTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/mapping/BasicCosmosPersistentEntityUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/mapping/BasicCosmosPersistentEntityUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/mapping/BasicCosmosPersistentEntityUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/mapping/BasicCosmosPersistentEntityUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/mapping/CosmosMappingContextUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/mapping/CosmosMappingContextUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/mapping/CosmosMappingContextUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/mapping/CosmosMappingContextUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/CosmosEventListenerUnitTests.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/CosmosEventListenerUnitTests.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/CosmosEventListenerUnitTests.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/mapping/event/CosmosEventListenerUnitTests.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/query/CosmosQueryUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/query/CosmosQueryUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/query/CosmosQueryUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/query/CosmosQueryUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/query/CriteriaUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/query/CriteriaUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/query/CriteriaUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/core/query/CriteriaUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Address.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Address.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Address.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Address.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/IPerson.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/IPerson.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/IPerson.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/IPerson.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Importance.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Importance.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Importance.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Importance.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/LongIdDomain.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/LongIdDomain.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/LongIdDomain.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/LongIdDomain.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Memo.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Memo.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Memo.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Memo.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/NoDBAnnotationPerson.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/NoDBAnnotationPerson.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/NoDBAnnotationPerson.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/NoDBAnnotationPerson.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Person.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Person.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Person.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Person.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/PersonWithEtag.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/PersonWithEtag.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/PersonWithEtag.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/PersonWithEtag.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Role.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Role.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Role.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Role.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Student.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Student.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Student.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/Student.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/TimeToLiveSample.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/TimeToLiveSample.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/TimeToLiveSample.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/TimeToLiveSample.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/UUIDIdDomain.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/UUIDIdDomain.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/UUIDIdDomain.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/domain/UUIDIdDomain.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/CosmosAnnotationUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/CosmosAnnotationUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/CosmosAnnotationUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/CosmosAnnotationUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/SimpleCosmosRepositoryIllegalTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/SimpleCosmosRepositoryIllegalTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/SimpleCosmosRepositoryIllegalTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/SimpleCosmosRepositoryIllegalTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/SimpleCosmosRepositoryUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/SimpleCosmosRepositoryUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/SimpleCosmosRepositoryUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/SimpleCosmosRepositoryUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/config/CosmosRepositoryConfigurationExtensionUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/config/CosmosRepositoryConfigurationExtensionUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/config/CosmosRepositoryConfigurationExtensionUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/config/CosmosRepositoryConfigurationExtensionUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/config/ReactiveCosmosRepositoryConfigurationExtensionUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/config/ReactiveCosmosRepositoryConfigurationExtensionUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/config/ReactiveCosmosRepositoryConfigurationExtensionUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/config/ReactiveCosmosRepositoryConfigurationExtensionUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/query/AbstractCosmosQueryUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/query/AbstractCosmosQueryUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/query/AbstractCosmosQueryUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/query/AbstractCosmosQueryUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/query/AbstractReactiveCosmosQueryUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/query/AbstractReactiveCosmosQueryUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/query/AbstractReactiveCosmosQueryUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/query/AbstractReactiveCosmosQueryUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/repository/PersonRepository.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/repository/PersonRepository.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/repository/PersonRepository.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/repository/PersonRepository.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/support/CosmosEntityInformationUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/support/CosmosEntityInformationUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/support/CosmosEntityInformationUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/support/CosmosEntityInformationUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactoryBeanUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactoryBeanUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactoryBeanUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactoryBeanUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactoryUnitTest.java b/sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactoryUnitTest.java similarity index 100% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactoryUnitTest.java rename to sdk/spring/azure-spring-data-cosmos/src/test/java/com/azure/spring/data/cosmos/repository/support/CosmosRepositoryFactoryUnitTest.java diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/test/resources/application.properties b/sdk/spring/azure-spring-data-cosmos/src/test/resources/application.properties similarity index 67% rename from sdk/cosmos/azure-spring-data-cosmos/src/test/resources/application.properties rename to sdk/spring/azure-spring-data-cosmos/src/test/resources/application.properties index 1de816db1685c..77f6fb59513f0 100644 --- a/sdk/cosmos/azure-spring-data-cosmos/src/test/resources/application.properties +++ b/sdk/spring/azure-spring-data-cosmos/src/test/resources/application.properties @@ -1,6 +1,6 @@ -cosmos.uri=${ACCOUNT_HOST} -cosmos.key=${ACCOUNT_KEY} -cosmos.secondaryKey=${SECONDARY_ACCOUNT_KEY} +cosmos.uri=${COSMOS_SPRING_ACCOUNT_HOST} +cosmos.key=${COSMOS_SPRING_ACCOUNT_KEY} +cosmos.secondaryKey=${COSMOS_SPRING_SECONDARY_ACCOUNT_KEY} dynamic.collection.name=spel-property-collection # Populate query metrics @@ -13,9 +13,9 @@ cosmos.maxBufferedItemCount=0 cosmos.responseContinuationTokenLimitInKb=0 # Secondary DataSource Config -cosmos.secondary.uri=${NEW_ACCOUNT_HOST} -cosmos.secondary.key=${NEW_ACCOUNT_KEY} -cosmos.secondary.secondaryKey=${NEW_SECONDARY_ACCOUNT_KEY} +cosmos.secondary.uri=${COSMOS_SPRING_NEW_ACCOUNT_HOST} +cosmos.secondary.key=${COSMOS_SPRING_NEW_ACCOUNT_KEY} +cosmos.secondary.secondaryKey=${COSMOS_SPRING_NEW_SECONDARY_ACCOUNT_KEY} # Populate query metrics cosmos.secondary.queryMetricsEnabled=true diff --git a/sdk/spring/ci.yml b/sdk/spring/ci.yml index 81f1279221e33..a5018d46dcef0 100644 --- a/sdk/spring/ci.yml +++ b/sdk/spring/ci.yml @@ -27,6 +27,10 @@ pr: # boolean for each library. Note: AdditionalModules are never to have # parameter entries as those are not releasing libraries. parameters: +- name: release_azurespringdatacosmos + displayName: 'azure-spring-data-cosmos' + type: boolean + default: true - name: release_springcloudazurecore displayName: 'spring-cloud-azure-core' type: boolean @@ -230,6 +234,10 @@ extends: ServiceDirectory: spring EnableBatchRelease: true Artifacts: + - name: azure-spring-data-cosmos + groupId: com.azure + safeName: azurespringdatacosmos + releaseInBatch: ${{ parameters.release_azurespringdatacosmos }} - name: spring-cloud-azure-core groupId: com.azure.spring safeName: springcloudazurecore @@ -574,3 +582,6 @@ extends: skipPublishDocGithubIo: true skipPublishDocMs: true releaseInBatch: ${{ parameters.release_springcloudazurestarterappconfigurationconfig }} + AdditionalModules: + - name: azure-spring-data-cosmos-test + groupId: com.azure diff --git a/sdk/cosmos/integration-matrix.json b/sdk/spring/cosmos-integration-matrix.json similarity index 100% rename from sdk/cosmos/integration-matrix.json rename to sdk/spring/cosmos-integration-matrix.json diff --git a/sdk/spring/pom.xml b/sdk/spring/pom.xml index 4541ce3359532..3ed4d637fabf4 100644 --- a/sdk/spring/pom.xml +++ b/sdk/spring/pom.xml @@ -66,6 +66,8 @@ spring-cloud-azure-feature-management spring-cloud-azure-feature-management-web spring-cloud-azure-starter-appconfiguration-config + azure-spring-data-cosmos + azure-spring-data-cosmos-test @@ -124,6 +126,8 @@ spring-cloud-azure-feature-management spring-cloud-azure-feature-management-web spring-cloud-azure-starter-appconfiguration-config + azure-spring-data-cosmos + azure-spring-data-cosmos-test diff --git a/sdk/spring/spring-cloud-azure-integration-tests/test-resources/cosmos-spring/test-resources.json b/sdk/spring/spring-cloud-azure-integration-tests/test-resources/cosmos-spring/test-resources.json new file mode 100644 index 0000000000000..7cdd90f6ec52b --- /dev/null +++ b/sdk/spring/spring-cloud-azure-integration-tests/test-resources/cosmos-spring/test-resources.json @@ -0,0 +1,146 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "baseName": { + "type": "string" + }, + "enableMultipleWriteLocations" : { + "type": "bool", + "metadata": { + "description": "Flag to enable or disable multiple write locations on CosmosDB Account" + } + }, + "defaultConsistencyLevel": { + "type": "string", + "metadata": { + "description": "Default Cosmosdb Account level consistency" + } + }, + "enableMultipleRegions": { + "type": "bool", + "metadata": { + "description": "Enable multiple regions, default value is false" + }, + "defaultValue": false + }, + "enablePartitionMerge": { + "type": "bool", + "metadata": { + "description": "Enable partition merge, default value is false" + }, + "defaultValue": false + } + }, + "variables": { + "apiVersion": "2022-08-15", + "accountName": "[toLower(parameters('baseName'))]", + "newAccountName": "[toLower(concat(parameters('baseName'), '2'))]", + "resourceId": "[resourceId('Microsoft.DocumentDB/databaseAccounts', variables('accountName'))]", + "newResourceId": "[resourceId('Microsoft.DocumentDB/databaseAccounts', variables('newAccountName'))]", + "singleRegionConfiguration": [ + { + "locationName": "West Central US", + "provisioningState": "Succeeded", + "failoverPriority": 0, + "isZoneRedundant": false + }], + "multiRegionConfiguration": [ + { + "locationName": "West Central US", + "provisioningState": "Succeeded", + "failoverPriority": 0, + "isZoneRedundant": false + }, + { + "locationName": "Central US", + "provisioningState": "Succeeded", + "failoverPriority": 1, + "isZoneRedundant": false + } + ], + "locationsConfiguration": "[if(parameters('enableMultipleRegions'), variables('multiRegionConfiguration'), variables('singleRegionConfiguration'))]" + }, + "resources": [ + { + "type": "Microsoft.DocumentDB/databaseAccounts", + "apiVersion": "[variables('apiVersion')]", + "name": "[variables('accountName')]", + "location": "[resourceGroup().location]", + "kind": "GlobalDocumentDB", + "properties": { + "publicNetworkAccess": "Enabled", + "enableAutomaticFailover": false, + "enableMultipleWriteLocations": "[parameters('enableMultipleWriteLocations')]", + "enablePartitionMerge": "[parameters('enablePartitionMerge')]", + "isVirtualNetworkFilterEnabled": false, + "virtualNetworkRules": [], + "disableKeyBasedMetadataWriteAccess": false, + "enableFreeTier": false, + "enableAnalyticalStorage": false, + "databaseAccountOfferType": "Standard", + "consistencyPolicy": { + "defaultConsistencyLevel": "[parameters('defaultConsistencyLevel')]", + "maxIntervalInSeconds": 5, + "maxStalenessPrefix": 100 + }, + "locations": "[variables('locationsConfiguration')]", + "capabilities": [], + "ipRules": [] + } + }, + { + "type": "Microsoft.DocumentDB/databaseAccounts", + "apiVersion": "[variables('apiVersion')]", + "name": "[variables('newAccountName')]", + "location": "[resourceGroup().location]", + "kind": "GlobalDocumentDB", + "properties": { + "publicNetworkAccess": "Enabled", + "enableAutomaticFailover": false, + "enableMultipleWriteLocations": "[parameters('enableMultipleWriteLocations')]", + "enablePartitionMerge": "[parameters('enablePartitionMerge')]", + "isVirtualNetworkFilterEnabled": false, + "virtualNetworkRules": [], + "disableKeyBasedMetadataWriteAccess": false, + "enableFreeTier": false, + "enableAnalyticalStorage": false, + "databaseAccountOfferType": "Standard", + "consistencyPolicy": { + "defaultConsistencyLevel": "[parameters('defaultConsistencyLevel')]", + "maxIntervalInSeconds": 5, + "maxStalenessPrefix": 100 + }, + "locations": "[variables('locationsConfiguration')]", + "capabilities": [], + "ipRules": [] + } + } + ], + "outputs": { + "COSMOS_SPRING_ACCOUNT_HOST": { + "type": "string", + "value": "[reference(variables('resourceId'), variables('apiVersion')).documentEndpoint]" + }, + "COSMOS_SPRING_ACCOUNT_KEY": { + "type": "string", + "value": "[listKeys(variables('resourceId'), variables('apiVersion')).primaryMasterKey]" + }, + "COSMOS_SPRING_SECONDARY_ACCOUNT_KEY": { + "type": "string", + "value": "[listKeys(variables('resourceId'), variables('apiVersion')).secondaryMasterKey]" + }, + "COSMOS_SPRING_NEW_ACCOUNT_HOST": { + "type": "string", + "value": "[reference(variables('newResourceId'), variables('apiVersion')).documentEndpoint]" + }, + "COSMOS_SPRING_NEW_ACCOUNT_KEY": { + "type": "string", + "value": "[listKeys(variables('newResourceId'), variables('apiVersion')).primaryMasterKey]" + }, + "COSMOS_SPRING_NEW_SECONDARY_ACCOUNT_KEY": { + "type": "string", + "value": "[listKeys(variables('newResourceId'), variables('apiVersion')).secondaryMasterKey]" + } + } +} diff --git a/sdk/spring/tests.yml b/sdk/spring/tests.yml index 4d2d00330a683..e242bddc6355b 100644 --- a/sdk/spring/tests.yml +++ b/sdk/spring/tests.yml @@ -19,6 +19,7 @@ stages: - spring/spring-cloud-azure-integration-tests/test-resources/jdbc/mysql - spring/spring-cloud-azure-integration-tests/test-resources/appconfiguration - spring/spring-cloud-azure-integration-tests/test-resources/cosmos + - spring/spring-cloud-azure-integration-tests/test-resources/cosmos-spring - spring/spring-cloud-azure-integration-tests/test-resources/servicebus - spring/spring-cloud-azure-integration-tests/test-resources/eventhubs - spring/spring-cloud-azure-integration-tests/test-resources/storage