Browse Source

Fix/1403and1404 removed duplicate Key SubscriptionClientName and added app.UseAuthorization() call (#1406)

* #1403 removed duplicate Key SubscriptionClientName

Removed duplicate key SubscriptionClientName from Tests/Services/Application.FunctionalTests/Services/Marketing/appsettings.json and sorted its content in asc order.

* #1404 Added app.UseAuthorization() call

Added app.UseAuthorization() call to BasketTestsStartup, LocationsTestsStartup, and MarketingTestsStartup to fix failed unit tests IntegrationEventsScenarios.Post_update_product_price_and_catalog_and_basket_list_modified and MarketingScenarios.Set_new_user_location_and_get_location_campaign_by_user_id (see #1404)
pull/1416/head
InstanceFactory 4 years ago
committed by GitHub
parent
commit
df2c2bb10e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 5 deletions
  1. +1
    -0
      src/Tests/Services/Application.FunctionalTests/Services/Basket/BasketTestsStartup.cs
  2. +1
    -0
      src/Tests/Services/Application.FunctionalTests/Services/Location/LocationsTestsStartup.cs
  3. +1
    -0
      src/Tests/Services/Application.FunctionalTests/Services/Marketing/MarketingTestsStartup.cs
  4. +4
    -5
      src/Tests/Services/Application.FunctionalTests/Services/Marketing/appsettings.json

+ 1
- 0
src/Tests/Services/Application.FunctionalTests/Services/Basket/BasketTestsStartup.cs View File

@ -16,6 +16,7 @@ namespace FunctionalTests.Services.Basket
if (Configuration["isTest"] == bool.TrueString.ToLowerInvariant())
{
app.UseMiddleware<AutoAuthorizeMiddleware>();
app.UseAuthorization();
}
else
{


+ 1
- 0
src/Tests/Services/Application.FunctionalTests/Services/Location/LocationsTestsStartup.cs View File

@ -19,6 +19,7 @@
if (Configuration["isTest"] == bool.TrueString.ToLowerInvariant())
{
app.UseMiddleware<LocationAuthorizeMiddleware>();
app.UseAuthorization();
}
else
{


+ 1
- 0
src/Tests/Services/Application.FunctionalTests/Services/Marketing/MarketingTestsStartup.cs View File

@ -16,6 +16,7 @@
if (Configuration["isTest"] == bool.TrueString.ToLowerInvariant())
{
app.UseMiddleware<AutoAuthorizeMiddleware>();
app.UseAuthorization();
}
else
{


+ 4
- 5
src/Tests/Services/Application.FunctionalTests/Services/Marketing/appsettings.json View File

@ -1,12 +1,11 @@
{
"AzureServiceBusEnabled": false,
"ConnectionString": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word",
"MongoConnectionString": "mongodb://localhost:27017",
"MongoDatabase": "MarketingDb",
"EventBusConnection": "localhost",
"IdentityUrl": "http://localhost:5105",
"isTest": "true",
"EventBusConnection": "localhost",
"AzureServiceBusEnabled": false,
"SubscriptionClientName": "Marketing",
"MongoConnectionString": "mongodb://localhost:27017",
"MongoDatabase": "MarketingDb",
"PicBaseUrl": "http://localhost:5110/api/v1/campaigns/[0]/pic/",
"SubscriptionClientName": "Marketing"
}

Loading…
Cancel
Save