diff options
author | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2022-03-11 18:24:40 +0100 |
---|---|---|
committer | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2022-03-11 18:24:40 +0100 |
commit | 712020637d67ec6ea205dc65926cf66eb1a1073c (patch) | |
tree | 9c2da50c7ac466c8ed8ba53b11cef68d70ee175c /so-cnf-adapter-application/src/test | |
parent | 1ae02aed51282b0f87cadfb83eb480234c7f86ef (diff) |
Improved update of AAI information
Split of create, delete and update bulk
operations to deal with AAI problems when
different types of bulk oeprations are mixed.
Issue-ID: SO-3845
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I547ba8fa4dc26753954f9174a9ce8149e6348731
Diffstat (limited to 'so-cnf-adapter-application/src/test')
-rw-r--r-- | so-cnf-adapter-application/src/test/java/org/onap/so/adapters/cnf/service/aai/AaiServiceTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/so-cnf-adapter-application/src/test/java/org/onap/so/adapters/cnf/service/aai/AaiServiceTest.java b/so-cnf-adapter-application/src/test/java/org/onap/so/adapters/cnf/service/aai/AaiServiceTest.java index 651b433..3411ae1 100644 --- a/so-cnf-adapter-application/src/test/java/org/onap/so/adapters/cnf/service/aai/AaiServiceTest.java +++ b/so-cnf-adapter-application/src/test/java/org/onap/so/adapters/cnf/service/aai/AaiServiceTest.java @@ -4,6 +4,7 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mock; +import org.onap.aaiclient.client.graphinventory.exceptions.BulkProcessFailed; import org.onap.so.adapters.cnf.AaiConfiguration; import org.onap.so.adapters.cnf.client.MulticloudClient; import org.onap.so.adapters.cnf.model.aai.AaiRequest; @@ -36,7 +37,7 @@ public class AaiServiceTest { private AaiConfiguration aaiConfiguration; @Test - public void shouldTestAaiUpdate() throws BadResponseException { + public void shouldTestAaiUpdate() throws BadResponseException, BulkProcessFailed { // given String instanceId = "instanceId"; AaiRequest aaiRequest = mock(AaiRequest.class); @@ -62,7 +63,7 @@ public class AaiServiceTest { @Test - public void shouldTestAaiDelete() throws BadResponseException { + public void shouldTestAaiDelete() throws BadResponseException, BulkProcessFailed { // given String instanceId = "instanceId"; AaiRequest aaiRequest = mock(AaiRequest.class); |