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.

246 lines
9.8 KiB

6 years ago
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. marketing-api-test:
  173. environment:
  174. - ASPNETCORE_ENVIRONMENT=Development
  175. - ASPNETCORE_URLS=http://0.0.0.0:80
  176. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  177. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql-data-test}
  178. - MongoDatabase=MarketingDb
  179. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  180. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  181. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  182. - identityUrl=http://identity-api
  183. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  184. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  185. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING_URL:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
  186. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  187. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  188. - AzureServiceBusEnabled=False
  189. - AzureStorageEnabled=False
  190. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  191. - OrchestratorType=${ORCHESTRATOR_TYPE}
  192. - UseLoadTest=${USE_LOADTEST:-False}
  193. ports:
  194. - "5110:80"
  195. entrypoint:
  196. - dotnet
  197. - test
  198. - --logger
  199. - trx;LogFileName=/tests/marketing-test-results.xml
  200. payment-api-test:
  201. environment:
  202. - ASPNETCORE_ENVIRONMENT=Development
  203. - ASPNETCORE_URLS=http://0.0.0.0:80
  204. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  205. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  206. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  207. - AzureServiceBusEnabled=False
  208. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  209. - OrchestratorType=${ORCHESTRATOR_TYPE}
  210. ports:
  211. - "5108:80"
  212. locations-api-test:
  213. environment:
  214. - ASPNETCORE_ENVIRONMENT=Development
  215. - ASPNETCORE_URLS=http://0.0.0.0:80
  216. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql-data-test}
  217. - Database=LocationsDb
  218. - identityUrl=http://identity-api
  219. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  220. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  221. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  222. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  223. - AzureServiceBusEnabled=False
  224. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  225. - OrchestratorType=${ORCHESTRATOR_TYPE}
  226. - UseLoadTest=${USE_LOADTEST:-False}
  227. ports:
  228. - "5109:80"
  229. entrypoint:
  230. - dotnet
  231. - test
  232. - --logger
  233. - trx;LogFileName=/tests/locations-test-results.xml