Dependency inject Retrofit client to simplify api declaration 92/139992/2 15.0.1
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Tue, 21 Jan 2025 13:27:53 +0000 (14:27 +0100)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Tue, 21 Jan 2025 18:01:36 +0000 (19:01 +0100)
commita72a615025afe0e93ee14e5b144538df65176e2c
tree93da1b085ec21d51b5a2daba10f4dc3056f78855
parentd0ea368346b68a85696f4a0dac8b1e02c446b64d
Dependency inject Retrofit client to simplify api declaration

- centrally declare AAI rest client [0]
- add integration test to assert http request to AAI
- do not ignore test failure

[0] this has the advantage, that
- headers are defined for all requests via interceptor
- this is the correct setup to add tracing to the app with a later change
- credentials for AAI can be centrally configured (it is now configurable in the latest AAI version)

Issue-ID: USECASEUI-857
Change-Id: I5ef0e859e3bc2ab4b42fe6ed27632c211b90ac62
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
.gitignore
server/pom.xml
server/src/main/java/org/onap/usecaseui/server/config/AAIClientConfig.java [new file with mode: 0644]
server/src/main/java/org/onap/usecaseui/server/config/intent/IntentScheduleTask.java [moved from server/src/main/java/org/onap/usecaseui/server/conf/intent/IntentScheduleTask.java with 96% similarity]
server/src/main/java/org/onap/usecaseui/server/service/lcm/domain/aai/AAIService.java
server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultCustomerService.java
server/src/test/java/org/onap/usecaseui/server/service/lcm/impl/DefaultCustomerServiceIntegrationTest.java [new file with mode: 0644]
server/src/test/resources/__files/customersResponse.json [new file with mode: 0644]