Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
2a76019
139799 - Bespoke Exchange Set Configuration Service Project Skeleton …
harshal11869 Jan 30, 2024
d593a52
140028 -added task to build and publish webjob project AB#140028 AB#1…
surendrabehara2022 Feb 5, 2024
4a66f04
140036 - Bespoke Exchange Set Builder Service Project Skeleton Creati…
rupali15127 Feb 6, 2024
305ce59
140029 - BESS Configuration Service WebJob Logging and Config (#111)
ratnas104142 Feb 13, 2024
000d802
Merge remote-tracking branch 'origin/main' into dev/Abzu-144739-stryk…
hukho Feb 22, 2024
2b55327
Merge pull request #120 from UKHO/dev/Abzu-144739-stryker-dotnet-update
hukho Feb 22, 2024
c22bede
Merge remote-tracking branch 'origin/main' into dev/Abzu-137903-14441…
hukho Feb 26, 2024
b78012e
Merge pull request #127 from UKHO/dev/Abzu-137903-144414-merge
hukho Feb 26, 2024
e685a92
140033 : Accessing config files and storing in object (#116)
abhijeet14992 Feb 27, 2024
d605db8
142690 - added task to build and publish bessbs webjob project AB#142…
surendrabehara2022 Feb 28, 2024
3532ba3
140035 - Bess Configuration Service Frequency Expression / Cron Imple…
MastekRohitChettri Mar 4, 2024
a2e4483
142682 - BESS CS Create Mock Endpoint for File Upload (#128)
shailen14599 Mar 7, 2024
c27dab5
142689 - BESS Builder Service WebJob Logging and Configuration (#130)
rupali15127 Mar 8, 2024
c14342e
142686 - Validating config file (#129)
chaital14503 Mar 11, 2024
2ffb128
140034 - BESS CS - Get AVCS Catalogue from SCS (#131)
ratnas104142 Mar 12, 2024
be56d0b
148824 - SCS Mock (#134)
Nadeem14456 Mar 18, 2024
7c89121
147395 - Config File Upliftment (#135)
ratnas104142 Mar 20, 2024
a13cae6
142688 - Bess Configuration Service get enccellname from prefix patte…
MastekRohitChettri Mar 20, 2024
821248a
142790 queue message to create bespoke exchange set (#136)
chaital14503 Mar 22, 2024
ee3ff46
147129 - Bess builder service read queue message (#139)
abhijeet14992 Mar 27, 2024
6beeb1a
140038 - Bess Builder Service AD authorization for Ess and Fss API (#…
rupali15127 Mar 28, 2024
918af0a
Remove Functional tests (#137)
DanOwenUKHO Apr 4, 2024
bee4112
Dev/updatee2egates (#140)
DanOwenUKHO Apr 8, 2024
c9d0636
147132 - BS Request and Download Exchange set (#141)
shailen14599 Apr 10, 2024
feff109
Automated Functional Test of BS: request download exchange set (#143)
Arit14975 Apr 18, 2024
aee1610
147177 - bess bs maintain cell edition in azure table (#145)
MastekRohitChettri Apr 24, 2024
aba6929
147200 - macros logic implementation (#146)
chaital14503 Apr 29, 2024
78de319
140039 - BESS Builder Service Ancillary Files Get Readme From FSS (…
rupali15127 Apr 30, 2024
a3e5372
140042 PKS Wiremock Service (#151)
shirinbt14926 May 2, 2024
bfb24eb
147178 - BS ancillary files delete product update serial (#152)
chaital14503 May 3, 2024
c8b2da9
147171 - BS Handling of empty ES and Error.txt Scenarios (#154)
Madhav15303 May 7, 2024
8aa6ca3
140043 - BESS Cleanup Web Job and Logging Config (#156)
ratnas104142 May 7, 2024
004590b
149734 - Bess bs ad authorization for pks (#157)
abhijeet14992 May 8, 2024
eddb482
147394 - BESS configuration service code upliftment (#158)
MastekRohitChettri May 10, 2024
48507e8
140040 - BESS builder service get permit key create key file (#160)
MastekRohitChettri May 13, 2024
936e8e8
Dev/stryker updates2 (#159)
DanOwenUKHO May 14, 2024
dea3d89
140041 - Bess bs save bespoke exchange set on fss (#161)
chaital14503 May 14, 2024
6ccc1e5
154171 - BESS builder service code upliftment (#163)
shailen14599 May 17, 2024
5389a20
154171 - BESS builder service correlationId upliftment (#168)
Nadeem14456 May 24, 2024
fde1169
152369 - adding firewall rule to storage account (#169)
surendrabehara2022 May 24, 2024
419a28b
159261 - Exclude Permit for Empty Bespoke Exchange Set (#173)
shailen14599 May 30, 2024
4206588
macro name updated in UT (#174)
DanOwenUKHO May 31, 2024
eb665dd
Merge and update packages
hukho Jun 13, 2024
b33ab5c
Merge and update packages
hukho Jun 13, 2024
89923d7
Removed CVE suppressions from NVDSuppressions.xml
hukho Jun 13, 2024
1663991
Remove duplicate package reference
hukho Jun 13, 2024
a436ab3
Update macro transformer tests
hukho Jun 13, 2024
854ab98
Merge pull request #182 from UKHO/dev/abzu-update-from-main-hb
hukho Jun 17, 2024
70c6e4a
Dev/update develop from main (#232)
DanOwenUKHO Nov 21, 2024
5b2c40d
Dev/fixv next env (#233)
DanOwenUKHO Nov 21, 2024
7cf2606
190004 - remove readme entry from catalog file (#236)
Nadeem14456 Nov 29, 2024
32f736a
changes for bess webjob configuration (#237)
amogh14893 Dec 2, 2024
e660951
Merge
DanOwenUKHO Dec 3, 2024
7bb35cb
Clean up merge
DanOwenUKHO Dec 3, 2024
39a6f68
Fix merge
DanOwenUKHO Dec 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions DevDeployment/src/Modules/MockWebApp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ resource "azurerm_windows_web_app" "mock_webapp_service" {
type = "SystemAssigned"
}

lifecycle {
ignore_changes = [ virtual_network_subnet_id ]
}

https_only = true
}

Expand Down Expand Up @@ -80,6 +84,10 @@ resource "azurerm_windows_web_app" "pks_mock_webapp_service" {
type = "SystemAssigned"
}

lifecycle {
ignore_changes = [ virtual_network_subnet_id ]
}

https_only = true
}

Expand Down
4 changes: 4 additions & 0 deletions DevDeployment/src/Modules/WebApp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ resource "azurerm_windows_web_app" "webapp_service" {
type = "SystemAssigned"
}

lifecycle {
ignore_changes = [ virtual_network_subnet_id ]
}

https_only = true
}

Expand Down
4 changes: 2 additions & 2 deletions DevDeployment/src/azure.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=3.1.0"
version = "=3.116.0"
}
}

required_version = "=1.1.9"
required_version = "=1.9.6"
backend "azurerm" {
container_name = "tfstate"
key = "posterraform.deployment.tfplan"
Expand Down
1 change: 1 addition & 0 deletions DevDeployment/src/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ module "webapp_service" {
"ELASTIC_APM_ENVIRONMENT" = local.env_name
"ELASTIC_APM_SERVICE_NAME" = "POS Web Job"
"ELASTIC_APM_API_KEY" = var.elastic_apm_api_key
"BessStorageConfiguration:ContainerName" = var.BessContainerName
}
tags = local.tags
allowed_ips = var.allowed_ips
Expand Down
10 changes: 7 additions & 3 deletions DevDeployment/src/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,18 @@ variable "elastic_apm_server_url" {
variable "elastic_apm_api_key" {
}

variable "permitdecryptionhardwareid" {
variable "agent_2204_subnet" {
type = string
}

variable "agent_2204_subnet" {
variable "agent_prd_subnet" {
type = string
}

variable "agent_prd_subnet" {
variable "permitdecryptionhardwareid" {
type = string
}

variable "BessContainerName" {
type = string
}
1 change: 1 addition & 0 deletions DevDeployment/templates/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ steps:
TF_VAR_agent_2204_subnet: $(agent2204SubnetId)
TF_VAR_agent_prd_subnet: $(agentprdSubnetId)
TF_VAR_agent_subscription_id: $(agentSubscriptionId)
TF_VAR_BessContainerName: $(BessContainerForWebjob)

- task: FileTransform@2
displayName: "File Transform: Mock API WebApp"
Expand Down
19 changes: 19 additions & 0 deletions NVDSuppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -453,4 +453,23 @@
]]></notes>
<vulnerabilityName>CVE-2024-30105</vulnerabilityName>
</suppress>
<suppress>
<notes><![CDATA[
file name: Azure.Core.dll
]]></notes>
<cve>CVE-2024-43591</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: Microsoft.Extensions.Caching.Memory:8.0.0
]]></notes>
<vulnerabilityName>CVE-2024-43483</vulnerabilityName>
</suppress>
<suppress>
<notes><![CDATA[
file name: System.Text.Json:6.0.0
file name: System.Text.Json:8.0.0
]]></notes>
<vulnerabilityName>CVE-2024-43485</vulnerabilityName>
</suppress>
</suppressions>
2 changes: 1 addition & 1 deletion QALiveDeployment/src/Modules/Storage/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ resource "azurerm_storage_account" "bess_storage" {
resource "azurerm_storage_container" "bess_config_container" {
name = var.container_name
storage_account_name = azurerm_storage_account.bess_storage.name
}
}
4 changes: 4 additions & 0 deletions QALiveDeployment/src/Modules/Webapp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ resource "azurerm_windows_web_app" "webapp_service" {
type = "SystemAssigned"
}

lifecycle {
ignore_changes = [ virtual_network_subnet_id ]
}

https_only = true
}

Expand Down
4 changes: 2 additions & 2 deletions QALiveDeployment/src/azure.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=3.1.0"
version = "=3.116.0"
}
}

required_version = "=1.1.9"
required_version = "=1.9.6"
backend "azurerm" {
container_name = "tfstate"
key = "posterraform.deployment.tfplan"
Expand Down
1 change: 1 addition & 0 deletions QALiveDeployment/src/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ module "webapp_service" {
"ELASTIC_APM_ENVIRONMENT" = local.env_name
"ELASTIC_APM_SERVICE_NAME" = "POS Web Job"
"ELASTIC_APM_API_KEY" = var.elastic_apm_api_key
"BessStorageConfiguration:ContainerName" = var.BessContainerName
}
tags = local.tags
allowed_ips = var.allowed_ips
Expand Down
4 changes: 4 additions & 0 deletions QALiveDeployment/src/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,7 @@ variable "agent_2204_subnet" {
variable "agent_prd_subnet" {
type = string
}

variable "BessContainerName" {
type = string
}
1 change: 1 addition & 0 deletions QALiveDeployment/templates/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ steps:
TF_VAR_agent_2204_subnet: $(agent2204SubnetId)
TF_VAR_agent_prd_subnet: $(agentprdSubnetId)
TF_VAR_agent_subscription_id: $(agentSubscriptionId)
TF_VAR_BessContainerName: $(BessContainerForWebjob)

- task: FileTransform@2
displayName: "File Transform: POS Config"
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Key ID,Key,Name,Edition,Created,Issued,Expired,Status
1,A606B7FD60,AU220150,8,11/07/2023,11/07/2023,,1:Active
2,A606B7FD60,AU220150,9,11/07/2023,11/07/2023,,2:Next
3,DE41383A9E,AU5PTL01,1,11/07/2023,11/07/2023,,1:Active
4,DE41383A9E,AU5PTL01,2,11/07/2023,11/07/2023,,2:Next
5,E9B56DDDD5,CA570182,3,11/07/2023,11/07/2023,,1:Active
6,E9B56DDDD5,CA570182,4,11/07/2023,11/07/2023,,2:Next
7,DE41383A9E,CA570226,3,11/07/2023,11/07/2023,,1:Active
8,DE41383A9E,CA570226,4,11/07/2023,11/07/2023,,2:Next
9,7A14379C9F,CN484220,6,11/07/2023,11/07/2023,,1:Active
10,7A14379C9F,CN484220,7,11/07/2023,11/07/2023,,2:Next
11,A606B7FD60,GB301910,10,11/07/2023,11/07/2023,,1:Active
12,A606B7FD60,GB301910,11,11/07/2023,11/07/2023,,2:Next
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ public enum Batch
EssEmptyBatch = 23,

[Description("d0635e6c-81ae-4acb-9129-1a69f9ee58d2")]
BessEmptyBatch = 24
BessEmptyBatch = 24,

[Description("9f19b71e-2dca-42fd-b7dd-a68792a2aa27")]
BessNoneReadmeBatch = 25
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ public class FileShareService
Batch.BessBaseZipBatch,
Batch.BessChangeZipBatch,
Batch.BessUpdateZipBatch,
Batch.BessEmptyBatch
Batch.BessEmptyBatch,
Batch.BessNoneReadmeBatch
};

private readonly Enum[] aioBatchTypes = {
private readonly Enum[] aioBatchTypes = new Enum[]
{
Batch.AioBaseCDZipIsoSha1Batch,
Batch.AioUpdateZipBatch,
Batch.EssAioBaseZipBatch,
Expand Down Expand Up @@ -96,7 +98,7 @@ public BatchDetail GetBatchDetails(string batchId, string homeDirectoryPath)
}

//BESS - batch attributes from Queue message - start

Batch batchEnu = EnumHelper.GetValueFromDescription<Batch>(batchId);
if (bessBatchTypes.Contains(EnumHelper.GetValueFromDescription<Batch>(batchId)))
{
ConfigQueueMessage message = new()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@
<None Update="Data\5581CA8C-27A8-42EC-86D2-BEF6915C2992\V01X01.zip">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Data\9F19B71E-2DCA-42FD-B7DD-A68792A2AA27\BESS_PortOfIndia.zip">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Data\9F19B71E-2DCA-42FD-B7DD-A68792A2AA27\Permit.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Data\A7FB95F0-B3FF-4EF2-9B76-A74C7D3C3C8F\BESConfig.zip">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public void Setup()
[TestCase("s57", "UPDATE", "AVCS", "fa741049-7a78-4ec3-8737-1b3fb8d1cc3f", "KEY_TEXT")]
[TestCase("s63", "BASE", "BLANK", "a7fb95f0-b3ff-4ef2-9b76-a74c7d3c3c8f", "PERMIT_XML")]
[TestCase("s63", "CHANGE", "businessUnit eq 'AVCS-BESSets' and filename eq 'README.TXT' and $batch(Content) eq 'Bespoke README'", "5581ca8c-27a8-42ec-86d2-bef6915c2992", "PERMIT_XML")]
[TestCase("s57", "UPDATE", "NONE", "9F19B71E-2DCA-42FD-B7DD-A68792A2AA27", "KEY_TEXT")]
public async Task WhenIUploadAConfigWithCorrectDetails_ThenBespokeExchangeSetShouldBeDownloaded(string exchangeSetStandard, string type, string readMeSearchFilter, string batchId, string keyFileType)
{
HttpResponseMessage response = await BessUploadFileHelper.UploadConfigFile(testConfiguration.bessConfig.BaseUrl, testConfiguration.bessConfig.ValidConfigPath, testConfiguration.sharedKeyConfig.Key, exchangeSetStandard, type, readMeSearchFilter, keyFileType);
Expand All @@ -46,6 +47,7 @@ public async Task WhenIUploadAConfigWithCorrectDetails_ThenBespokeExchangeSetSho
expectedResultReadme.Should().Be(true);
var expectedResultSerial = FssBatchHelper.CheckInfoFolderAndSerialEncInBessExchangeSet(downloadFolderPath, type);
expectedResultSerial.Should().Be(true);
FssBatchHelper.VerifyCatalogContents(downloadFolderPath, readMeSearchFilter);
HttpResponseMessage expectedResult = await fssEndPointHelper.CheckBatchDetails(batchId);
await FssBatchHelper.VerifyBessBatchDetails(expectedResult);
string? batchFolderPath = Path.GetDirectoryName(downloadFolderPath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,16 @@ public static bool CheckFilesInDownloadedZip(string? downloadFolderPath, string
/// This method is used to check the README.TXT
/// </summary>
/// <param name="downloadFolderPath">Sets the path of the folder where the required file is downloaded</param>
/// <param name="readMeSearchFilter">Sets the value of the Readme File type based on Config out of AVCS, BLANK or {Query}</param>
/// <param name="readMeSearchFilter">Sets the value of the Readme File type based on Config out of AVCS, BLANK, NONE or {Query}</param>
/// <returns></returns>
public static bool CheckReadMeInBessExchangeSet(string? downloadFolderPath, string? readMeSearchFilter)
{
string[] readMeFileContent = File.ReadAllLines(Path.Combine(downloadFolderPath!, testConfiguration.exchangeSetDetails.ExchangeSetEncRootFolder!, testConfiguration.exchangeSetDetails.ExchangeReadMeFile!));
var path = Path.Combine(downloadFolderPath!, testConfiguration.exchangeSetDetails.ExchangeSetEncRootFolder!);
if (readMeSearchFilter!.Equals("NONE"))
{
return !File.Exists(Path.Combine(path, testConfiguration.exchangeSetDetails.ExchangeReadMeFile!));
}
string[] readMeFileContent = File.ReadAllLines(Path.Combine(path, testConfiguration.exchangeSetDetails.ExchangeReadMeFile!));
string readMeType;
switch (readMeSearchFilter)
{
Expand Down Expand Up @@ -413,5 +418,25 @@ public static bool VerifyPermitFile(string? downloadFolderPath, string? keyFileT
}
return false;
}

/// <summary>
/// This method is use to validate the content of CATALOG.031 details
/// </summary>
/// <param name="downloadFolderPath">Sets the path of the folder where the required file is downloaded</param>
/// <param name="readMeSearchFilter">Sets the value of the Readme File type based on Config out of AVCS, BLANK, NONE or {Query}</param>
public static void VerifyCatalogContents(string? downloadFolderPath, string? readMeSearchFilter)
{
var catalogFilePath = Path.Combine(downloadFolderPath!, testConfiguration.exchangeSetDetails.ExchangeSetEncRootFolder!, testConfiguration.exchangeSetDetails.ExchangeSetCatalogueFile!);
var catalogFileContent = File.ReadAllText(catalogFilePath);
bool containsReadMeFile = catalogFileContent.Contains(testConfiguration.exchangeSetDetails.ExchangeReadMeFile!);
if (readMeSearchFilter!.Equals("NONE"))
{
containsReadMeFile.Should().BeFalse();
}
else
{
containsReadMeFile.Should().BeTrue();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"BessStorageConfiguration": {
"ConnectionString": "",
"ContainerName": "bess-configs-ft",
"TableName": "bessproductversiondetails",
"TableName": "bessproductversiondetails",
"QueueName": "bess-fulfillment"
},
"AzureWebJobsStorage": "",
Expand Down
Loading
Loading