summaryrefslogtreecommitdiffstats
path: root/runtime/src/test/java
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2021-07-14 14:37:52 +0000
committerGerrit Code Review <gerrit@onap.org>2021-07-14 14:37:52 +0000
commit3ad8cf5d4c404b8b5e61396067a180a86384451d (patch)
treead50afe424fc82ee73bf56d8bdc4e9eaa633c61b /runtime/src/test/java
parent80897daedf5d96114c6263ba836c9974415d7e56 (diff)
parentccf9b0dc2858265e3a3d7da28a653f6bc7e2e8a3 (diff)
Merge "Added get json schema endpoints"
Diffstat (limited to 'runtime/src/test/java')
-rw-r--r--runtime/src/test/java/org/onap/policy/clamp/runtime/RuntimeCommissioningResponseTestItCase.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/src/test/java/org/onap/policy/clamp/runtime/RuntimeCommissioningResponseTestItCase.java b/runtime/src/test/java/org/onap/policy/clamp/runtime/RuntimeCommissioningResponseTestItCase.java
index 0ba1486bb..7616d7a49 100644
--- a/runtime/src/test/java/org/onap/policy/clamp/runtime/RuntimeCommissioningResponseTestItCase.java
+++ b/runtime/src/test/java/org/onap/policy/clamp/runtime/RuntimeCommissioningResponseTestItCase.java
@@ -47,6 +47,20 @@ public class RuntimeCommissioningResponseTestItCase {
+ " \"name\": \"ToscaServiceTemplateSimple\", \"version\": \"1.0.0\", \"metadata\": {}}";
@Test
+ public void testToscaServiceTemplateSchemaStatus() {
+ ProducerTemplate prodTemplate = camelContext.createProducerTemplate();
+
+ Exchange exchangeResponse =
+ prodTemplate.send("direct:get-json-schema", ExchangeBuilder.anExchange(camelContext)
+ .withProperty("section", "data_types")
+ .withProperty("raiseHttpExceptionFlag", "true")
+ .build());
+
+ assertThat(HttpStatus.valueOf((Integer) exchangeResponse.getIn().getHeader(Exchange.HTTP_RESPONSE_CODE))
+ .is2xxSuccessful()).isTrue();
+ }
+
+ @Test
public void testToscaServiceTemplateStatus() {
ProducerTemplate prodTemplate = camelContext.createProducerTemplate();