The TestRepositoryConfig configuration allows for specifying the cosmos database to use for integration tests via the cosmosdb.database property name. This minimizes the number of collections created which is very useful if you don't have unlimited Azure credits. Instead of injecting cosmosdb.uri and cosmosdb.key and manually creating CosmosDbConfig, this PR updates those files to apply TestRepositoryConfig and autowire the CosmosDbConfig.
In addition, RoleRepositoryCollectionIT is updated to add assertions.
The TestRepositoryConfig configuration allows for specifying the cosmos database to use for integration tests via the
cosmosdb.database
property name. This minimizes the number of collections created which is very useful if you don't have unlimited Azure credits. Instead of injectingcosmosdb.uri
andcosmosdb.key
and manually creating CosmosDbConfig, this PR updates those files to apply TestRepositoryConfig and autowire the CosmosDbConfig.In addition, RoleRepositoryCollectionIT is updated to add assertions.