diff options
author | Tony Hansen <tony@att.com> | 2018-09-11 21:08:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-09-11 21:08:32 +0000 |
commit | 3cc41a9deb1aa19961670c5bd3a8cbad4d362d3b (patch) | |
tree | 418fc5ff93c6a21e1f154c525a125b637edd218b /prh-aai-client/src/test/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClientTest.java | |
parent | c055a50794e3933df9910514a58e4ff37ce19607 (diff) | |
parent | 4a1457c84c5f3a68ccdfb3e348996e14ccea89e8 (diff) |
Merge "PRH:security vulnerabilities fix"
Diffstat (limited to 'prh-aai-client/src/test/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClientTest.java')
-rw-r--r-- | prh-aai-client/src/test/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClientTest.java | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/prh-aai-client/src/test/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClientTest.java b/prh-aai-client/src/test/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClientTest.java index 4160f356..03f9ec64 100644 --- a/prh-aai-client/src/test/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClientTest.java +++ b/prh-aai-client/src/test/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClientTest.java @@ -105,23 +105,9 @@ class AaiProducerReactiveHttpClientTest { }).verifyComplete(); } - @Test - void getHttpResponse_whenUriSyntaxExceptionHasBeenThrown() throws URISyntaxException { - ///given - aaiProducerReactiveHttpClient = spy(aaiProducerReactiveHttpClient); - //when - when(webClient.patch()).thenReturn(requestBodyUriSpec); - aaiProducerReactiveHttpClient.createAaiWebClient(webClient); - doThrow(URISyntaxException.class).when(aaiProducerReactiveHttpClient).getUri(any()); - //then - StepVerifier.create( - aaiProducerReactiveHttpClient.getAaiProducerResponse( - dmaapModel - )).expectSubscription().expectError(Exception.class).verify(); - } @Test - void getAppropriateUri_whenPassingCorrectedPathForPnf() throws URISyntaxException { + void getAppropriateUri_whenPassingCorrectedPathForPnf() { Assertions.assertEquals(aaiProducerReactiveHttpClient.getUri("NOKnhfsadhff"), URI.create("https://54.45.33.2:1234/aai/v11/network/pnfs/pnf/NOKnhfsadhff")); } |