This is an automated email from the ASF dual-hosted git repository.
adamsaghy pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git
The following commit(s) were added to refs/heads/develop by this push:
new 9a1113496b FINERACT-2500: Update cucumber docs. Add require tenant
header for business-date API, enforce test profile for E2E
9a1113496b is described below
commit 9a1113496b869617d09da458a745386e44cf02a5
Author: Oluwadara Sola-Aremu <[email protected]>
AuthorDate: Sun Mar 1 14:27:03 2026 +0000
FINERACT-2500: Update cucumber docs. Add require tenant header for
business-date API, enforce test profile for E2E
---
fineract-doc/src/docs/en/chapters/testing/cucumber.adoc | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/fineract-doc/src/docs/en/chapters/testing/cucumber.adoc
b/fineract-doc/src/docs/en/chapters/testing/cucumber.adoc
index aff72320a4..449219d91e 100644
--- a/fineract-doc/src/docs/en/chapters/testing/cucumber.adoc
+++ b/fineract-doc/src/docs/en/chapters/testing/cucumber.adoc
@@ -149,12 +149,15 @@ mysql -u root -pmysql fineract_default -e \
Method 2 - Via API (After Fineract is Running):
[source,bash]
----
-curl -X PUT
https://localhost:8443/fineract-provider/api/v1/configurations/name/enable-business-date
\
+curl -k -X PUT
https://localhost:8443/fineract-provider/api/v1/configurations/name/enable-business-date
\
-H "Authorization: Basic bWlmb3M6cGFzc3dvcmQ=" \
+ -H "Fineract-Platform-TenantId: default" \
-H "Content-Type: application/json" \
-d '{"enabled": true}'
----
+NOTE: The `Fineract-Platform-TenantId` header is required. Without it, the
request can fail with HTTP 400 because tenant context is missing.
+
*Verification*:
[source,bash]
----
@@ -170,10 +173,12 @@ mysql -u root -pmysql fineract_default -e \
[source,bash]
----
-# Start Fineract in background
-./gradlew bootRun
+# Start Fineract with test profile enabled for E2E
+./gradlew bootRun -Dspring.profiles.active=test
----
+IMPORTANT: When running E2E tests that hit endpoints/APIs backed by beans
annotated with `@Profile(FineractProfiles.TEST)`, the provider startup must
include `-Dspring.profiles.active=test`. Without this, test-profile-only
components are not loaded.
+
Wait for Fineract to be fully started. You can verify by checking:
[source,bash]
----