Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
505b5f6
new test cases
akgarg06 May 14, 2026
da5d428
temp commented un affected sections
akgarg06 May 14, 2026
77a9c93
Update singleTenant_integration_test.yml
akgarg06 May 14, 2026
f19319f
issue fixes
akgarg06 May 14, 2026
02c1068
fix new test cases
akgarg06 May 14, 2026
2da8702
temporary commenting unchanged part
akgarg06 May 14, 2026
7a8099c
uncommenting remaining parts of single tenant
akgarg06 May 14, 2026
55b2df4
Update IntegrationTest_MultipleFacet.java
akgarg06 May 14, 2026
248751f
fix test issue
akgarg06 May 15, 2026
54abca8
Update CmisDocumentHelper.java
akgarg06 May 15, 2026
c122b56
Update IntegrationTest_Chapters_MultipleFacet.java
akgarg06 May 15, 2026
bdfdeb8
Update IntegrationTest_Chapters_MultipleFacet.java
akgarg06 May 15, 2026
a06c4ef
workflow update
akgarg06 May 15, 2026
d5a5df9
Update multi tenancy_Integration.yml
akgarg06 May 15, 2026
b20f6ac
workflow changes
akgarg06 May 15, 2026
c44c11e
Merge branch 'develop' into SDMEXT-2853
yashmeet29 May 28, 2026
0558b9e
workflow changes
akgarg06 Jun 1, 2026
2c2dee8
fix race condition for versioned and virus repo setup
akgarg06 Jun 1, 2026
802308f
Update multi tenancy_Integration.yml
akgarg06 Jun 1, 2026
6da1b49
Merge branch 'develop' into SDMEXT-2853
akgarg06 Jun 2, 2026
94b40b6
fix test cases after merger conflict
akgarg06 Jun 3, 2026
05bb074
subscription test cases repo check addition
akgarg06 Jun 3, 2026
c4917ca
test fetch client id secret
akgarg06 Jun 3, 2026
7029a4e
Update singleTenant_integration_test.yml
akgarg06 Jun 3, 2026
31d2234
Update singleTenant_integration_test.yml
akgarg06 Jun 3, 2026
46f74ef
Update singleTenant_integration_test.yml
akgarg06 Jun 3, 2026
1e59fcb
Update singleTenant_integration_test.yml
akgarg06 Jun 3, 2026
13e2e59
Update singleTenant_integration_test.yml
akgarg06 Jun 3, 2026
c249815
Update singleTenant_integration_test.yml
akgarg06 Jun 5, 2026
0f99a81
Update multi tenancy_Integration.yml
akgarg06 Jun 5, 2026
48b1fd0
Merge branch 'develop' into SDMEXT-2853
akgarg06 Jun 9, 2026
8ef4f31
Merge branch 'develop' into SDMEXT-2853
akgarg06 Jun 9, 2026
e7122fd
Merge branch 'develop' into SDMEXT-2853
akgarg06 Jun 9, 2026
96ec0a7
Merge branch 'SDMEXT-2853' of https://github.com/cap-java/sdm into SD…
akgarg06 Jun 9, 2026
62734c5
mvn spotless:apply
akgarg06 Jun 9, 2026
37070a9
Update singleTenant_integration_test.yml
akgarg06 Jun 11, 2026
0ce989e
Revert "Update singleTenant_integration_test.yml"
akgarg06 Jun 11, 2026
cf71944
Merge branch 'develop' into SDMEXT-2853
akgarg06 Jun 12, 2026
0ae3504
Merge branch 'develop' into SDMEXT-2853
akgarg06 Jun 12, 2026
2688437
update workflow for validation of PR merge
akgarg06 Jun 15, 2026
2d44a08
addition of secondary property update after subscription test cases
akgarg06 Jun 15, 2026
9d3970a
role collection name change
akgarg06 Jun 15, 2026
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
897 changes: 696 additions & 201 deletions .github/workflows/multi tenancy_Integration.yml

Large diffs are not rendered by default.

1,364 changes: 1,341 additions & 23 deletions .github/workflows/multiTenant_deploy_and_Integration_test.yml

Large diffs are not rendered by default.

1,364 changes: 1,341 additions & 23 deletions .github/workflows/multiTenant_deploy_and_Integration_test_LatestVersion.yml

Large diffs are not rendered by default.

953 changes: 940 additions & 13 deletions .github/workflows/singleTenant_deploy_and_Integration_test.yml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

776 changes: 548 additions & 228 deletions .github/workflows/singleTenant_integration_test.yml

Large diffs are not rendered by default.

21 changes: 20 additions & 1 deletion sdm/src/test/java/integration/com/sap/cds/sdm/Api.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ public class Api implements ApiInterface {
private static final ObjectMapper objectMapper = new ObjectMapper();
private final String token;
private final String serviceName;
private static final int MAX_RETRIES = 3;
private static final int MAX_RETRIES = 5;
private static final int RETRY_DELAY_MS = 1000;
private static final int UPDATE_CONFLICT_RETRY_DELAY_MS = 5000;

public Api(Map<String, String> config) {
this.config = new HashMap<>(config);
Expand Down Expand Up @@ -44,6 +45,24 @@ private Response executeWithRetry(Request request) throws IOException {
Thread.sleep(RETRY_DELAY_MS);
continue;
}
// Retry on updateConflict (repository lock) — HTTP 500 or 409
if ((response.code() == 500 || response.code() == 409) && attempt < MAX_RETRIES) {
ResponseBody body = response.peekBody(8192);
String bodyStr = body.string();
if (bodyStr.contains("updateConflict") || bodyStr.contains("is currently blocked")) {
System.out.println(
"Repository lock detected (updateConflict), retrying after "
+ UPDATE_CONFLICT_RETRY_DELAY_MS
+ "ms... (attempt "
+ attempt
+ "/"
+ MAX_RETRIES
+ ")");
response.close();
Thread.sleep(UPDATE_CONFLICT_RETRY_DELAY_MS);
continue;
}
}
return response;
} catch (java.net.SocketTimeoutException e) {
lastException = e;
Expand Down
21 changes: 20 additions & 1 deletion sdm/src/test/java/integration/com/sap/cds/sdm/ApiMT.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ public class ApiMT implements ApiInterface {
private final OkHttpClient httpClient;
private static final ObjectMapper objectMapper = new ObjectMapper();
private final String token;
private static final int MAX_RETRIES = 3;
private static final int MAX_RETRIES = 5;
private static final int RETRY_DELAY_MS = 1000;
private static final int UPDATE_CONFLICT_RETRY_DELAY_MS = 5000;

public ApiMT(Map<String, String> config) {
this.config = new HashMap<>(config);
Expand Down Expand Up @@ -43,6 +44,24 @@ private Response executeWithRetry(Request request) throws IOException {
Thread.sleep(RETRY_DELAY_MS);
continue;
}
// Retry on updateConflict (repository lock) — HTTP 500 or 409
if ((response.code() == 500 || response.code() == 409) && attempt < MAX_RETRIES) {
ResponseBody body = response.peekBody(8192);
String bodyStr = body.string();
if (bodyStr.contains("updateConflict") || bodyStr.contains("is currently blocked")) {
System.out.println(
"Repository lock detected (updateConflict), retrying after "
+ UPDATE_CONFLICT_RETRY_DELAY_MS
+ "ms... (attempt "
+ attempt
+ "/"
+ MAX_RETRIES
+ ")");
response.close();
Thread.sleep(UPDATE_CONFLICT_RETRY_DELAY_MS);
continue;
}
}
return response;
} catch (java.net.SocketTimeoutException e) {
lastException = e;
Expand Down

Large diffs are not rendered by default.

Loading
Loading