Skip to content
Open
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
11 changes: 8 additions & 3 deletions fineract-doc/src/docs/en/chapters/testing/cucumber.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
----
Expand All @@ -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]
----
Expand Down
Loading