This is an automated email from the ASF dual-hosted git repository.
mridulpathak pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git
The following commit(s) were added to refs/heads/release24.09 by this push:
new 5b79d823a Run the scrum billing test as a user who has the scrum
billing permission
5b79d823a is described below
commit 5b79d823a5b2d53bc2a896a8a7d5627dcbfe7363
Author: Mridul Pathak <[email protected]>
AuthorDate: Sat Oct 31 19:08:58 2026 +0530
Run the scrum billing test as a user who has the scrum billing permission
The test called addProductTimeToNewInvoice as the system user, who does not
have SCRUM_BILLING_CREATE, and passed only because a copied service skipped its
required permissions. Now that the copy keeps them, the test runs as admin, as
the trunk version of this test already does.
---
scrum/minilang/test/ProductTest.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scrum/minilang/test/ProductTest.xml
b/scrum/minilang/test/ProductTest.xml
index af878dc73..d4503ebda 100644
--- a/scrum/minilang/test/ProductTest.xml
+++ b/scrum/minilang/test/ProductTest.xml
@@ -55,7 +55,7 @@ under the License.
<!-- Billing -->
<simple-method method-name="testAddProductTimeToNewInvoice"
short-description="Test Add Product Time To New Invoice" login-required="false">
<entity-one entity-name="UserLogin" value-field="userLogin">
- <field-map field-name="userLoginId" value="system"/>
+ <field-map field-name="userLoginId" value="admin"/>
</entity-one>
<set field="serviceCtx.productId" value="DEMO-PRODUCT-1"/>
<set field="serviceCtx.partyIdFrom" value="Company"/>