Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions build/scripts/RunTestsInBcContainer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,11 @@ if ($DisableTestIsolation)
$parameters["testRunnerCodeunitId"] = "130450" # Test Runner with Codeunit test isolation
}

if ($parameters["appName"] -eq "System Application Test" -or $parameters["appName"] -eq "Agent Test")
{
Write-Host "Enabling AgentsFeature for '$($parameters["appName"])' tests"
Set-BcContainerServerConfiguration -containerName $parameters.ContainerName -keyName "AgentsFeatureEnabled" -keyValue "true"
Restart-BcContainer -containerName $parameters.ContainerName
}

return Invoke-TestsWithReruns -parameters $parameters
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,4 @@ codeunit 4303 "Agent Task"

var
FeatureAccessManagement: Codeunit "Feature Access Management";

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ using System.Feedback;

codeunit 4329 "Agent User Feedback"
{
Access = Internal;
InherentEntitlements = X;
InherentPermissions = X;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ page 4336 "Select Agent Permissions"
exit(true);
end;

internal procedure Initialize(NewAgentUserSecurityID: Guid; var TempAccessControlBuffer: Record "Access Control Buffer" temporary)
procedure Initialize(NewAgentUserSecurityID: Guid; var TempAccessControlBuffer: Record "Access Control Buffer" temporary)
begin
AgentUserSecurityID := NewAgentUserSecurityID;
Rec.Copy(TempAccessControlBuffer, true);
end;

internal procedure GetTempAccessControlBuffer(var TempAccessControlBuffer: Record "Access Control Buffer" temporary)
procedure GetTempAccessControlBuffer(var TempAccessControlBuffer: Record "Access Control Buffer" temporary)
begin
TempAccessControlBuffer.Copy(Rec, true);
end;
Expand Down
7 changes: 7 additions & 0 deletions src/System Application/App/Agent/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@
"version": "29.0.0.0"
}
],
"internalsVisibleTo": [
{
"id": "a8c7f9d2-4e5b-4a1c-9f8e-6d3b2a1c4e5f",
"name": "Agent Test",
"publisher": "Microsoft"
}
],
"propagateDependencies": true,
"features": [
"TranslationFile",
Expand Down
15 changes: 0 additions & 15 deletions src/System Application/App/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,6 @@
"name": "System Application Test Library",
"publisher": "Microsoft"
},
{
"id": "1a3ac64b-0e25-2345-8e9b-eab2a74b9e9a",
"name": "Agent Developer Toolkit",
"publisher": "Microsoft"
},
{
"id": "00155c68-8cdd-4d60-a451-2034ad094223",
"name": "Agent Design Experience",
"publisher": "Microsoft"
},
{
"id": "87bd596c-2473-4c29-b666-c97ef8760ddd",
"name": "Agent Designer Test",
"publisher": "Microsoft"
},
{
"id": "5afe217e-507a-40b4-9aa5-f4325b6e8230",
"name": "Agent Test Library",
Expand Down
58 changes: 58 additions & 0 deletions src/System Application/Test/Agent/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"id": "a8c7f9d2-4e5b-4a1c-9f8e-6d3b2a1c4e5f",
"name": "Agent Test",
"publisher": "Microsoft",
"brief": "Comprehensive test suite for validating Agent SDK functionality.",
"description": "The Agent SDK Tests app provides extensive automated testing for the Agent SDK functionality. Includes unit tests for agent operations, API validation, and agent lifecycle management. Features test coverage for error scenarios, warning conditions, successful operations, and edge cases to ensure reliable agent SDK workflows.",
"version": "29.0.0.0",
"privacyStatement": "https://go.microsoft.com/fwlink/?linkid=724009",
"EULA": "https://go.microsoft.com/fwlink/?linkid=2009120",
"help": "https://go.microsoft.com/fwlink/?linkid=2103698",
"url": "https://go.microsoft.com/fwlink/?linkid=724011",
"logo": "",
"dependencies": [
{
"id": "95f7c0f8-d9b8-4538-80f9-6e17f6f7b91a",
"name": "Agent",
"publisher": "Microsoft",
"version": "29.0.0.0"
},
{
"id": "e595541f-d183-4e93-910c-3eb99ed23c7b",
"name": "Default Role Center",
"publisher": "Microsoft",
"version": "29.0.0.0"
},
{
"id": "dd0be2ea-f733-4d65-bb34-a28f4624fb14",
"name": "Library Assert",
"publisher": "Microsoft",
"version": "29.0.0.0"
},
{
"id": "e7320ebb-08b3-4406-b1ec-b4927d3e280b",
"publisher": "Microsoft",
"name": "Any",
"version": "29.0.0.0"
}
],
"screenshots": [],
"platform": "29.0.0.0",
"resourceExposurePolicy": {
"allowDebugging": true,
"allowDownloadingSource": true,
"includeSourceInSymbolFile": true
},
"idRanges": [
{
"from": 133950,
"to": 133964
}
],
"features": [
"NoImplicitWith",
"TranslationFile"
],
"target": "OnPrem",
"contextSensitiveHelpUrl": "https://learn.microsoft.com/dynamics365/business-central/"
}
Loading
Loading