Skip to content

Commit

Permalink
tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sqshq committed Mar 5, 2016
1 parent 945ac5f commit c2f5620
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void shouldRegisterNewAccount() throws Exception {

String json = mapper.writeValueAsString(user);
System.out.println(json);
mockMvc.perform(post("/registration").principal(new UserPrincipal("test")).contentType(MediaType.APPLICATION_JSON).content(json))
mockMvc.perform(post("/").principal(new UserPrincipal("test")).contentType(MediaType.APPLICATION_JSON).content(json))
.andExpect(status().isOk());
}

Expand All @@ -145,7 +145,7 @@ public void shouldFailOnValidationTryingToRegisterNewAccount() throws Exception

String json = mapper.writeValueAsString(user);

mockMvc.perform(post("/registration").principal(new UserPrincipal("test")).contentType(MediaType.APPLICATION_JSON).content(json))
mockMvc.perform(post("/").principal(new UserPrincipal("test")).contentType(MediaType.APPLICATION_JSON).content(json))
.andExpect(status().isBadRequest());
}
}
8 changes: 8 additions & 0 deletions notification-service/src/test/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#spring:
# data:
# mongodb:
# database: piggymetrics
# port: 0

delay:
value: 5000
3 changes: 3 additions & 0 deletions notification-service/src/test/resources/bootstrap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
eureka:
client:
enabled: false

0 comments on commit c2f5620

Please sign in to comment.