mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-07 15:46:55 +01:00
knowledge(testing): license-entitlement failures on posted tables in a SaaS test run are environmental
This commit is contained in:
parent
293f9b13e7
commit
3f9690ad45
3 changed files with 77 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
|||
codeunit 50543 "Test Sample Posted Fixture Bad"
|
||||
{
|
||||
Subtype = Test;
|
||||
TestPermissions = Disabled; // does not help: the check is the license, not the permission set
|
||||
|
||||
// Direct insert into a posted table: green under a container runner,
|
||||
// "Your license does not grant you ... Insert" under a SaaS user license.
|
||||
local procedure CreatePostedPurchaseInvoice(): Code[20]
|
||||
var
|
||||
PurchInvHeader: Record "Purch. Inv. Header";
|
||||
begin
|
||||
PurchInvHeader.Init();
|
||||
PurchInvHeader."No." := 'PI-TEST-001';
|
||||
PurchInvHeader.Insert();
|
||||
exit(PurchInvHeader."No.");
|
||||
end;
|
||||
|
||||
[Test]
|
||||
procedure PostedInvoiceIsAvailable()
|
||||
var
|
||||
PurchInvHeader: Record "Purch. Inv. Header";
|
||||
begin
|
||||
PurchInvHeader.Get(CreatePostedPurchaseInvoice());
|
||||
end;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue