Skip to content

Commit

Permalink
Fix formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek3255 committed Feb 20, 2024
1 parent 13f97ca commit 366296e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 37 deletions.
7 changes: 4 additions & 3 deletions src/main/java/io/supertokens/config/CoreConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
67 changes: 33 additions & 34 deletions src/test/java/io/supertokens/test/CoreConfigListAPITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -68,7 +68,6 @@ public void testRetreivingConfigProperties() throws Exception {

process.kill();
assertNotNull(process.checkOrWaitForEvent(ProcessState.PROCESS_STATE.STOPPED));
}

}

}

}

0 comments on commit 366296e

Please sign in to comment.