add test to CI
This commit is contained in:
parent
bb8dd63e69
commit
8cdfbfb941
193
docker-compose-tests.override.yml
Normal file
193
docker-compose-tests.override.yml
Normal file
@ -0,0 +1,193 @@
|
|||||||
|
version: '3.4'
|
||||||
|
|
||||||
|
services:
|
||||||
|
rabbitmq-test:
|
||||||
|
ports:
|
||||||
|
- "15672:15672"
|
||||||
|
- "5672:5672"
|
||||||
|
|
||||||
|
sql-data-test:
|
||||||
|
environment:
|
||||||
|
- SA_PASSWORD=Pass@word
|
||||||
|
- ACCEPT_EULA=Y
|
||||||
|
ports:
|
||||||
|
- "5433:1433"
|
||||||
|
|
||||||
|
nosql-data-test:
|
||||||
|
ports:
|
||||||
|
- "27017:27017"
|
||||||
|
|
||||||
|
basket-data-test:
|
||||||
|
ports:
|
||||||
|
- "6379:6379"
|
||||||
|
|
||||||
|
identity-api-test:
|
||||||
|
environment:
|
||||||
|
- ASPNETCORE_ENVIRONMENT=Development
|
||||||
|
- ASPNETCORE_URLS=http://0.0.0.0:80
|
||||||
|
- SpaClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5104
|
||||||
|
- XamarinCallback=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105/xamarincallback
|
||||||
|
- ConnectionString=${ESHOP_AZURE_IDENTITY_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word}
|
||||||
|
- MvcClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5100
|
||||||
|
- LocationApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5109
|
||||||
|
- MarketingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
|
||||||
|
- BasketApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
|
||||||
|
- OrderingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
|
||||||
|
- MobileShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5120
|
||||||
|
- WebShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5121
|
||||||
|
- UseCustomizationData=True
|
||||||
|
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
|
||||||
|
- OrchestratorType=${ORCHESTRATOR_TYPE}
|
||||||
|
ports:
|
||||||
|
- "5105:80"
|
||||||
|
|
||||||
|
basket-api-test:
|
||||||
|
environment:
|
||||||
|
- ASPNETCORE_ENVIRONMENT=Development
|
||||||
|
- ASPNETCORE_URLS=http://0.0.0.0:80
|
||||||
|
- ConnectionString=${ESHOP_AZURE_REDIS_BASKET_DB:-basket-data-test}
|
||||||
|
- identityUrl=http://identity-api
|
||||||
|
- IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
|
||||||
|
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
|
||||||
|
- EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
|
||||||
|
- EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
|
||||||
|
- AzureServiceBusEnabled=False
|
||||||
|
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
|
||||||
|
- OrchestratorType=${ORCHESTRATOR_TYPE}
|
||||||
|
- UseLoadTest=${USE_LOADTEST:-False}
|
||||||
|
ports:
|
||||||
|
- "5103:80"
|
||||||
|
entrypoint:
|
||||||
|
- dotnet
|
||||||
|
- test
|
||||||
|
- --logger
|
||||||
|
- trx;LogFileName=basket-test-results.xml
|
||||||
|
|
||||||
|
catalog-api-test:
|
||||||
|
environment:
|
||||||
|
- ASPNETCORE_ENVIRONMENT=Development
|
||||||
|
- ASPNETCORE_URLS=http://0.0.0.0:80
|
||||||
|
- ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
|
||||||
|
- PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG_URL:-http://localhost:5202/api/v1/c/catalog/items/[0]/pic/}
|
||||||
|
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
|
||||||
|
- EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
|
||||||
|
- EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
|
||||||
|
- AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
|
||||||
|
- AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
|
||||||
|
- UseCustomizationData=True
|
||||||
|
- AzureServiceBusEnabled=False
|
||||||
|
- AzureStorageEnabled=False
|
||||||
|
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
|
||||||
|
- OrchestratorType=${ORCHESTRATOR_TYPE}
|
||||||
|
ports:
|
||||||
|
- "5101:80"
|
||||||
|
entrypoint:
|
||||||
|
- dotnet
|
||||||
|
- test
|
||||||
|
- --logger
|
||||||
|
- trx;LogFileName=catalog-test-results.xml
|
||||||
|
|
||||||
|
ordering-api-test:
|
||||||
|
environment:
|
||||||
|
- ASPNETCORE_ENVIRONMENT=Development
|
||||||
|
- ASPNETCORE_URLS=http://0.0.0.0:80
|
||||||
|
- ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
|
||||||
|
- identityUrl=http://identity-api
|
||||||
|
- IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
|
||||||
|
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
|
||||||
|
- EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
|
||||||
|
- EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
|
||||||
|
- UseCustomizationData=True
|
||||||
|
- AzureServiceBusEnabled=False
|
||||||
|
- CheckUpdateTime=30000
|
||||||
|
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
|
||||||
|
- OrchestratorType=${ORCHESTRATOR_TYPE}
|
||||||
|
- UseLoadTest=${USE_LOADTEST:-False}
|
||||||
|
ports:
|
||||||
|
- "5102:80"
|
||||||
|
entrypoint:
|
||||||
|
- dotnet
|
||||||
|
- test
|
||||||
|
- --logger
|
||||||
|
- trx;LogFileName=ordering-test-results.xml
|
||||||
|
|
||||||
|
ordering-backgroundtasks-test:
|
||||||
|
environment:
|
||||||
|
- ASPNETCORE_ENVIRONMENT=Development
|
||||||
|
- ASPNETCORE_URLS=http://0.0.0.0:80
|
||||||
|
- ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
|
||||||
|
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
|
||||||
|
- EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
|
||||||
|
- EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
|
||||||
|
- UseCustomizationData=True
|
||||||
|
- AzureServiceBusEnabled=False
|
||||||
|
- CheckUpdateTime=30000
|
||||||
|
- GracePeriodTime=1
|
||||||
|
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
|
||||||
|
- OrchestratorType=${ORCHESTRATOR_TYPE}
|
||||||
|
- UseLoadTest=${USE_LOADTEST:-False}
|
||||||
|
ports:
|
||||||
|
- "5111:80"
|
||||||
|
|
||||||
|
marketing-api-test:
|
||||||
|
environment:
|
||||||
|
- ASPNETCORE_ENVIRONMENT=Development
|
||||||
|
- ASPNETCORE_URLS=http://0.0.0.0:80
|
||||||
|
- ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
|
||||||
|
- MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql-data-test}
|
||||||
|
- MongoDatabase=MarketingDb
|
||||||
|
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
|
||||||
|
- EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
|
||||||
|
- EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
|
||||||
|
- identityUrl=http://identity-api
|
||||||
|
- IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
|
||||||
|
- CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
|
||||||
|
- PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING_URL:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
|
||||||
|
- AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
|
||||||
|
- AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
|
||||||
|
- AzureServiceBusEnabled=False
|
||||||
|
- AzureStorageEnabled=False
|
||||||
|
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
|
||||||
|
- OrchestratorType=${ORCHESTRATOR_TYPE}
|
||||||
|
- UseLoadTest=${USE_LOADTEST:-False}
|
||||||
|
ports:
|
||||||
|
- "5110:80"
|
||||||
|
entrypoint:
|
||||||
|
- dotnet
|
||||||
|
- test
|
||||||
|
- --logger:trx;LogFileName=marketing-test-results.xml
|
||||||
|
|
||||||
|
payment-api-test:
|
||||||
|
environment:
|
||||||
|
- ASPNETCORE_ENVIRONMENT=Development
|
||||||
|
- ASPNETCORE_URLS=http://0.0.0.0:80
|
||||||
|
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
|
||||||
|
- EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
|
||||||
|
- EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
|
||||||
|
- AzureServiceBusEnabled=False
|
||||||
|
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
|
||||||
|
- OrchestratorType=${ORCHESTRATOR_TYPE}
|
||||||
|
ports:
|
||||||
|
- "5108:80"
|
||||||
|
|
||||||
|
locations-api-test:
|
||||||
|
environment:
|
||||||
|
- ASPNETCORE_ENVIRONMENT=Development
|
||||||
|
- ASPNETCORE_URLS=http://0.0.0.0:80
|
||||||
|
- ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql-data-test}
|
||||||
|
- Database=LocationsDb
|
||||||
|
- identityUrl=http://identity-api
|
||||||
|
- IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
|
||||||
|
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
|
||||||
|
- EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
|
||||||
|
- EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
|
||||||
|
- AzureServiceBusEnabled=False
|
||||||
|
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
|
||||||
|
- OrchestratorType=${ORCHESTRATOR_TYPE}
|
||||||
|
- UseLoadTest=${USE_LOADTEST:-False}
|
||||||
|
ports:
|
||||||
|
- "5109:80"
|
||||||
|
entrypoint:
|
||||||
|
- dotnet
|
||||||
|
- test
|
||||||
|
- --logger:trx;LogFileName=locations-test-results.xml
|
105
docker-compose-tests.yml
Normal file
105
docker-compose-tests.yml
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
version: '3.4'
|
||||||
|
|
||||||
|
services:
|
||||||
|
rabbitmq-test:
|
||||||
|
image: rabbitmq:3-management-alpine
|
||||||
|
|
||||||
|
basket-data-test:
|
||||||
|
image: redis:alpine
|
||||||
|
|
||||||
|
sql-data-test:
|
||||||
|
image: microsoft/mssql-server-linux:2017-latest
|
||||||
|
|
||||||
|
nosql-data-test:
|
||||||
|
image: mongo
|
||||||
|
|
||||||
|
identity-api-test:
|
||||||
|
image: eshop/identity-api-test:${TAG:-latest}
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: src/Services/Identity/Identity.API/Dockerfile
|
||||||
|
target: functionaltest
|
||||||
|
depends_on:
|
||||||
|
- sql-data-test
|
||||||
|
|
||||||
|
basket-api-test:
|
||||||
|
image: eshop/basket-api-test:${TAG:-latest}
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: src/Services/Basket/Basket.API/Dockerfile
|
||||||
|
target: functionaltest
|
||||||
|
depends_on:
|
||||||
|
- basket-data-test
|
||||||
|
- identity-api-test
|
||||||
|
- rabbitmq-test
|
||||||
|
volumes:
|
||||||
|
- ${BUILD_ARTIFACTSTAGINGDIRECTORY:-./tests-results/}:/tests
|
||||||
|
|
||||||
|
catalog-api-test:
|
||||||
|
image: eshop/catalog-api-test:${TAG:-latest}
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: src/Services/Catalog/Catalog.API/Dockerfile
|
||||||
|
target: functionaltest
|
||||||
|
depends_on:
|
||||||
|
- sql-data-test
|
||||||
|
- rabbitmq-test
|
||||||
|
volumes:
|
||||||
|
- ${BUILD_ARTIFACTSTAGINGDIRECTORY:-./tests-results/}:/tests
|
||||||
|
|
||||||
|
ordering-api-test:
|
||||||
|
image: eshop/ordering-api-test:${TAG:-latest}
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: src/Services/Ordering/Ordering.API/Dockerfile
|
||||||
|
target: functionaltest
|
||||||
|
depends_on:
|
||||||
|
- sql-data-test
|
||||||
|
- rabbitmq-test
|
||||||
|
volumes:
|
||||||
|
- ${BUILD_ARTIFACTSTAGINGDIRECTORY:-./tests-results/}:/tests
|
||||||
|
|
||||||
|
ordering-backgroundtasks-test:
|
||||||
|
image: eshop/ordering-backgroundtasks-test:${TAG:-latest}
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: src/Services/Ordering/Ordering.BackgroundTasks/Dockerfile
|
||||||
|
target: functionaltest
|
||||||
|
depends_on:
|
||||||
|
- sql-data-test
|
||||||
|
- rabbitmq-test
|
||||||
|
|
||||||
|
marketing-api-test:
|
||||||
|
image: eshop/marketing-api-test:${TAG:-latest}
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: src/Services/Marketing/Marketing.API/Dockerfile
|
||||||
|
target: functionaltest
|
||||||
|
depends_on:
|
||||||
|
- sql-data-test
|
||||||
|
- nosql-data-test
|
||||||
|
- identity-api-test
|
||||||
|
- rabbitmq-test
|
||||||
|
volumes:
|
||||||
|
- ${BUILD_ARTIFACTSTAGINGDIRECTORY:-./tests-results/}:/tests
|
||||||
|
|
||||||
|
payment-api-test:
|
||||||
|
image: eshop/payment-api-test:${TAG:-latest}
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: src/Services/Payment/Payment.API/Dockerfile
|
||||||
|
target: functionaltest
|
||||||
|
depends_on:
|
||||||
|
- rabbitmq-test
|
||||||
|
|
||||||
|
locations-api-test:
|
||||||
|
image: eshop/locations-api-test:${TAG:-latest}
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: src/Services/Location/Locations.API/Dockerfile
|
||||||
|
target: functionaltest
|
||||||
|
depends_on:
|
||||||
|
- nosql-data-test
|
||||||
|
- rabbitmq-test
|
||||||
|
volumes:
|
||||||
|
- ${BUILD_ARTIFACTSTAGINGDIRECTORY:-./tests-results/}:/tests
|
@ -9,6 +9,13 @@ WORKDIR /src/src/Services/Basket/Basket.API
|
|||||||
RUN dotnet restore -nowarn:msb3202,nu1503
|
RUN dotnet restore -nowarn:msb3202,nu1503
|
||||||
RUN dotnet build --no-restore -c Release -o /app
|
RUN dotnet build --no-restore -c Release -o /app
|
||||||
|
|
||||||
|
FROM build as functionaltest
|
||||||
|
WORKDIR /src/src/Services/Basket/Basket.FunctionalTests
|
||||||
|
|
||||||
|
FROM build as test
|
||||||
|
WORKDIR /src/src/Services/Basket/Basket.UnitTests
|
||||||
|
RUN dotnet test --logger trx;LogFileName=basket.api.unit-test-results.xml
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
RUN dotnet publish --no-restore -c Release -o /app
|
RUN dotnet publish --no-restore -c Release -o /app
|
||||||
|
|
||||||
|
@ -9,6 +9,13 @@ WORKDIR /src/src/Services/Catalog/Catalog.API
|
|||||||
RUN dotnet restore -nowarn:msb3202,nu1503
|
RUN dotnet restore -nowarn:msb3202,nu1503
|
||||||
RUN dotnet build --no-restore -c Release -o /app
|
RUN dotnet build --no-restore -c Release -o /app
|
||||||
|
|
||||||
|
FROM build as functionaltest
|
||||||
|
WORKDIR /src/src/Services/Catalog/Catalog.FunctionalTests
|
||||||
|
|
||||||
|
FROM build as test
|
||||||
|
WORKDIR /src/src/Services/Catalog/Catalog.UnitTests
|
||||||
|
RUN dotnet test --logger trx;LogFileName=/catalog.api.unit-test-results.xml
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
RUN dotnet publish --no-restore -c Release -o /app
|
RUN dotnet publish --no-restore -c Release -o /app
|
||||||
|
|
||||||
|
@ -12,6 +12,8 @@ WORKDIR /src/src/Services/Identity/Identity.API
|
|||||||
RUN dotnet restore -nowarn:msb3202,nu1503
|
RUN dotnet restore -nowarn:msb3202,nu1503
|
||||||
RUN dotnet build --no-restore -c Release -o /app
|
RUN dotnet build --no-restore -c Release -o /app
|
||||||
|
|
||||||
|
FROM build as functionaltest
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
RUN dotnet publish --no-restore -c Release -o /app
|
RUN dotnet publish --no-restore -c Release -o /app
|
||||||
|
|
||||||
|
@ -9,6 +9,9 @@ WORKDIR /src/src/Services/Location/Locations.API
|
|||||||
RUN dotnet restore -nowarn:msb3202,nu1503
|
RUN dotnet restore -nowarn:msb3202,nu1503
|
||||||
RUN dotnet build --no-restore -c Release -o /app
|
RUN dotnet build --no-restore -c Release -o /app
|
||||||
|
|
||||||
|
FROM build as functionaltest
|
||||||
|
WORKDIR /src/src/Services/Location/Locations.FunctionalTests
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
RUN dotnet publish --no-restore -c Release -o /app
|
RUN dotnet publish --no-restore -c Release -o /app
|
||||||
|
|
||||||
|
@ -9,6 +9,9 @@ WORKDIR /src/src/Services/Marketing/Marketing.API
|
|||||||
RUN dotnet restore -nowarn:msb3202,nu1503
|
RUN dotnet restore -nowarn:msb3202,nu1503
|
||||||
RUN dotnet build --no-restore -c Release -o /app
|
RUN dotnet build --no-restore -c Release -o /app
|
||||||
|
|
||||||
|
FROM build as functionaltest
|
||||||
|
WORKDIR /src/src/Services/Marketing/Marketing.FunctionalTests
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
RUN dotnet publish --no-restore -c Release -o /app
|
RUN dotnet publish --no-restore -c Release -o /app
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ namespace Marketing.FunctionalTests
|
|||||||
[Fact]
|
[Fact]
|
||||||
public async Task Get_get_campaign_by_id_and_response_ok_status_code()
|
public async Task Get_get_campaign_by_id_and_response_ok_status_code()
|
||||||
{
|
{
|
||||||
var campaignId = 1;
|
var campaignId = 81;
|
||||||
using (var server = CreateServer())
|
using (var server = CreateServer())
|
||||||
{
|
{
|
||||||
var response = await server.CreateClient()
|
var response = await server.CreateClient()
|
||||||
|
@ -28,7 +28,7 @@ namespace Marketing.FunctionalTests
|
|||||||
[Fact]
|
[Fact]
|
||||||
public async Task Post_add_new_user_location_rule_and_response_ok_status_code()
|
public async Task Post_add_new_user_location_rule_and_response_ok_status_code()
|
||||||
{
|
{
|
||||||
var campaignId = 1;
|
var campaignId = 81;
|
||||||
|
|
||||||
using (var server = CreateServer())
|
using (var server = CreateServer())
|
||||||
{
|
{
|
||||||
@ -44,7 +44,7 @@ namespace Marketing.FunctionalTests
|
|||||||
[Fact]
|
[Fact]
|
||||||
public async Task Delete_delete_user_location_role_and_response_not_content_status_code()
|
public async Task Delete_delete_user_location_role_and_response_not_content_status_code()
|
||||||
{
|
{
|
||||||
var campaignId = 1;
|
var campaignId = 81;
|
||||||
|
|
||||||
using (var server = CreateServer())
|
using (var server = CreateServer())
|
||||||
{
|
{
|
||||||
|
@ -9,6 +9,13 @@ WORKDIR /src/src/Services/Ordering/Ordering.API
|
|||||||
RUN dotnet restore -nowarn:msb3202,nu1503
|
RUN dotnet restore -nowarn:msb3202,nu1503
|
||||||
RUN dotnet build --no-restore -c Release -o /app
|
RUN dotnet build --no-restore -c Release -o /app
|
||||||
|
|
||||||
|
FROM build as functionaltest
|
||||||
|
WORKDIR /src/src/Services/Ordering/Ordering.FunctionalTests
|
||||||
|
|
||||||
|
FROM build as test
|
||||||
|
WORKDIR /src/src/Services/Ordering/Ordering.UnitTests
|
||||||
|
RUN dotnet test --logger trx;LogFileName=/ordering.api.unit-test-results.xml
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
RUN dotnet publish --no-restore -c Release -o /app
|
RUN dotnet publish --no-restore -c Release -o /app
|
||||||
|
|
||||||
|
@ -9,6 +9,8 @@ WORKDIR /src/src/Services/Ordering/Ordering.BackgroundTasks
|
|||||||
RUN dotnet restore -nowarn:msb3202,nu1503
|
RUN dotnet restore -nowarn:msb3202,nu1503
|
||||||
RUN dotnet build --no-restore -c Release -o /app
|
RUN dotnet build --no-restore -c Release -o /app
|
||||||
|
|
||||||
|
FROM build as functionaltest
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
RUN dotnet publish --no-restore -c Release -o /app
|
RUN dotnet publish --no-restore -c Release -o /app
|
||||||
|
|
||||||
|
@ -9,6 +9,8 @@ WORKDIR /src/src/Services/Ordering/Ordering.SignalrHub
|
|||||||
RUN dotnet restore -nowarn:msb3202,nu1503
|
RUN dotnet restore -nowarn:msb3202,nu1503
|
||||||
RUN dotnet build --no-restore Ordering.SignalrHub.csproj -c Release -o /app
|
RUN dotnet build --no-restore Ordering.SignalrHub.csproj -c Release -o /app
|
||||||
|
|
||||||
|
FROM build as functionaltest
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
RUN dotnet publish --no-restore Ordering.SignalrHub.csproj -c Release -o /app
|
RUN dotnet publish --no-restore Ordering.SignalrHub.csproj -c Release -o /app
|
||||||
|
|
||||||
|
@ -9,6 +9,8 @@ WORKDIR /src/src/Services/Payment/Payment.API
|
|||||||
RUN dotnet restore -nowarn:msb3202,nu1503
|
RUN dotnet restore -nowarn:msb3202,nu1503
|
||||||
RUN dotnet build --no-restore -c Release -o /app
|
RUN dotnet build --no-restore -c Release -o /app
|
||||||
|
|
||||||
|
FROM build as functionaltest
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
RUN dotnet publish --no-restore -c Release -o /app
|
RUN dotnet publish --no-restore -c Release -o /app
|
||||||
|
|
||||||
|
41
tests-results/test-results.xml
Normal file
41
tests-results/test-results.xml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<TestRun id="1103de27-4337-418d-9b4b-27734e0b723d" name="@7b2a3ced07be 2018-11-19 10:59:34" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
|
||||||
|
<Times creation="2018-11-19T10:59:34.9567396+00:00" queuing="2018-11-19T10:59:34.9567402+00:00" start="2018-11-19T10:59:15.3906412+00:00" finish="2018-11-19T10:59:35.8208319+00:00" />
|
||||||
|
<TestSettings name="default" id="b202f985-28fe-41a9-a41a-4acf86718ae7">
|
||||||
|
<Deployment runDeploymentRoot="_7b2a3ced07be_2018-11-19_10_59_34" />
|
||||||
|
</TestSettings>
|
||||||
|
<Results>
|
||||||
|
<UnitTestResult executionId="efc6d694-46bb-4e10-b713-a757f6c3fe9c" testId="01ee4a4c-4b61-ec68-b1de-10796cc68607" testName="Ordering.FunctionalTests.OrderingScenarios.Ship_order_no_order_created_bad_request_response" computerName="7b2a3ced07be" duration="00:00:00.2860000" startTime="2018-11-19T10:59:35.6085176+00:00" endTime="2018-11-19T10:59:35.6085196+00:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="efc6d694-46bb-4e10-b713-a757f6c3fe9c" />
|
||||||
|
<UnitTestResult executionId="2d941960-e9d8-4937-bf05-f1ff88d5f11c" testId="8c1a2207-d19c-0b78-dd96-df617732922c" testName="Ordering.FunctionalTests.OrderingScenarios.Cancel_order_no_order_created_bad_request_response" computerName="7b2a3ced07be" duration="00:00:16.5510000" startTime="2018-11-19T10:59:34.9039828+00:00" endTime="2018-11-19T10:59:34.9039864+00:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="2d941960-e9d8-4937-bf05-f1ff88d5f11c" />
|
||||||
|
<UnitTestResult executionId="b4af233e-48ef-4108-91ec-fb96aa83d6de" testId="37ee8be5-0517-c735-d707-a8dcd6ba7613" testName="Ordering.FunctionalTests.OrderingScenarios.Get_get_all_stored_orders_and_response_ok_status_code" computerName="7b2a3ced07be" duration="00:00:00.4140000" startTime="2018-11-19T10:59:35.3219375+00:00" endTime="2018-11-19T10:59:35.3219401+00:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="b4af233e-48ef-4108-91ec-fb96aa83d6de" />
|
||||||
|
</Results>
|
||||||
|
<TestDefinitions>
|
||||||
|
<UnitTest name="Ordering.FunctionalTests.OrderingScenarios.Ship_order_no_order_created_bad_request_response" storage="/src/src/services/ordering/ordering.functionaltests/bin/debug/netcoreapp2.1/ordering.functionaltests.dll" id="01ee4a4c-4b61-ec68-b1de-10796cc68607">
|
||||||
|
<Execution id="efc6d694-46bb-4e10-b713-a757f6c3fe9c" />
|
||||||
|
<TestMethod codeBase="/src/src/Services/Ordering/Ordering.FunctionalTests/bin/Debug/netcoreapp2.1/Ordering.FunctionalTests.dll" adapterTypeName="executor://xunit/VsTestRunner2/netcoreapp" className="Ordering.FunctionalTests" name="Ordering.FunctionalTests.OrderingScenarios.Ship_order_no_order_created_bad_request_response" />
|
||||||
|
</UnitTest>
|
||||||
|
<UnitTest name="Ordering.FunctionalTests.OrderingScenarios.Cancel_order_no_order_created_bad_request_response" storage="/src/src/services/ordering/ordering.functionaltests/bin/debug/netcoreapp2.1/ordering.functionaltests.dll" id="8c1a2207-d19c-0b78-dd96-df617732922c">
|
||||||
|
<Execution id="2d941960-e9d8-4937-bf05-f1ff88d5f11c" />
|
||||||
|
<TestMethod codeBase="/src/src/Services/Ordering/Ordering.FunctionalTests/bin/Debug/netcoreapp2.1/Ordering.FunctionalTests.dll" adapterTypeName="executor://xunit/VsTestRunner2/netcoreapp" className="Ordering.FunctionalTests" name="Ordering.FunctionalTests.OrderingScenarios.Cancel_order_no_order_created_bad_request_response" />
|
||||||
|
</UnitTest>
|
||||||
|
<UnitTest name="Ordering.FunctionalTests.OrderingScenarios.Get_get_all_stored_orders_and_response_ok_status_code" storage="/src/src/services/ordering/ordering.functionaltests/bin/debug/netcoreapp2.1/ordering.functionaltests.dll" id="37ee8be5-0517-c735-d707-a8dcd6ba7613">
|
||||||
|
<Execution id="b4af233e-48ef-4108-91ec-fb96aa83d6de" />
|
||||||
|
<TestMethod codeBase="/src/src/Services/Ordering/Ordering.FunctionalTests/bin/Debug/netcoreapp2.1/Ordering.FunctionalTests.dll" adapterTypeName="executor://xunit/VsTestRunner2/netcoreapp" className="Ordering.FunctionalTests" name="Ordering.FunctionalTests.OrderingScenarios.Get_get_all_stored_orders_and_response_ok_status_code" />
|
||||||
|
</UnitTest>
|
||||||
|
</TestDefinitions>
|
||||||
|
<TestEntries>
|
||||||
|
<TestEntry testId="01ee4a4c-4b61-ec68-b1de-10796cc68607" executionId="efc6d694-46bb-4e10-b713-a757f6c3fe9c" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" />
|
||||||
|
<TestEntry testId="8c1a2207-d19c-0b78-dd96-df617732922c" executionId="2d941960-e9d8-4937-bf05-f1ff88d5f11c" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" />
|
||||||
|
<TestEntry testId="37ee8be5-0517-c735-d707-a8dcd6ba7613" executionId="b4af233e-48ef-4108-91ec-fb96aa83d6de" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" />
|
||||||
|
</TestEntries>
|
||||||
|
<TestLists>
|
||||||
|
<TestList name="Results Not in a List" id="8c84fa94-04c1-424b-9868-57a2d4851a1d" />
|
||||||
|
<TestList name="All Loaded Results" id="19431567-8539-422a-85d7-44ee4e166bda" />
|
||||||
|
</TestLists>
|
||||||
|
<ResultSummary outcome="Completed">
|
||||||
|
<Counters total="3" executed="3" passed="3" failed="0" error="0" timeout="0" aborted="0" inconclusive="0" passedButRunAborted="0" notRunnable="0" notExecuted="0" disconnected="0" warning="0" completed="0" inProgress="0" pending="0" />
|
||||||
|
<Output>
|
||||||
|
<StdOut>[xUnit.net 00:00:01.3468941] Discovering: Ordering.FunctionalTests[xUnit.net 00:00:01.3968465] Discovered: Ordering.FunctionalTests[xUnit.net 00:00:01.4008405] Starting: Ordering.FunctionalTests[xUnit.net 00:00:18.8178505] Finished: Ordering.FunctionalTests</StdOut>
|
||||||
|
</Output>
|
||||||
|
</ResultSummary>
|
||||||
|
</TestRun>
|
Loading…
x
Reference in New Issue
Block a user