Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query Management/Cafcass API Combo Branch #5657

Open
wants to merge 130 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
c7111f2
DFPL-2427 POC controllers for FPL API gateway (#5481)
chak-shing-lo-justice Jul 9, 2024
99bd7f2
Merge branch 'master' into cafcass-api
chak-shing-lo-justice Jul 9, 2024
9dbfd58
Merge branch 'master' into cafcass-api
chak-shing-lo-justice Jul 11, 2024
8ee8cec
Merge branch 'master' into cafcass-api
chak-shing-lo-justice Jul 29, 2024
04f551e
DFPL-1761 Build GET /searchCases endpoint (#5495)
chak-shing-lo-justice Aug 1, 2024
531a004
Merge branch 'master' into cafcass-api
chak-shing-lo-justice Aug 1, 2024
90b65d1
update CAFCASS_SYSTEM_UPDATE value (#5523)
chak-shing-lo-justice Aug 1, 2024
cdbcbe7
fix code style
chak-shing-lo-justice Aug 1, 2024
50e3c3f
Dfpl 1761 ES query fix (#5524)
chak-shing-lo-justice Aug 2, 2024
8d404e7
DFPL 1760 (#5525)
chak-shing-lo-justice Aug 8, 2024
d4b16fc
Cafcass api fix conflict (#5538)
chak-shing-lo-justice Aug 14, 2024
9c49c45
Merge branch 'master' into cafcass-api
chak-shing-lo-justice Aug 19, 2024
b6ea883
DFPL-1791: Add List for Guardian Report API call (#5531)
AlistairEdwinOsborne Aug 19, 2024
17255c7
Dfpl 1790 (#5541)
chak-shing-lo-justice Aug 20, 2024
db70a2f
DFPL-2439: Query Management (CCD Config)
qasimnawaz-moj Aug 20, 2024
680da71
Update system-update.json (#5544)
chak-shing-lo-justice Aug 20, 2024
a958078
add genderIdentification to response (#5546)
chak-shing-lo-justice Aug 21, 2024
9caf2d6
DFPL-1762 (#5540)
chak-shing-lo-justice Aug 21, 2024
b08458c
Merge branch 'master' into DFPL-2439
qasimnawaz-moj Aug 22, 2024
18b5f9f
fix gender value in API response (#5548)
chak-shing-lo-justice Aug 23, 2024
7f6cc1e
Update permissions for events and fields
qasimnawaz-moj Aug 27, 2024
13d8715
Update permissions
qasimnawaz-moj Aug 28, 2024
adc2e98
Merge branch 'master' into DFPL-2439
qasimnawaz-moj Aug 28, 2024
3515ecf
Push Master changes to cafcass api feature branch (#5554)
AlistairEdwinOsborne Aug 28, 2024
35aa223
Revert "Push Master changes to cafcass api feature branch (#5554)"
chak-shing-lo-justice Aug 28, 2024
d9f9dd8
Merge branch 'master' into cafcass-api
chak-shing-lo-justice Aug 28, 2024
851a966
Update field type for queries
qasimnawaz-moj Aug 29, 2024
0f63594
Merge branch 'master' into DFPL-2439
qasimnawaz-moj Aug 29, 2024
7909dcc
update field name
qasimnawaz-moj Aug 29, 2024
4d3c2b3
update queries to qmCaseQueriesCollection
qasimnawaz-moj Aug 29, 2024
1cb127f
Merge branch 'master' into cafcass-api
chak-shing-lo-justice Sep 4, 2024
b8b2971
fix unit test after merge
chak-shing-lo-justice Sep 4, 2024
f1ad695
DFPL 2512 Cafcass API Feature toggling by region (court) (#5568)
chak-shing-lo-justice Sep 5, 2024
eed7290
Merge branch 'master' into DFPL-2439-queryCollections
jamesrferguson1 Sep 11, 2024
be5ff13
Reducing query collections to only be for Child solicitor A and B.
jamesrferguson1 Sep 11, 2024
54ca18e
Adding callback to about to start in raise query event.
jamesrferguson1 Sep 13, 2024
7541b7f
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Sep 13, 2024
248c0c9
Initialise all qmcollections to emptylist for raise query event
qasimnawaz-moj Sep 13, 2024
de1186f
Merge branch 'master' into cafcass-api
chak-shing-lo-justice Sep 16, 2024
82050a9
DFPL-2506 add uploadTimestamp (#5529)
chak-shing-lo-justice Sep 16, 2024
a2fc757
Update CafcassApiConfiguration.java (#5585)
chak-shing-lo-justice Sep 16, 2024
d0b648e
Update system-update.json (#5586)
chak-shing-lo-justice Sep 16, 2024
2bb8fc5
Add abouttostart test
qasimnawaz-moj Sep 18, 2024
f557e16
DFPL-1767: Add POST endpoint for uploading documents from Cafcass API…
AlistairEdwinOsborne Sep 18, 2024
43c3e72
DFPL 2214 Fix c2 draft order and duplicated doc (#5589)
chak-shing-lo-justice Sep 19, 2024
1b1d7c4
DFPL 2548 (#5588)
chak-shing-lo-justice Sep 19, 2024
c78f19d
DFPL 2542 Apply feature toggling to all endpoint (#5587)
chak-shing-lo-justice Sep 19, 2024
8431ad1
Dfpl 2548 fix system update user permission (#5593)
chak-shing-lo-justice Sep 20, 2024
3320a35
Initialise qm collections to null
qasimnawaz-moj Sep 23, 2024
ae01eb2
remove import
qasimnawaz-moj Sep 23, 2024
2457772
Dfpl 2547 (#5591)
chak-shing-lo-justice Sep 24, 2024
e996b33
Merge branch 'master' into cafcass-api
chak-shing-lo-justice Sep 25, 2024
1819859
Merge branch 'master' into cafcass-api
chak-shing-lo-justice Sep 25, 2024
c0a70b1
DFPL-1767: Fix Guardian's Report document removal (#5600)
AlistairEdwinOsborne Sep 26, 2024
1e82c79
Update system-update.json (#5604)
chak-shing-lo-justice Sep 27, 2024
e815400
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Sep 27, 2024
0553287
Point to xui pr 2933 image
qasimnawaz-moj Sep 27, 2024
5d45738
Merge branch 'master' into cafcass-api
chak-shing-lo-justice Sep 27, 2024
6d8e9b7
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Sep 27, 2024
78e3536
Correct xui image name
qasimnawaz-moj Sep 27, 2024
24f2a73
DFPL-1767: Fix Guardian Report DocumentType and Category (#5607)
AlistairEdwinOsborne Sep 30, 2024
7de13cd
DFPL-GUARDIANREPORT-FIX: Swap to U rather than R for removed reports …
AlistairEdwinOsborne Sep 30, 2024
cc6242b
update to Boolean (#5606)
chak-shing-lo-justice Oct 1, 2024
cefa3ca
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Oct 1, 2024
330e754
Change name for raise query event
qasimnawaz-moj Oct 1, 2024
6cff50f
Fixes for the about to start event
qasimnawaz-moj Oct 1, 2024
7287e42
Merge branch 'DFPL-2439-queryCollections' of github.com:hmcts/fpl-ccd…
qasimnawaz-moj Oct 1, 2024
5905685
Change names of collections for debugging
qasimnawaz-moj Oct 1, 2024
5889469
Add logging
qasimnawaz-moj Oct 1, 2024
8a037af
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Oct 2, 2024
1f28326
FOR TESTING: add childsola permission to colectiontwo
qasimnawaz-moj Oct 2, 2024
cb9c376
DFPL-POSSTMT: Add Null handler for Position Statement Lists (#5616)
AlistairEdwinOsborne Oct 2, 2024
d755a70
Add collection for childsolc
qasimnawaz-moj Oct 2, 2024
bdfec51
Merge branch 'master' into cafcass-api
AlistairEdwinOsborne Oct 2, 2024
2855eb7
fix feature service after merge
chak-shing-lo-justice Oct 2, 2024
adb7d68
Trying removing about to start controller logic.
jamesrferguson1 Oct 2, 2024
93736b5
Add some additional logging.
jamesrferguson1 Oct 2, 2024
3b62f8d
Remove child solicitor A role from second queries collection
jamesrferguson1 Oct 2, 2024
be545ce
Update to set queryCollection corresponding to user to null and remov…
jamesrferguson1 Oct 3, 2024
477ee2f
For testing only, set value for user's query collection to "Test". Al…
jamesrferguson1 Oct 3, 2024
faa0178
Fix checkstyle.
jamesrferguson1 Oct 3, 2024
e4e46d5
Changing back to set query list to null
jamesrferguson1 Oct 3, 2024
fad2abd
Update application.yaml (#5624)
chak-shing-lo-justice Oct 4, 2024
228006a
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Oct 4, 2024
cdde601
Cafcass api filtering out wales case (#5618)
chak-shing-lo-justice Oct 7, 2024
4903922
Remove displaycontextpararmeters
qasimnawaz-moj Oct 7, 2024
7fec189
Remove retainhiddenvalue fields
qasimnawaz-moj Oct 7, 2024
37d3f7e
Add env variables for ccd data store
qasimnawaz-moj Oct 8, 2024
b8d12c7
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Oct 8, 2024
31a520e
Update xui image
qasimnawaz-moj Oct 8, 2024
3938ff0
Add caseNameHmctsInternal field to fix missing case name issues
qasimnawaz-moj Oct 9, 2024
895d089
Merge branch 'master' into cafcass-api
chak-shing-lo-justice Oct 10, 2024
1fd995e
udpate risks and internationalElement for sys user
chak-shing-lo-justice Oct 11, 2024
dd9089d
Update XUI image
qasimnawaz-moj Oct 11, 2024
b8810e2
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Oct 14, 2024
a861144
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Oct 15, 2024
6ddccc7
Remove collection removal logic
qasimnawaz-moj Oct 15, 2024
a57d5d0
fix typo
qasimnawaz-moj Oct 15, 2024
280f857
Give judicary access to collections to see queries raised
qasimnawaz-moj Oct 17, 2024
53ee304
DFPL 2557 specify ES query source field. (#5640)
chak-shing-lo-justice Oct 17, 2024
3c9ffd9
Dfpl 2557 fix applicant la (#5642)
chak-shing-lo-justice Oct 18, 2024
f211cde
update case name field being used
qasimnawaz-moj Oct 18, 2024
b09b0e4
update xui image
qasimnawaz-moj Oct 18, 2024
c02b72c
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Oct 21, 2024
473cd86
Update values.preview.template.yaml
kasi-subramaniam Oct 21, 2024
39c0ce9
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Oct 22, 2024
ab0dbaa
Update values.preview.template.yaml
kasi-subramaniam Oct 22, 2024
d94cc9f
Merge branch 'DFPL-2439-queryCollections' into qm-cafcass-api
qasimnawaz-moj Oct 23, 2024
a2f89b6
Merge Cafcass API
qasimnawaz-moj Oct 23, 2024
3ee852e
Merge branch 'master' into cafcass-api
chak-shing-lo-justice Oct 23, 2024
32be3ff
fix CafcassApiCaseDocumentsConverterTest after merging
chak-shing-lo-justice Oct 23, 2024
78438e6
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Oct 23, 2024
ca7c644
Merge branch 'cafcass-api' into qm-cafcass-api
qasimnawaz-moj Oct 23, 2024
1455d73
Merge branch 'DFPL-2439-queryCollections' into qm-cafcass-api
qasimnawaz-moj Oct 23, 2024
1afd928
Merge branch 'master' into qm-cafcass-api
qasimnawaz-moj Oct 23, 2024
1e84d4f
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Oct 23, 2024
dbc79bf
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Oct 24, 2024
ae8c81d
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Oct 24, 2024
90d5eda
Add all collections
qasimnawaz-moj Oct 24, 2024
95aae3a
Give judiciary permissions to see all collections
qasimnawaz-moj Oct 24, 2024
fd18885
Rework raise query about to start logic
qasimnawaz-moj Oct 24, 2024
3f4e007
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Oct 25, 2024
6bb7f88
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Oct 25, 2024
cdf999d
Merge branch 'master' into DFPL-2439-queryCollections
qasimnawaz-moj Oct 25, 2024
5846247
revert child sol a b and c collection names
qasimnawaz-moj Oct 25, 2024
2b66f45
Revert raise query controller logic
qasimnawaz-moj Oct 25, 2024
9faa510
Add LASOLICITOR query collection for perftest
jamesrferguson1 Oct 29, 2024
c037607
Merge branch 'master' into DFPL-2439-queryCollections
jamesrferguson1 Oct 29, 2024
4f91377
Merge remote-tracking branch 'origin/DFPL-2439-queryCollections' into…
jamesrferguson1 Oct 29, 2024
edd071c
empty commit
DanCatchpole Jan 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
DFPL-2427 POC controllers for FPL API gateway (#5481)
* add dummy controller for API gateway POC

* update CafcassCasesController for POC

* update CafcassCasesController for POC

* Update CafcassCasesController.java

* Update CafcassCasesControllerTest.java

* Update CafcassCasesController.java

* add all endpoint for POC

* remove unused import

* Update CafcassCasesControllerTest.java

* Update CafcassCasesController.java

* Update CafcassCasesController.java

* update CafcassCasesController
  • Loading branch information
chak-shing-lo-justice authored Jul 9, 2024
commit c7111f2028f4efa08402d2f52c26d2e14857b689
Original file line number Diff line number Diff line change
@@ -0,0 +1,283 @@
package uk.gov.hmcts.reform.fpl.controllers.cafcass;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.OverrideAutoConfiguration;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.http.MediaType;
import org.springframework.mock.web.MockMultipartFile;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.MvcResult;
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
import uk.gov.hmcts.reform.fpl.controllers.AbstractTest;

import java.util.UUID;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

@WebMvcTest(CafcassCasesController.class)
@OverrideAutoConfiguration(enabled = true)
public class CafcassCasesControllerTest extends AbstractTest {
private static final UUID CASE_ID = UUID.randomUUID();
private static final byte[] FILE_BYTES = "This is a file. Trust me!".getBytes();
private static final MockMultipartFile FILE = new MockMultipartFile(
"file", "MOCK_FILE.pdf", MediaType.TEXT_PLAIN_VALUE, FILE_BYTES);

@Autowired
private MockMvc mockMvc;

@Test
void searchCases() throws Exception {
MvcResult response = mockMvc
.perform(get("/cases")
.header("authorization", USER_AUTH_TOKEN)
.header("user-id", USER_ID)
.header("user-roles", String.join(","))
.queryParam("startDate", "2023-03-28T12:32:54.541")
.queryParam("endDate", "2024-03-27T12:32:54.542"))
.andExpect(status().is(200))
.andReturn();

assertEquals("searchCases - Start date: [2023-03-28], End date: [2024-03-27]",
response.getResponse().getContentAsString());
}

@Test
void searchCasesInvalidFormat400() throws Exception {
MvcResult response = mockMvc
.perform(get("/cases")
.header("authorization", USER_AUTH_TOKEN)
.header("user-id", USER_ID)
.header("user-roles", String.join(","))
.queryParam("startDate", "123")
.queryParam("endDate", "321"))
.andExpect(status().is(400))
.andReturn();

assertEquals(response.getResponse().getStatus(), 400);
}

@Test
void searchCasesEmptyParam400() throws Exception {
MvcResult response = mockMvc
.perform(get("/cases"))
.andExpect(status().is(400))
.andReturn();

assertEquals(response.getResponse().getStatus(), 400);

response = mockMvc
.perform(get("/cases")
.header("authorization", USER_AUTH_TOKEN)
.header("user-id", USER_ID)
.header("user-roles", String.join(","))
.queryParam("startDate", "2023-03-28T12:32:54.541"))
.andExpect(status().is(400))
.andReturn();

assertEquals(response.getResponse().getStatus(), 400);

response = mockMvc
.perform(get("/cases")
.header("authorization", USER_AUTH_TOKEN)
.header("user-id", USER_ID)
.header("user-roles", String.join(","))
.queryParam("endDate", "2024-03-27T12:32:54.542"))
.andExpect(status().is(400))
.andReturn();

assertEquals(response.getResponse().getStatus(), 400);
}

@Test
void searchCases500() throws Exception {
MvcResult response = mockMvc
.perform(get("/cases")
.header("authorization", USER_AUTH_TOKEN)
.header("user-id", USER_ID)
.header("user-roles", String.join(","))
.queryParam("startDate", "2024-03-28T12:32:54.541")
.queryParam("endDate", "2023-03-27T12:32:54.542"))
.andExpect(status().is(500))
.andReturn();

assertEquals(response.getResponse().getStatus(), 500);
}

@Test
void getDocumentBinary() throws Exception {
UUID docId = UUID.randomUUID();
MvcResult response = mockMvc
.perform(get("/cases/documents/%s/binary".formatted(docId))
.header("authorization", USER_AUTH_TOKEN)
.header("user-id", USER_ID)
.header("user-roles", String.join(",")))
.andExpect(status().is(200))
.andReturn();

assertEquals("getDocumentBinary - document id: [%s]".formatted(docId),
response.getResponse().getContentAsString());
}

@Test
void getDocumentBinary400() throws Exception {
MvcResult response = mockMvc
.perform(get("/cases/documents/123/binary")
.header("authorization", USER_AUTH_TOKEN)
.header("user-id", USER_ID)
.header("user-roles", String.join(",")))
.andExpect(status().is(400))
.andReturn();

assertEquals(response.getResponse().getStatus(), 400);

response = mockMvc
.perform(get("/cases/documents/ /binary")
.header("authorization", USER_AUTH_TOKEN)
.header("user-id", USER_ID)
.header("user-roles", String.join(",")))
.andExpect(status().is(400))
.andReturn();

assertEquals(response.getResponse().getStatus(), 400);
}

@Test
void uploadDocument() throws Exception {

MvcResult response = mockMvc
.perform(MockMvcRequestBuilders.multipart("/cases/%s/document".formatted(CASE_ID))
.file(FILE)
.param("typeOfDocument", "type Of Document")
.header("authorization", USER_AUTH_TOKEN)
.header("user-id", USER_ID)
.header("user-roles", String.join(",")))
.andExpect(status().is(200))
.andReturn();

assertEquals("uploadDocument - caseId: [%s], file length: [%s], typeOfDocument: [%s]"
.formatted(CASE_ID, FILE_BYTES.length, "type Of Document"),
response.getResponse().getContentAsString());
}

@Test
void uploadDocument400() throws Exception {
UUID caseId = UUID.randomUUID();

MvcResult response = mockMvc
.perform(MockMvcRequestBuilders.multipart("/cases/%s/document".formatted(caseId))
.param("typeOfDocument", "type Of Document")
.header("authorization", USER_AUTH_TOKEN)
.header("user-id", USER_ID)
.header("user-roles", String.join(",")))
.andExpect(status().is(400))
.andReturn();

assertEquals(response.getResponse().getStatus(), 400);


byte[] fileBytes = "This is a file. Trust me!".getBytes();
MockMultipartFile file = new MockMultipartFile(
"file", "MOCK_FILE.pdf", MediaType.TEXT_PLAIN_VALUE, fileBytes);

response = mockMvc
.perform(MockMvcRequestBuilders.multipart("/cases/%s/document".formatted(caseId))
.file(file)
.header("authorization", USER_AUTH_TOKEN)
.header("user-id", USER_ID)
.header("user-roles", String.join(",")))
.andExpect(status().is(400))
.andReturn();

assertEquals(response.getResponse().getStatus(), 400);
}

@Test
void uploadGuardians() throws Exception {
UUID caseId = UUID.randomUUID();

MvcResult response = mockMvc.perform(post("/cases/%s/guardians".formatted(caseId))
.content("[\n"
+ " {\n"
+ " \"guardianName\": \"John Smith\",\n"
+ " \"telephoneNumber\": \"01234567890\",\n"
+ " \"email\": \"john.smith@example.com\",\n"
+ " \"children\": [\n"
+ " \"Joe Bloggs\"\n"
+ " ]\n"
+ " }\n"
+ "]")
.contentType(MediaType.APPLICATION_JSON)
.header("authorization", USER_AUTH_TOKEN)
.header("user-id", USER_ID)
.header("user-roles", String.join(",")))
.andExpect(status().is(200))
.andReturn();

assertEquals("uploadGuardians - caseId: [%s], no of guardians: [%s]\nguardianName: [%s], children: [%s]\n"
.formatted(caseId, 1, "John Smith", "Joe Bloggs"),
response.getResponse().getContentAsString());
}

@Test
void uploadGuardians400() throws Exception {
UUID caseId = UUID.randomUUID();

MvcResult response = mockMvc.perform(post("/cases/%s/guardians".formatted(caseId))
.content("[]")
.contentType(MediaType.APPLICATION_JSON)
.header("authorization", USER_AUTH_TOKEN)
.header("user-id", USER_ID)
.header("user-roles", String.join(",")))
.andExpect(status().is(400))
.andReturn();

assertEquals(response.getResponse().getStatus(), 400);

response = mockMvc.perform(post("/cases/%s/guardians".formatted(" "))
.content("[\n"
+ " {\n"
+ " \"guardianName\": \"John Smith\",\n"
+ " \"telephoneNumber\": \"01234567890\",\n"
+ " \"email\": \"john.smith@example.com\",\n"
+ " \"children\": [\n"
+ " \"Joe Bloggs\"\n"
+ " ]\n"
+ " }\n"
+ "]")
.contentType(MediaType.APPLICATION_JSON)
.header("authorization", USER_AUTH_TOKEN)
.header("user-id", USER_ID)
.header("user-roles", String.join(",")))
.andExpect(status().is(400))
.andReturn();

assertEquals(response.getResponse().getStatus(), 400);
}

@Test
void uploadGuardians500() throws Exception {
UUID caseId = UUID.randomUUID();

MvcResult response = mockMvc.perform(post("/cases/%s/guardians".formatted(caseId))
.content("[\n"
+ " {\n"
+ " \"guardianName\": \"John Smith\",\n"
+ " \"telephoneNumber\": \"01234567890\",\n"
+ " \"email\": \"john.smith@example.com\",\n"
+ " \"children\": \"12313\""
+ " }\n"
+ "]")
.contentType(MediaType.APPLICATION_JSON)
.header("authorization", USER_AUTH_TOKEN)
.header("user-id", USER_ID)
.header("user-roles", String.join(",")))
.andExpect(status().is(500))
.andReturn();

assertEquals(response.getResponse().getStatus(), 500);
}
}
Loading
Loading