();
-
- public HealthStatusViewModel(CheckStatus overall) : this() => _overall = overall;
-
- public void AddResult(string name, IHealthCheckResult result) => _results.Add(name, result);
- }
-}
diff --git a/src/Web/WebStatus/Viewmodels/NamedCheckResult.cs b/src/Web/WebStatus/Viewmodels/NamedCheckResult.cs
deleted file mode 100644
index f6a9cd316..000000000
--- a/src/Web/WebStatus/Viewmodels/NamedCheckResult.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using Microsoft.Extensions.HealthChecks;
-
-namespace WebStatus.Viewmodels
-{
- public class NamedCheckResult
- {
- public string Name { get; }
-
- public IHealthCheckResult Result { get; }
-
- public NamedCheckResult(string name, IHealthCheckResult result)
- {
- Name = name;
- Result = result;
- }
- }
-}
diff --git a/src/Web/WebStatus/Views/Home/Index.cshtml b/src/Web/WebStatus/Views/Home/Index.cshtml
deleted file mode 100644
index a3befe611..000000000
--- a/src/Web/WebStatus/Views/Home/Index.cshtml
+++ /dev/null
@@ -1,51 +0,0 @@
-@using Microsoft.AspNetCore.Html
-@using Microsoft.Extensions.HealthChecks
-@model WebStatus.Viewmodels.HealthStatusViewModel
-
-@{
- ViewData["Title"] = "System Status";
-
-}
-
-@functions
-{
- static readonly string[] LabelClass = new[] { "default", "danger", "success", "warning" };
-
- public HtmlString StatusLabel(CheckStatus status)
- {
- return new HtmlString($@"{status} ");
- }
-
-}
-
-
-
-
-
-
-
Overall Status: @StatusLabel(Model.OverallStatus)
-
-
-
-
- @foreach (var result in Model.Results)
- {
-
-
-
@result.Name
-
- @if (result.Result.Data.ContainsKey("url"))
- {
-
@result.Result.Data["url"]
- }
-
- @result.Result.Description
-
-
-
-
-
@StatusLabel(result.Result.CheckStatus)
-
-
- }
-
\ No newline at end of file
diff --git a/src/Web/WebStatus/Views/Shared/Error.cshtml b/src/Web/WebStatus/Views/Shared/Error.cshtml
deleted file mode 100644
index e514139c4..000000000
--- a/src/Web/WebStatus/Views/Shared/Error.cshtml
+++ /dev/null
@@ -1,14 +0,0 @@
-@{
- ViewData["Title"] = "Error";
-}
-
-Error.
-An error occurred while processing your request.
-
-Development Mode
-
- Swapping to Development environment will display more detailed information about the error that occurred.
-
-
- Development environment should not be enabled in deployed applications , as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development , and restarting the application.
-
diff --git a/src/Web/WebStatus/Views/Shared/_Layout.cshtml b/src/Web/WebStatus/Views/Shared/_Layout.cshtml
deleted file mode 100644
index b74f006e4..000000000
--- a/src/Web/WebStatus/Views/Shared/_Layout.cshtml
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
-
-
- @ViewData["Title"] - WebStatus
-
-
-
-
-
-
-
-
-
-
- @if (ViewBag.RefreshSeconds != null && ViewBag.RefreshSeconds > 0)
- {
-
- }
-
-
-
-
-
-  eShopOnContainers WebStatus
-
-
-
-
- @RenderBody()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/Web/WebStatus/Views/_ViewImports.cshtml b/src/Web/WebStatus/Views/_ViewImports.cshtml
deleted file mode 100644
index 6a5648da4..000000000
--- a/src/Web/WebStatus/Views/_ViewImports.cshtml
+++ /dev/null
@@ -1,2 +0,0 @@
-@using WebStatus
-@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
diff --git a/src/Web/WebStatus/Views/_ViewStart.cshtml b/src/Web/WebStatus/Views/_ViewStart.cshtml
deleted file mode 100644
index a5f10045d..000000000
--- a/src/Web/WebStatus/Views/_ViewStart.cshtml
+++ /dev/null
@@ -1,3 +0,0 @@
-@{
- Layout = "_Layout";
-}
diff --git a/src/Web/WebStatus/WebStatus.csproj b/src/Web/WebStatus/WebStatus.csproj
index 4755ec744..8bbb27b96 100644
--- a/src/Web/WebStatus/WebStatus.csproj
+++ b/src/Web/WebStatus/WebStatus.csproj
@@ -1,22 +1,30 @@
- netcoreapp2.1
+ netcoreapp2.2
$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;
..\..\..\docker-compose.dcproj
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
diff --git a/src/Web/WebStatus/appsettings.json b/src/Web/WebStatus/appsettings.json
index 2ab5ad818..6f486424c 100644
--- a/src/Web/WebStatus/appsettings.json
+++ b/src/Web/WebStatus/appsettings.json
@@ -1,21 +1,84 @@
{
- "Logging": {
- "IncludeScopes": false,
- "LogLevel": {
- "Default": "Debug",
- "System": "Information",
- "Microsoft": "Information"
- }
- },
- "OrderingUrl": "http://localhost:5102/hc",
- "OrderingBackgroundTasksUrl": "http://localhost:5111/hc",
- "BasketUrl": "http://localhost:5103/hc",
- "CatalogUrl": "http://localhost:5101/hc",
- "IdentityUrl": "http://localhost:5105/hc",
- "MarketingUrl": "http://localhost:5110/hc",
- "LocationsUrl": "http://localhost:5109/hc",
- "PaymentUrl": "http://localhost:5108/hc",
- "ApplicationInsights": {
- "InstrumentationKey": ""
+ "HealthChecks-UI": {
+ "HealthChecks": [
+ {
+ "Name": "Ordering HTTP Check",
+ "Uri": "http://localhost:5102/hc"
+ },
+ {
+ "Name": "Ordering HTTP Background Check",
+ "Uri": "http://localhost:5111/hc"
+ },
+ {
+ "Name": "Basket HTTP Check",
+ "Uri": "http://localhost:5103/hc"
+ },
+ {
+ "Name": "Catalog HTTP Check",
+ "Uri": "http://localhost:5101/hc"
+ },
+ {
+ "Name": "Identity HTTP Check",
+ "Uri": "http://localhost:5105/hc"
+ },
+ {
+ "Name": "Marketing HTTP Check",
+ "Uri": "http://localhost:5110/hc"
+ },
+ {
+ "Name": "Locations HTTP Check",
+ "Uri": "http://localhost:5109/hc"
+ },
+ {
+ "Name": "Payments HTTP Check",
+ "Uri": "http://localhost:5108/hc"
+ },
+ {
+ "Name": "WebMVC HTTP Check",
+ "Uri": "http://localhost:5100/hc"
+ },
+ {
+ "Name": "WebSPA HTTP Check",
+ "Uri": "http://localhost:5104/hc"
+ },
+ {
+ "Name": "SignalR HTTP Check",
+ "Uri": "http://localhost:5112/hc"
+ },
+ {
+ "Name": "Mobile Shopping API GW HTTP Check",
+ "Uri": "http://localhost:5200/hc"
+ },
+ {
+ "Name": "Mobile Marketing API GW HTTP Check",
+ "Uri": "http://localhost:5201/hc"
+ },
+ {
+ "Name": "Web Shopping API GW HTTP Check",
+ "Uri": "http://localhost:5202/hc"
+ },
+ {
+ "Name": "Web Marketing API GW HTTP Check",
+ "Uri": "http://localhost:5203/hc"
+ },
+ {
+ "Name": "Mobile Shopping Aggregator HTTP Check",
+ "Uri": "http://localhost:5120/hc"
+ },
+ {
+ "Name": "Web Shopping Aggregator HTTP Check",
+ "Uri": "http://localhost:5121/hc"
+ }
+ ],
+ "Webhooks": [
+ {
+ "Name": "",
+ "Uri": "",
+ "Payload": "",
+ "RestoredPayload": ""
+ }
+ ],
+ "EvaluationTimeOnSeconds": 10,
+ "MinimumSecondsBetweenFailureNotifications": 60
}
}
diff --git a/test/ServicesTests/Application.FunctionalTests/Application.FunctionalTests.csproj b/test/ServicesTests/Application.FunctionalTests/Application.FunctionalTests.csproj
index fd3b506c7..f8fc3efaf 100644
--- a/test/ServicesTests/Application.FunctionalTests/Application.FunctionalTests.csproj
+++ b/test/ServicesTests/Application.FunctionalTests/Application.FunctionalTests.csproj
@@ -1,7 +1,7 @@
- netcoreapp2.1
+ netcoreapp2.2
true
false
false
@@ -68,7 +68,7 @@
-
+
diff --git a/tests-results/basket-test-results.xml b/tests-results/basket-test-results.xml
new file mode 100644
index 000000000..933ed1b5b
--- /dev/null
+++ b/tests-results/basket-test-results.xml
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [xUnit.net 00:00:06.1434181] Discovering: Basket.UnitTests[xUnit.net 00:00:06.4201662] Discovered: Basket.UnitTests[xUnit.net 00:00:06.4258049] Starting: Basket.UnitTests[xUnit.net 00:00:09.1721258] Finished: Basket.UnitTests
+
+
+
\ No newline at end of file
diff --git a/tests-results/basket-unit-test-results.xml b/tests-results/basket-unit-test-results.xml
new file mode 100644
index 000000000..c7a6cd004
--- /dev/null
+++ b/tests-results/basket-unit-test-results.xml
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [xUnit.net 00:00:06.7811016] Discovering: Basket.UnitTests[xUnit.net 00:00:07.1809374] Discovered: Basket.UnitTests[xUnit.net 00:00:07.1870723] Starting: Basket.UnitTests[xUnit.net 00:00:10.4183620] Finished: Basket.UnitTests
+
+
+
\ No newline at end of file
diff --git a/tests-results/catalog-test-results.xml b/tests-results/catalog-test-results.xml
new file mode 100644
index 000000000..73efaeb8f
--- /dev/null
+++ b/tests-results/catalog-test-results.xml
@@ -0,0 +1,89 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [xUnit.net 00:00:06.0723374] Discovering: Catalog.FunctionalTests[xUnit.net 00:00:06.4361995] Discovered: Catalog.FunctionalTests[xUnit.net 00:00:06.4447894] Starting: Catalog.FunctionalTests[xUnit.net 00:00:34.5834045] Finished: Catalog.FunctionalTests
+
+
+
\ No newline at end of file
diff --git a/tests-results/catalog-unit-test-results.xml b/tests-results/catalog-unit-test-results.xml
new file mode 100644
index 000000000..2bc65d5c9
--- /dev/null
+++ b/tests-results/catalog-unit-test-results.xml
@@ -0,0 +1,89 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [xUnit.net 00:00:06.6354381] Discovering: Catalog.FunctionalTests[xUnit.net 00:00:07.0010904] Discovered: Catalog.FunctionalTests[xUnit.net 00:00:07.0749761] Starting: Catalog.FunctionalTests[xUnit.net 00:00:34.9063753] Finished: Catalog.FunctionalTests
+
+
+
\ No newline at end of file
diff --git a/tests-results/locations-test-results.xml b/tests-results/locations-test-results.xml
new file mode 100644
index 000000000..c8b5e6b82
--- /dev/null
+++ b/tests-results/locations-test-results.xml
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [xUnit.net 00:00:07.7665792] Discovering: Locations.FunctionalTests[xUnit.net 00:00:08.1972548] Discovered: Locations.FunctionalTests[xUnit.net 00:00:08.2137816] Starting: Locations.FunctionalTests[xUnit.net 00:00:27.6429580] Finished: Locations.FunctionalTests
+
+
+
\ No newline at end of file
diff --git a/tests-results/marketing-test-results.xml b/tests-results/marketing-test-results.xml
new file mode 100644
index 000000000..5545febcc
--- /dev/null
+++ b/tests-results/marketing-test-results.xml
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [xUnit.net 00:00:01.0963036] Discovering: Marketing.FunctionalTests[xUnit.net 00:00:01.1452772] Discovered: Marketing.FunctionalTests[xUnit.net 00:00:01.1494340] Starting: Marketing.FunctionalTests[xUnit.net 00:00:06.9663675] Finished: Marketing.FunctionalTests
+
+
+
\ No newline at end of file
diff --git a/tests-results/ordering-test-results.xml b/tests-results/ordering-test-results.xml
new file mode 100644
index 000000000..231975d56
--- /dev/null
+++ b/tests-results/ordering-test-results.xml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [xUnit.net 00:00:05.2039980] Discovering: Ordering.FunctionalTests[xUnit.net 00:00:05.4802527] Discovered: Ordering.FunctionalTests[xUnit.net 00:00:05.5249888] Starting: Ordering.FunctionalTests[xUnit.net 00:00:20.1396674] Finished: Ordering.FunctionalTests
+
+
+
\ No newline at end of file
diff --git a/tests-results/ordering-unit-test-results.xml b/tests-results/ordering-unit-test-results.xml
new file mode 100644
index 000000000..c9f85a60f
--- /dev/null
+++ b/tests-results/ordering-unit-test-results.xml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [xUnit.net 00:00:05.4257955] Discovering: Ordering.FunctionalTests[xUnit.net 00:00:05.9560169] Discovered: Ordering.FunctionalTests[xUnit.net 00:00:05.9845906] Starting: Ordering.FunctionalTests[xUnit.net 00:00:21.2769127] Finished: Ordering.FunctionalTests
+
+
+
\ No newline at end of file