Skip to content

Commit

Permalink
LPD-41475 Set pageSize to -1 by default so all custom objects are del…
Browse files Browse the repository at this point in the history
…eted
  • Loading branch information
magjed4289 authored and brianchandotcom committed Nov 12, 2024
1 parent f3081fe commit 46a2f9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ definition {
tearDown {
ApplicationAPI.deleteAllAPIApplication();

JSONObject.deleteAllCustomObjects(pageSize = 21);
JSONObject.deleteAllCustomObjects();

var testLiferayVirtualInstance = PropsUtil.get("test.liferay.virtual.instance");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ definition {
}

@summary = "Default summary"
macro deleteAllCustomObjects(pageSize = null) {
macro deleteAllCustomObjects() {
var portalURL = JSONCompany.getPortalURL();

if (!(isSet(userEmailAddress))) {
Expand All @@ -886,15 +886,8 @@ definition {
var userPassword = PropsUtil.get("default.admin.password");
}

if (isSet(pageSize)) {
var url = "object-admin/v1.0/object-definitions?pageSize=${pageSize}";
}
else {
var url = "object-admin/v1.0/object-definitions";
}

var curl = '''
${portalURL}/o/${url} \
${portalURL}/o/object-admin/v1.0/object-definitions?pageSize=-1 \
-u ${userEmailAddress}:${userPassword}
''';

Expand Down

0 comments on commit 46a2f9d

Please sign in to comment.