Skip to content

Commit 0be154f

Browse files
committed
Fixed tests
1 parent 4dc173b commit 0be154f

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

client/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2592,7 +2592,7 @@ lodash.merge@^4.6.2:
25922592
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
25932593
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==
25942594

2595-
lodash@*:
2595+
lodash@*, lodash@^4.17.23:
25962596
version "4.17.23"
25972597
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.23.tgz#f113b0378386103be4f6893388c73d0bde7f2c5a"
25982598
integrity sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==

server/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@
160160
<artifactId>java-crypto</artifactId>
161161
<version>4.0.2</version>
162162
</dependency>
163+
<dependency>
164+
<groupId>org.apache.httpcomponents.core5</groupId>
165+
<artifactId>httpcore5</artifactId>
166+
<version>5.4</version>
167+
<scope>compile</scope>
168+
</dependency>
163169
<dependency>
164170
<groupId>org.apache.httpcomponents.client5</groupId>
165171
<artifactId>httpclient5</artifactId>

server/src/main/java/access/api/ManageController.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public class ManageController implements UserAccessRights, PolicyAccessRights {
4343
private final ObjectMapper objectMapper;
4444
private final Map<String, Object> arpInfo;
4545
private final List<Map<String, Object>> privacyInfo;
46-
private final List<Map<String, String>> allowedAttributes;
4746

4847
@SneakyThrows
4948
public ManageController(Manage manage,
@@ -54,7 +53,6 @@ public ManageController(Manage manage,
5453
});
5554
this.privacyInfo = objectMapper.readValue(new ClassPathResource("/metadata/Privacy.json").getInputStream(), new TypeReference<>() {
5655
});
57-
this.allowedAttributes = manage.allowedAttributes();
5856
}
5957

6058
@GetMapping("/arp")
@@ -185,7 +183,7 @@ public ResponseEntity<List<Map<String, Object>>> providersByEntityId(@PathVariab
185183
public ResponseEntity<List<Map<String, String>>> allowedAttributes() {
186184
LOG.debug("/allowedAttributes");
187185

188-
return ResponseEntity.ok(this.allowedAttributes);
186+
return ResponseEntity.ok(manage.allowedAttributes());
189187
}
190188

191189
@SneakyThrows

0 commit comments

Comments
 (0)