Browse Source

disable promo codes before running registration test

tags/v1.4.37
Jonathan Cobb 3 years ago
parent
commit
be955aab67
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      bubble-server/src/test/java/bubble/test/system/AuthTest.java

+ 5
- 1
bubble-server/src/test/java/bubble/test/system/AuthTest.java View File

@@ -4,6 +4,7 @@
*/ */
package bubble.test.system; package bubble.test.system;


import bubble.auth.PromoCodePolicy;
import bubble.dao.account.AccountDAO; import bubble.dao.account.AccountDAO;
import bubble.model.account.Account; import bubble.model.account.Account;
import bubble.test.ActivatedBubbleModelTestBase; import bubble.test.ActivatedBubbleModelTestBase;
@@ -27,7 +28,10 @@ public class AuthTest extends ActivatedBubbleModelTestBase {
@Test public void testBasicAuth () throws Exception { modelTest("auth/basic_auth"); } @Test public void testBasicAuth () throws Exception { modelTest("auth/basic_auth"); }
@Test public void testAccountCrud () throws Exception { modelTest("auth/account_crud"); } @Test public void testAccountCrud () throws Exception { modelTest("auth/account_crud"); }
@Test public void testDeviceCrud () throws Exception { modelTest("auth/device_crud"); } @Test public void testDeviceCrud () throws Exception { modelTest("auth/device_crud"); }
@Test public void testRegistration () throws Exception { modelTest("auth/account_registration"); }
@Test public void testRegistration () throws Exception {
getConfiguration().setPromoCodePolicy(PromoCodePolicy.disabled); // ensure promos are disabled
modelTest("auth/account_registration");
}
@Test public void testForgotPassword () throws Exception { modelTest("auth/forgot_password"); } @Test public void testForgotPassword () throws Exception { modelTest("auth/forgot_password"); }
@Test public void testChangePassword () throws Exception { modelTest("auth/change_password"); } @Test public void testChangePassword () throws Exception { modelTest("auth/change_password"); }
@Test public void testChangeAdminPassword () throws Exception { modelTest("auth/change_admin_password"); } @Test public void testChangeAdminPassword () throws Exception { modelTest("auth/change_admin_password"); }


Loading…
Cancel
Save