Skip to content

Commit

Permalink
appsettings for new paramter added
Browse files Browse the repository at this point in the history
  • Loading branch information
AnuragNagpure committed Sep 18, 2024
1 parent cfef334 commit 50be0d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/administration/Administration.Service/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@
"ServiceAccount": {
"ClientId": "",
"EncryptionConfigIndex": 0,
"EncryptionConfigs": []
"EncryptionConfigs": [],
"AuthServiceUrl": ""
},
"Connectors": {
"MaxPageSize": 20,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public ServiceAccountBusinessLogicTests()

_options = Options.Create(new ServiceAccountSettings
{
AuthServiceUrl = "https://testcentralidp.int.testcatena-x.net/auth",
AuthServiceUrl = "https://auth.test/auth",
ClientId = ClientId,
EncryptionConfigIndex = 1,
EncryptionConfigs = new[] { new EncryptionModeConfig() { Index = 1, EncryptionKey = Convert.ToHexString(encryptionKey), CipherMode = System.Security.Cryptography.CipherMode.CBC, PaddingMode = System.Security.Cryptography.PaddingMode.PKCS7 } },
Expand Down Expand Up @@ -255,7 +255,7 @@ public async Task GetOwnCompanyServiceAccountDetailsAsync_WithValidUserTypeInter
// Assert
result.Should().NotBeNull();
result.CompanyServiceAccountKindId.Should().Be(CompanyServiceAccountKindId.INTERNAL);
result.AuthenticationServiceUrl.Should().Be("https://testcentralidp.int.testcatena-x.net/auth");
result.AuthenticationServiceUrl.Should().Be("https://auth.test/auth");
}

[Fact]
Expand Down Expand Up @@ -289,7 +289,7 @@ public async Task GetOwnCompanyServiceAccountDetailsAsync_WithInValidUserTypeInt
// Assert
result.Should().NotBeNull();
result.CompanyServiceAccountKindId.Should().NotBe(CompanyServiceAccountKindId.INTERNAL);
result.AuthenticationServiceUrl.Should().NotBe("https://testcentralidp.int.testcatena-x.net/auth");
result.AuthenticationServiceUrl.Should().NotBe("https://auth.test/auth");
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@
"CipherMode": "CBC",
"PaddingMode": "PKCS7"
}
]
],
"AuthServiceUrl": "https://auth.test/auth"
},
"Connectors": {
"MaxPageSize": 20,
Expand Down

0 comments on commit 50be0d4

Please sign in to comment.