Skip to content

Commit

Permalink
Update the yml file for automated Testing the Database
Browse files Browse the repository at this point in the history
  • Loading branch information
NolanMM committed Dec 9, 2023
1 parent c89d73c commit 014a573
Show file tree
Hide file tree
Showing 18 changed files with 115 additions and 11 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,8 @@ jobs:
- name: Run Unit Tests In DatabaseAnalysisModuleTests Folder
run: dotnet test DatabaseAnalysisModuleTests/DatabaseAnalysisModuleTests.csproj

- name: Run Unit Tests In AnalysisServiceTests Folder
run: dotnet test AnalysisServiceTests/AnalysisServiceTests.csproj

- name: Publish Test Results DatabaseAnalysisModuleTests Folder
uses: actions/upload-artifact@v2
with:
name: test-results-database
path: DatabaseAnalysisModuleTests/TestResults

- name: Publish Test Results AnalysisServiceTests Folder
uses: actions/upload-artifact@v2
with:
name: test-results-analysis
path: AnalysisServiceTests/TestResults
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Server_Side/.vs/Server_Side/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file modified Server_Side/.vs/Server_Side/v17/.suo
Binary file not shown.
1 change: 0 additions & 1 deletion Server_Side/DatabaseServices/Database_Centre.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Server_Side.DatabaseServices.Services.Model;
using Server_Side.DatabaseServices.Services.Models.Interfaces;
using Server_Side.DatabaseServices.Services.Network_Database_Services;
using System.Collections.Generic;

namespace Server_Side.DatabaseServices
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
{
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"metadata": {
"_dependencyType": "compute.appService.windows"
},
"parameters": {
"resourceGroupName": {
"type": "string",
"defaultValue": "Project_V_Level_6_Database",
"metadata": {
"description": "Name of the resource group for the resource. It is recommended to put resources under same resource group for better tracking."
}
},
"resourceGroupLocation": {
"type": "string",
"defaultValue": "eastus",
"metadata": {
"description": "Location of the resource group. Resource groups could have different location than resources, however by default we use API versions from latest hybrid profile which support all locations for resource types we support."
}
},
"resourceName": {
"type": "string",
"defaultValue": "AnalysisReportingTestinngRoute",
"metadata": {
"description": "Name of the main resource to be created by this template."
}
},
"resourceLocation": {
"type": "string",
"defaultValue": "[parameters('resourceGroupLocation')]",
"metadata": {
"description": "Location of the resource. By default use resource group's location, unless the resource provider is not supported there."
}
}
},
"variables": {
"appServicePlan_name": "[concat('Plan', uniqueString(concat(parameters('resourceName'), subscription().subscriptionId)))]",
"appServicePlan_ResourceId": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', parameters('resourceGroupName'), '/providers/Microsoft.Web/serverFarms/', variables('appServicePlan_name'))]"
},
"resources": [
{
"type": "Microsoft.Resources/resourceGroups",
"name": "[parameters('resourceGroupName')]",
"location": "[parameters('resourceGroupLocation')]",
"apiVersion": "2019-10-01"
},
{
"type": "Microsoft.Resources/deployments",
"name": "[concat(parameters('resourceGroupName'), 'Deployment', uniqueString(concat(parameters('resourceName'), subscription().subscriptionId)))]",
"resourceGroup": "[parameters('resourceGroupName')]",
"apiVersion": "2019-10-01",
"dependsOn": [
"[parameters('resourceGroupName')]"
],
"properties": {
"mode": "Incremental",
"template": {
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"location": "[parameters('resourceLocation')]",
"name": "[parameters('resourceName')]",
"type": "Microsoft.Web/sites",
"apiVersion": "2015-08-01",
"tags": {
"[concat('hidden-related:', variables('appServicePlan_ResourceId'))]": "empty"
},
"dependsOn": [
"[variables('appServicePlan_ResourceId')]"
],
"kind": "app",
"properties": {
"name": "[parameters('resourceName')]",
"kind": "app",
"httpsOnly": true,
"reserved": false,
"serverFarmId": "[variables('appServicePlan_ResourceId')]",
"siteConfig": {
"metadata": [
{
"name": "CURRENT_STACK",
"value": "dotnetcore"
}
]
}
},
"identity": {
"type": "SystemAssigned"
}
},
{
"location": "[parameters('resourceLocation')]",
"name": "[variables('appServicePlan_name')]",
"type": "Microsoft.Web/serverFarms",
"apiVersion": "2015-08-01",
"sku": {
"name": "S1",
"tier": "Standard",
"family": "S",
"size": "S1"
},
"properties": {
"name": "[variables('appServicePlan_name')]"
}
}
]
}
}
}
]
}
Binary file modified Server_Side/obj/Debug/net6.0/project.razor.vscode.bin
Binary file not shown.
Binary file modified Server_Side/obj/Release/net6.0/Server_Side.assets.cache
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bfe575b382492c231a3f141502b0e4f5f8bb82dd
31439e797167511d79b6a5a408bd45bd06420b3a
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ C:\Users\Minh\Desktop\Test_Cloning\Server_Side\obj\Release\net6.0\refint\Server_
C:\Users\Minh\Desktop\Test_Cloning\Server_Side\obj\Release\net6.0\Server_Side.pdb
C:\Users\Minh\Desktop\Test_Cloning\Server_Side\obj\Release\net6.0\Server_Side.genruntimeconfig.cache
C:\Users\Minh\Desktop\Test_Cloning\Server_Side\obj\Release\net6.0\ref\Server_Side.dll
C:\Users\Minh\Desktop\Test_Cloning\Server_Side\bin\Release\net6.0\System.Diagnostics.DiagnosticSource.dll
Binary file modified Server_Side/obj/Release/net6.0/Server_Side.dll
Binary file not shown.
Binary file modified Server_Side/obj/Release/net6.0/Server_Side.pdb
Binary file not shown.
Binary file modified Server_Side/obj/Release/net6.0/ref/Server_Side.dll
Binary file not shown.
Binary file modified Server_Side/obj/Release/net6.0/refint/Server_Side.dll
Binary file not shown.

0 comments on commit 014a573

Please sign in to comment.