Skip to content

Commit

Permalink
fix: remove totpEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Dec 20, 2023
1 parent fdc9dfa commit 2019a95
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 146 deletions.
64 changes: 32 additions & 32 deletions src/test/java/io/supertokens/test/multitenant/api/TestApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ public void testFirstFactorsArray() throws Exception {
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, true, new String[]{"otp-phone"}, false, null,
true, new String[]{"otp-phone"}, false, null,
config, SemVer.v5_0);
assertFalse(response.get("createdNew").getAsBoolean());

Expand All @@ -549,7 +549,7 @@ public void testFirstFactorsArray() throws Exception {
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, false, null, false, null,
false, null, false, null,
config, SemVer.v5_0);
assertFalse(response.get("createdNew").getAsBoolean());

Expand All @@ -565,7 +565,7 @@ public void testFirstFactorsArray() throws Exception {
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, true, firstFactors, false, null,
true, firstFactors, false, null,
config, SemVer.v5_0);
assertFalse(response.get("createdNew").getAsBoolean());

Expand All @@ -581,7 +581,7 @@ public void testFirstFactorsArray() throws Exception {
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, true, firstFactors, false, null,
true, firstFactors, false, null,
config, SemVer.v5_0);
assertFalse(response.get("createdNew").getAsBoolean());

Expand All @@ -595,7 +595,7 @@ public void testFirstFactorsArray() throws Exception {
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, true, null, false, null,
true, null, false, null,
config, SemVer.v5_0);
assertFalse(response.get("createdNew").getAsBoolean());

Expand Down Expand Up @@ -631,7 +631,7 @@ public void testRequiredSecondaryFactorsArray() throws Exception {
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, false, null, true, new String[]{"otp-phone"},
false, null, true, new String[]{"otp-phone"},
config, SemVer.v5_0);
assertFalse(response.get("createdNew").getAsBoolean());

Expand All @@ -645,7 +645,7 @@ public void testRequiredSecondaryFactorsArray() throws Exception {
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, false, null, false, null,
false, null, false, null,
config, SemVer.v5_0);
assertFalse(response.get("createdNew").getAsBoolean());

Expand All @@ -661,7 +661,7 @@ public void testRequiredSecondaryFactorsArray() throws Exception {
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, false, null, true, requiredSecondaryFactors,
false, null, true, requiredSecondaryFactors,
config, SemVer.v5_0);
assertFalse(response.get("createdNew").getAsBoolean());

Expand All @@ -677,7 +677,7 @@ public void testRequiredSecondaryFactorsArray() throws Exception {
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, false, null, true, requiredSecondaryFactors,
false, null, true, requiredSecondaryFactors,
config, SemVer.v5_0);
assertFalse(response.get("createdNew").getAsBoolean());

Expand All @@ -691,7 +691,7 @@ public void testRequiredSecondaryFactorsArray() throws Exception {
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, false, null, true, null,
false, null, true, null,
config, SemVer.v5_0);
assertFalse(response.get("createdNew").getAsBoolean());

Expand All @@ -715,7 +715,7 @@ public void testDuplicateValuesInFirstFactorsAndRequiredSecondaryFactors() throw
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, true, factors, false, null,
true, factors, false, null,
config, SemVer.v5_0);
fail();
} catch (HttpResponseException e) {
Expand All @@ -728,7 +728,7 @@ public void testDuplicateValuesInFirstFactorsAndRequiredSecondaryFactors() throw
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, false, null, true, factors,
false, null, true, factors,
config, SemVer.v5_0);
fail();
} catch (HttpResponseException e) {
Expand All @@ -750,7 +750,7 @@ public void testFirstFactorArrayValueValidationBasedOnDisabledRecipe() throws Ex
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", true, true, true,
null, false, null, false, null,
false, null, false, null,
config, SemVer.v5_0);

{
Expand All @@ -760,7 +760,7 @@ public void testFirstFactorArrayValueValidationBasedOnDisabledRecipe() throws Ex
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", false, null, null,
null, true, factors, false, null,
true, factors, false, null,
config, SemVer.v5_0);
fail();
} catch (HttpResponseException e) {
Expand All @@ -773,7 +773,7 @@ public void testFirstFactorArrayValueValidationBasedOnDisabledRecipe() throws Ex
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", false, null, null,
null, false, null, false, null,
false, null, false, null,
config, SemVer.v5_0);
}

Expand All @@ -782,7 +782,7 @@ public void testFirstFactorArrayValueValidationBasedOnDisabledRecipe() throws Ex
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, true, factors, false, null,
true, factors, false, null,
config, SemVer.v5_0);
fail();
} catch (HttpResponseException e) {
Expand All @@ -798,7 +798,7 @@ public void testFirstFactorArrayValueValidationBasedOnDisabledRecipe() throws Ex
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, false,
null, true, factors, false, null,
true, factors, false, null,
config, SemVer.v5_0);
fail();
} catch (HttpResponseException e) {
Expand All @@ -811,7 +811,7 @@ public void testFirstFactorArrayValueValidationBasedOnDisabledRecipe() throws Ex
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, false,
null, false, null, false, null,
false, null, false, null,
config, SemVer.v5_0);
}

Expand All @@ -820,7 +820,7 @@ public void testFirstFactorArrayValueValidationBasedOnDisabledRecipe() throws Ex
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, true, factors, false, null,
true, factors, false, null,
config, SemVer.v5_0);
fail();
} catch (HttpResponseException e) {
Expand All @@ -836,7 +836,7 @@ public void testFirstFactorArrayValueValidationBasedOnDisabledRecipe() throws Ex
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, false, null,
null, true, factors, false, null,
true, factors, false, null,
config, SemVer.v5_0);
fail();
} catch (HttpResponseException e) {
Expand All @@ -849,7 +849,7 @@ public void testFirstFactorArrayValueValidationBasedOnDisabledRecipe() throws Ex
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, false, null,
null, false, null, false, null,
false, null, false, null,
config, SemVer.v5_0);
}

Expand All @@ -858,7 +858,7 @@ public void testFirstFactorArrayValueValidationBasedOnDisabledRecipe() throws Ex
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, true, factors, false, null,
true, factors, false, null,
config, SemVer.v5_0);
fail();
} catch (HttpResponseException e) {
Expand All @@ -882,7 +882,7 @@ public void testRequiredSecondaryFactorArrayValueValidationBasedOnDisabledRecipe
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", true, true, true,
null, false, null, false, null,
false, null, false, null,
config, SemVer.v5_0);

{
Expand All @@ -892,7 +892,7 @@ public void testRequiredSecondaryFactorArrayValueValidationBasedOnDisabledRecipe
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", false, null, null,
null, false, null, true, factors,
false, null, true, factors,
config, SemVer.v5_0);
fail();
} catch (HttpResponseException e) {
Expand All @@ -905,7 +905,7 @@ public void testRequiredSecondaryFactorArrayValueValidationBasedOnDisabledRecipe
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", false, null, null,
null, false, null, false, null,
false, null, false, null,
config, SemVer.v5_0);
}

Expand All @@ -914,7 +914,7 @@ public void testRequiredSecondaryFactorArrayValueValidationBasedOnDisabledRecipe
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, false, null, true, factors,
false, null, true, factors,
config, SemVer.v5_0);
fail();
} catch (HttpResponseException e) {
Expand All @@ -930,7 +930,7 @@ public void testRequiredSecondaryFactorArrayValueValidationBasedOnDisabledRecipe
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, false,
null, false, null, true, factors,
false, null, true, factors,
config, SemVer.v5_0);
fail();
} catch (HttpResponseException e) {
Expand All @@ -943,7 +943,7 @@ public void testRequiredSecondaryFactorArrayValueValidationBasedOnDisabledRecipe
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, false,
null, false, null, false, null,
false, null, false, null,
config, SemVer.v5_0);
}

Expand All @@ -952,7 +952,7 @@ public void testRequiredSecondaryFactorArrayValueValidationBasedOnDisabledRecipe
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, false, null, true, factors,
false, null, true, factors,
config, SemVer.v5_0);
fail();
} catch (HttpResponseException e) {
Expand All @@ -968,7 +968,7 @@ public void testRequiredSecondaryFactorArrayValueValidationBasedOnDisabledRecipe
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, false, null,
null, false, null, true, factors,
false, null, true, factors,
config, SemVer.v5_0);
fail();
} catch (HttpResponseException e) {
Expand All @@ -981,7 +981,7 @@ public void testRequiredSecondaryFactorArrayValueValidationBasedOnDisabledRecipe
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, false, null,
null, false, null, false, null,
false, null, false, null,
config, SemVer.v5_0);
}

Expand All @@ -990,7 +990,7 @@ public void testRequiredSecondaryFactorArrayValueValidationBasedOnDisabledRecipe
process.getProcess(),
new TenantIdentifier(null, null, null),
"a1", null, null, null,
null, false, null, true, factors,
false, null, true, factors,
config, SemVer.v5_0);
fail();
} catch (HttpResponseException e) {
Expand Down
Loading

0 comments on commit 2019a95

Please sign in to comment.