From c7ae7185e69010254b2881c4034c6e968b49a625 Mon Sep 17 00:00:00 2001 From: Steven Hawkins Date: Mon, 15 Sep 2025 11:25:54 -0400 Subject: [PATCH] fix: updating export option text (#42621) closes: #42011 Signed-off-by: Steve Hawkins --- .../src/main/java/org/keycloak/config/ExportOptions.java | 4 ++-- .../cli/help/HelpCommandDistTest.testExportHelp.approved.txt | 5 ++--- .../help/HelpCommandDistTest.testExportHelpAll.approved.txt | 5 ++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/quarkus/config-api/src/main/java/org/keycloak/config/ExportOptions.java b/quarkus/config-api/src/main/java/org/keycloak/config/ExportOptions.java index 9631ceb0ba3..692d5a2a972 100644 --- a/quarkus/config-api/src/main/java/org/keycloak/config/ExportOptions.java +++ b/quarkus/config-api/src/main/java/org/keycloak/config/ExportOptions.java @@ -21,7 +21,7 @@ public class ExportOptions { public static final Option FILE = new OptionBuilder<>("file", String.class) .category(OptionCategory.EXPORT) - .description("Set the path to a file that will be created with the exported data. To export more than 500 users, export to a directory with different files instead.") + .description("Set the path to a file that will be created with the exported data. To export more than 50000 users, export to a directory with different files instead.") .buildTime(false) .build(); @@ -40,7 +40,7 @@ public class ExportOptions { public static final Option USERS_PER_FILE = new OptionBuilder<>("users-per-file", Integer.class) .category(OptionCategory.EXPORT) .defaultValue(50) - .description("Set the number of users per file. It is used only if 'users' is set to 'different_files'. Increasing this number leads to exponentially increasing export times.") + .description("Set the number of users per file. It is used only if 'users' is set to 'different_files'.") .buildTime(false) .build(); diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelp.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelp.approved.txt index 195b2b893ee..d68178398da 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelp.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelp.approved.txt @@ -264,15 +264,14 @@ Export: --dir Set the path to a directory where files will be created with the exported data. --file Set the path to a file that will be created with the exported data. To export - more than 500 users, export to a directory with different files instead. + more than 50000 users, export to a directory with different files instead. --realm Set the name of the realm to export. If not set, all realms are going to be exported. --users Set how users should be exported. Possible values are: skip, realm_file, same_file, different_files. Default: different_files. --users-per-file Set the number of users per file. It is used only if 'users' is set to - 'different_files'. Increasing this number leads to exponentially increasing - export times. Default: 50. + 'different_files'. Default: 50. Bootstrap Admin: diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelpAll.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelpAll.approved.txt index 67a62f88c61..b6949e18d26 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelpAll.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelpAll.approved.txt @@ -447,15 +447,14 @@ Export: --dir Set the path to a directory where files will be created with the exported data. --file Set the path to a file that will be created with the exported data. To export - more than 500 users, export to a directory with different files instead. + more than 50000 users, export to a directory with different files instead. --realm Set the name of the realm to export. If not set, all realms are going to be exported. --users Set how users should be exported. Possible values are: skip, realm_file, same_file, different_files. Default: different_files. --users-per-file Set the number of users per file. It is used only if 'users' is set to - 'different_files'. Increasing this number leads to exponentially increasing - export times. Default: 50. + 'different_files'. Default: 50. Bootstrap Admin: