summaryrefslogtreecommitdiffstats
path: root/adaptors
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2023-06-13 12:32:29 -0400
committerDan Timoney <dtimoney@att.com>2023-06-13 12:32:29 -0400
commitfa9912503ad15734452a806cef08cc59a1a77498 (patch)
tree0e1d909272f67234d1edc4098b6a53d86772d18b /adaptors
parent21e0eb9b300bb0d764e39fb9c914fd0d82aee456 (diff)
Support HTTP PATCH in AAI adaptor
Update AAI adaptor to send proper HTTP header to use HTTP PATCH Issue-ID: CCSDK-3908 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I231c19127789e66a65d73b6d58386079e618a515
Diffstat (limited to 'adaptors')
-rwxr-xr-xadaptors/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIClientRESTExecutor.java7
-rwxr-xr-xadaptors/sql-resource/provider/pom.xml16
2 files changed, 22 insertions, 1 deletions
diff --git a/adaptors/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIClientRESTExecutor.java b/adaptors/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIClientRESTExecutor.java
index 6083e89ba..156867a2b 100755
--- a/adaptors/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIClientRESTExecutor.java
+++ b/adaptors/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIClientRESTExecutor.java
@@ -805,7 +805,12 @@ public class AAIClientRESTExecutor implements AAIExecutorInterface {
con.setUseCaches(false);
con.setConnectTimeout(connection_timeout);
con.setReadTimeout(read_timeout);
- con.setRequestMethod(method);
+ if ("PATCH".equalsIgnoreCase(method)) {
+ con.setRequestMethod("POST");
+ con.setRequestProperty("X-HTTP-Method-Override", "PATCH");
+ } else {
+ con.setRequestMethod(method);
+ }
con.setRequestProperty("Accept", "application/json");
con.setRequestProperty("Transfer-Encoding","chunked");
con.setRequestProperty("Content-Type",
diff --git a/adaptors/sql-resource/provider/pom.xml b/adaptors/sql-resource/provider/pom.xml
index 3ccecca9e..3566abd05 100755
--- a/adaptors/sql-resource/provider/pom.xml
+++ b/adaptors/sql-resource/provider/pom.xml
@@ -21,6 +21,22 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
+ <!-- Tests require MariaDB4j , which does not currently support ARM64 -->
+ <profiles>
+ <profile>
+ <id>disable-test-on-ARM64</id>
+ <activation>
+ <os>
+ <arch>aarch64</arch>
+ </os>
+ </activation>
+ <properties>
+ <skipTests>true</skipTests>
+ </properties>
+ </profile>
+ </profiles>
+
+
<dependencyManagement>
<dependencies>
<dependency>