You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

264 lines
11 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. version: '3.4'
  2. services:
  3. rabbitmq-test:
  4. ports:
  5. - "15672:15672"
  6. - "5672:5672"
  7. sql-data-test:
  8. environment:
  9. - SA_PASSWORD=Pass@word
  10. - ACCEPT_EULA=Y
  11. ports:
  12. - "5433:1433"
  13. nosql-data-test:
  14. ports:
  15. - "27017:27017"
  16. basket-data-test:
  17. ports:
  18. - "6379:6379"
  19. identity-api-test:
  20. environment:
  21. - ASPNETCORE_ENVIRONMENT=Development
  22. - ASPNETCORE_URLS=http://0.0.0.0:80
  23. - SpaClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5104
  24. - XamarinCallback=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105/xamarincallback
  25. - ConnectionString=${ESHOP_AZURE_IDENTITY_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word}
  26. - MvcClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5100
  27. - LocationApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5109
  28. - MarketingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
  29. - BasketApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
  30. - OrderingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
  31. - MobileShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5120
  32. - WebShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5121
  33. - UseCustomizationData=True
  34. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  35. - OrchestratorType=${ORCHESTRATOR_TYPE}
  36. ports:
  37. - "5105:80"
  38. basket-api-test:
  39. environment:
  40. - ASPNETCORE_ENVIRONMENT=Development
  41. - ASPNETCORE_URLS=http://0.0.0.0:80
  42. - ConnectionString=${ESHOP_AZURE_REDIS_BASKET_DB:-basket-data-test}
  43. - identityUrl=http://identity-api
  44. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  45. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  46. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  47. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  48. - AzureServiceBusEnabled=False
  49. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  50. - OrchestratorType=${ORCHESTRATOR_TYPE}
  51. - UseLoadTest=${USE_LOADTEST:-False}
  52. ports:
  53. - "5103:80"
  54. entrypoint:
  55. - dotnet
  56. - test
  57. - --logger
  58. - trx;LogFileName=/tests/basket-test-results.xml
  59. basket-api-unit-test:
  60. environment:
  61. - ASPNETCORE_ENVIRONMENT=Development
  62. - ASPNETCORE_URLS=http://0.0.0.0:80
  63. - ConnectionString=${ESHOP_AZURE_REDIS_BASKET_DB:-basket-data-test}
  64. - identityUrl=http://identity-api
  65. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  66. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  67. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  68. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  69. - AzureServiceBusEnabled=False
  70. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  71. - OrchestratorType=${ORCHESTRATOR_TYPE}
  72. - UseLoadTest=${USE_LOADTEST:-False}
  73. ports:
  74. - "5113:80"
  75. entrypoint:
  76. - dotnet
  77. - test
  78. - --logger
  79. - trx;LogFileName=/tests/basket-unit-test-results.xml
  80. catalog-api-test:
  81. environment:
  82. - ASPNETCORE_ENVIRONMENT=Development
  83. - ASPNETCORE_URLS=http://0.0.0.0:80
  84. - ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
  85. - PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG_URL:-http://localhost:5202/api/v1/c/catalog/items/[0]/pic/}
  86. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  87. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  88. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  89. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
  90. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
  91. - UseCustomizationData=True
  92. - AzureServiceBusEnabled=False
  93. - AzureStorageEnabled=False
  94. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  95. - OrchestratorType=${ORCHESTRATOR_TYPE}
  96. ports:
  97. - "5101:80"
  98. entrypoint:
  99. - dotnet
  100. - test
  101. - --logger
  102. - trx;LogFileName=/tests/catalog-test-results.xml
  103. catalog-api-unit-test:
  104. environment:
  105. - ASPNETCORE_ENVIRONMENT=Development
  106. - ASPNETCORE_URLS=http://0.0.0.0:80
  107. - ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
  108. - PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG_URL:-http://localhost:5202/api/v1/c/catalog/items/[0]/pic/}
  109. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  110. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  111. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  112. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
  113. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
  114. - UseCustomizationData=True
  115. - AzureServiceBusEnabled=False
  116. - AzureStorageEnabled=False
  117. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  118. - OrchestratorType=${ORCHESTRATOR_TYPE}
  119. ports:
  120. - "5191:80"
  121. entrypoint:
  122. - dotnet
  123. - test
  124. - --logger
  125. - trx;LogFileName=/tests/catalog-unit-test-results.xml
  126. ordering-api-test:
  127. environment:
  128. - ASPNETCORE_ENVIRONMENT=Development
  129. - ASPNETCORE_URLS=http://0.0.0.0:80
  130. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  131. - identityUrl=http://identity-api
  132. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  133. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  134. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  135. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  136. - UseCustomizationData=True
  137. - AzureServiceBusEnabled=False
  138. - CheckUpdateTime=30000
  139. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  140. - OrchestratorType=${ORCHESTRATOR_TYPE}
  141. - UseLoadTest=${USE_LOADTEST:-False}
  142. ports:
  143. - "5102:80"
  144. entrypoint:
  145. - dotnet
  146. - test
  147. - --logger
  148. - trx;LogFileName=/tests/ordering-test-results.xml
  149. ordering-api-unit-test:
  150. environment:
  151. - ASPNETCORE_ENVIRONMENT=Development
  152. - ASPNETCORE_URLS=http://0.0.0.0:80
  153. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  154. - identityUrl=http://identity-api
  155. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  156. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  157. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  158. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  159. - UseCustomizationData=True
  160. - AzureServiceBusEnabled=False
  161. - CheckUpdateTime=30000
  162. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  163. - OrchestratorType=${ORCHESTRATOR_TYPE}
  164. - UseLoadTest=${USE_LOADTEST:-False}
  165. ports:
  166. - "5112:80"
  167. entrypoint:
  168. - dotnet
  169. - test
  170. - --logger
  171. - trx;LogFileName=/tests/ordering-unit-test-results.xml
  172. ordering-backgroundtasks-test:
  173. environment:
  174. - ASPNETCORE_ENVIRONMENT=Development
  175. - ASPNETCORE_URLS=http://0.0.0.0:80
  176. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  177. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  178. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  179. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  180. - UseCustomizationData=True
  181. - AzureServiceBusEnabled=False
  182. - CheckUpdateTime=30000
  183. - GracePeriodTime=1
  184. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  185. - OrchestratorType=${ORCHESTRATOR_TYPE}
  186. - UseLoadTest=${USE_LOADTEST:-False}
  187. ports:
  188. - "5111:80"
  189. marketing-api-test:
  190. environment:
  191. - ASPNETCORE_ENVIRONMENT=Development
  192. - ASPNETCORE_URLS=http://0.0.0.0:80
  193. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  194. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql-data-test}
  195. - MongoDatabase=MarketingDb
  196. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  197. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  198. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  199. - identityUrl=http://identity-api
  200. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  201. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  202. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING_URL:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
  203. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  204. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  205. - AzureServiceBusEnabled=False
  206. - AzureStorageEnabled=False
  207. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  208. - OrchestratorType=${ORCHESTRATOR_TYPE}
  209. - UseLoadTest=${USE_LOADTEST:-False}
  210. ports:
  211. - "5110:80"
  212. entrypoint:
  213. - dotnet
  214. - test
  215. - --logger
  216. - trx;LogFileName=/tests/marketing-test-results.xml
  217. payment-api-test:
  218. environment:
  219. - ASPNETCORE_ENVIRONMENT=Development
  220. - ASPNETCORE_URLS=http://0.0.0.0:80
  221. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  222. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  223. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  224. - AzureServiceBusEnabled=False
  225. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  226. - OrchestratorType=${ORCHESTRATOR_TYPE}
  227. ports:
  228. - "5108:80"
  229. locations-api-test:
  230. environment:
  231. - ASPNETCORE_ENVIRONMENT=Development
  232. - ASPNETCORE_URLS=http://0.0.0.0:80
  233. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql-data-test}
  234. - Database=LocationsDb
  235. - identityUrl=http://identity-api
  236. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  237. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  238. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  239. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  240. - AzureServiceBusEnabled=False
  241. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  242. - OrchestratorType=${ORCHESTRATOR_TYPE}
  243. - UseLoadTest=${USE_LOADTEST:-False}
  244. ports:
  245. - "5109:80"
  246. entrypoint:
  247. - dotnet
  248. - test
  249. - --logger
  250. - trx;LogFileName=/tests/locations-test-results.xml