Skip to content

Commit

Permalink
Remove issues
Browse files Browse the repository at this point in the history
  • Loading branch information
federicaagostini committed Aug 1, 2024
1 parent 3dd7862 commit bf2b4a2
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,15 +383,10 @@ public void testDeviceCodeApprovalFlowWorks() throws Exception {
.getRequest()
.getSession();

String APPROVED_SITE_URL = "http://localhost:8080/" + ApprovedSiteAPI.URL;

session = (MockHttpSession) mvc.perform(get(APPROVED_SITE_URL).session(session))
mvc.perform(get("/" + ApprovedSiteAPI.URL).session(session))
.andExpect(status().isOk())
.andExpect(jsonPath("$[0].clientId", equalTo(DEVICE_CODE_CLIENT_ID)))
.andExpect(jsonPath("$[0].userId", equalTo(TEST_USERNAME)))
.andReturn()
.getRequest()
.getSession();
.andExpect(jsonPath("$[0].userId", equalTo(TEST_USERNAME)));


String tokenResponse = mvc
Expand Down

0 comments on commit bf2b4a2

Please sign in to comment.