diff --git a/src/main/java/io/supertokens/config/CoreConfig.java b/src/main/java/io/supertokens/config/CoreConfig.java index d7f91a48b..815de3d60 100644 --- a/src/main/java/io/supertokens/config/CoreConfig.java +++ b/src/main/java/io/supertokens/config/CoreConfig.java @@ -67,7 +67,7 @@ public class CoreConfig { @NotConflictingInApp @JsonProperty - @ConfigDescription("Deprecated, please see changelog. Only used in CDI<=2.18\n If true, allows for immediate revocation of any access token. Keep in mind that setting this to true will result in a db query for each API call that requires authentication. (Default: false)") + @ConfigDescription("Deprecated, please see changelog. Only used in CDI<=2.18 If true, allows for immediate revocation of any access token. Keep in mind that setting this to true will result in a db query for each API call that requires authentication. (Default: false)") private boolean access_token_blacklisting = false; @NotConflictingInApp @@ -115,12 +115,12 @@ public class CoreConfig { @ConfigYamlOnly @JsonProperty - @ConfigDescription("Give the path to a file (on your local system) in which the SuperTokens service can write ERROR logs to. Set it to \"null\" if you want it to log to\n standard error instead. (Default: installation directory/logs/error.log)") + @ConfigDescription("Give the path to a file (on your local system) in which the SuperTokens service can write ERROR logs to. Set it to \"null\" if you want it to log to standard error instead. (Default: installation directory/logs/error.log)") private String error_log_path = logDefault; @NotConflictingInApp @JsonProperty - @ConfigDescription("Deprecated, please see changelog.\n If this is set to true, the access tokens created using CDI<=2.18 will be signed using a static signing key. (Default: true)") + @ConfigDescription("Deprecated, please see changelog. If this is set to true, the access tokens created using CDI<=2.18 will be signed using a static signing key. (Default: true)") private boolean access_token_signing_key_dynamic = true; @NotConflictingInApp @@ -240,6 +240,7 @@ public class CoreConfig { @ConfigYamlOnly @JsonProperty + @ConfigDescription("If specified, the supertokens service will only load the specified CUD even if there are more CUDs in the database and block all other CUDs from being used from this instance.") private String supertokens_saas_load_only_cud = null; @IgnoreForAnnotationCheck diff --git a/src/test/java/io/supertokens/test/CoreConfigListAPITest.java b/src/test/java/io/supertokens/test/CoreConfigListAPITest.java index 594a24e60..3a44b4c87 100644 --- a/src/test/java/io/supertokens/test/CoreConfigListAPITest.java +++ b/src/test/java/io/supertokens/test/CoreConfigListAPITest.java @@ -14,44 +14,44 @@ * under the License. */ - package io.supertokens.test; +package io.supertokens.test; - import com.google.gson.JsonArray; +import com.google.gson.JsonArray; import com.google.gson.JsonObject; - import io.supertokens.ProcessState; - import io.supertokens.httpRequest.HttpRequest; - import org.junit.AfterClass; - import org.junit.Before; - import org.junit.Rule; - import org.junit.Test; - import org.junit.rules.TestRule; +import io.supertokens.ProcessState; +import io.supertokens.httpRequest.HttpRequest; +import org.junit.AfterClass; +import org.junit.Before; +import org.junit.Rule; +import org.junit.Test; +import org.junit.rules.TestRule; - - import static org.junit.Assert.*; - - public class CoreConfigListAPITest { - @Rule - public TestRule watchman = Utils.getOnFailure(); - - @AfterClass - public static void afterTesting() { - Utils.afterTesting(); - } - - @Before - public void beforeEach() { - Utils.reset(); - } - - @Test - public void testRetreivingConfigProperties() throws Exception { +import static org.junit.Assert.*; + +public class CoreConfigListAPITest { + @Rule + public TestRule watchman = Utils.getOnFailure(); + + @AfterClass + public static void afterTesting() { + Utils.afterTesting(); + } + + @Before + public void beforeEach() { + Utils.reset(); + } + + @Test + public void testRetreivingConfigProperties() throws Exception { String[] args = { "../" }; TestingProcessManager.TestingProcess process = TestingProcessManager.start(args); assertNotNull(process.checkOrWaitForEvent(ProcessState.PROCESS_STATE.STARTED)); - JsonObject response = HttpRequest.sendGETRequest(process.getProcess(), "", "http://localhost:3567/core-config/list", null, - 1000, 1000, null); + JsonObject response = HttpRequest.sendGETRequest(process.getProcess(), "", + "http://localhost:3567/core-config/list", null, + 1000, 1000, null); assertEquals(response.get("status").getAsString(), "OK"); JsonArray result = response.get("config").getAsJsonArray(); @@ -68,7 +68,6 @@ public void testRetreivingConfigProperties() throws Exception { process.kill(); assertNotNull(process.checkOrWaitForEvent(ProcessState.PROCESS_STATE.STOPPED)); - } - - } - \ No newline at end of file + } + +}