X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=inline;f=policy-agent%2Fsrc%2Ftest%2Fjava%2Forg%2Foransc%2Fpolicyagent%2FApplicationTest.java;h=1cbd0b66ab3eca9a2871eb9ed66ee4b74845e1a2;hb=412e0a2f5d16a227374ebd417e7545a514df1143;hp=32d7fe64e64e921d0f819041d2535b327f022888;hpb=41cbc8cef42c7b1d4ee78c8789f14bffd7d829dd;p=nonrtric.git diff --git a/policy-agent/src/test/java/org/oransc/policyagent/ApplicationTest.java b/policy-agent/src/test/java/org/oransc/policyagent/ApplicationTest.java index 32d7fe64..1cbd0b66 100644 --- a/policy-agent/src/test/java/org/oransc/policyagent/ApplicationTest.java +++ b/policy-agent/src/test/java/org/oransc/policyagent/ApplicationTest.java @@ -46,4 +46,12 @@ public class ApplicationTest { assertThat(rsp).contains("type3"); } + @Test + public void getRics() throws Exception { + String cmd = "/rics"; + String rsp = this.restTemplate.getForObject("http://localhost:" + port + cmd, String.class); + System.out.println("*** rsp " + rsp); + assertThat(rsp).contains("kista_1"); + } + }