|
14 | 14 | import dev.findfirst.users.model.user.TokenPassword; |
15 | 15 |
|
16 | 16 | import com.fasterxml.jackson.databind.ObjectMapper; |
17 | | - |
18 | | -import org.junit.Ignore; |
| 17 | +import org.junit.jupiter.api.Disabled; |
19 | 18 | import org.junit.jupiter.api.Order; |
20 | 19 | import org.junit.jupiter.api.Test; |
21 | 20 | import org.springframework.beans.factory.annotation.Autowired; |
@@ -86,26 +85,26 @@ public JavaMailSender javaMailSender() { |
86 | 85 | * Tests that a user should be able to sign up. After signing up another user should not be able |
87 | 86 | * use the same username or email. |
88 | 87 | */ |
89 | | - @Ignore("Something is weird right now on local gradle, works in spring boot") |
| 88 | + @Disabled |
90 | 89 | @Test |
91 | 90 | void userSignup() { |
92 | | - var headers = new HttpHeaders(); |
93 | | - var ent = new HttpEntity<>( |
94 | | - new SignupRequest("Steve-Man", "steve@test.com", "$tev3s_sup3rH@rdPassword"), headers); |
95 | | - var response = restTemplate.exchange(userUrl + "/signup", HttpMethod.POST, ent, String.class); |
96 | | - assertEquals(HttpStatus.OK, response.getStatusCode()); |
97 | | - |
98 | | - /** This should fail as the user should already exist. */ |
99 | | - response = restTemplate.exchange(userUrl + "/signup", HttpMethod.POST, ent, String.class); |
100 | | - assertEquals(HttpStatus.BAD_REQUEST, response.getStatusCode()); |
| 91 | + var headers = new HttpHeaders(); |
| 92 | + var ent = new HttpEntity<>( |
| 93 | + new SignupRequest("Steve-Man", "steve@test.com", "$tev3s_sup3rH@rdPassword"), headers); |
| 94 | + var response = restTemplate.exchange(userUrl + "/signup", HttpMethod.POST, ent, String.class); |
| 95 | + assertEquals(HttpStatus.OK, response.getStatusCode()); |
| 96 | + |
| 97 | + /** This should fail as the user should already exist. */ |
| 98 | + response = restTemplate.exchange(userUrl + "/signup", HttpMethod.POST, ent, String.class); |
| 99 | + assertEquals(HttpStatus.BAD_REQUEST, response.getStatusCode()); |
101 | 100 | } |
102 | 101 |
|
103 | 102 | /** |
104 | 103 | * Create a user, gets the registration token from the email. Uses the token to complete |
105 | 104 | * registration. |
106 | 105 | */ |
107 | 106 | @Test |
108 | | - @Ignore("Something is weird right now on local gradle, works in spring boot") |
| 107 | + @Disabled |
109 | 108 | void completeSignupAndRegistration() { |
110 | 109 | var headers = new HttpHeaders(); |
111 | 110 | var ent = new HttpEntity<>( |
|
0 commit comments