+ @Test
+ public void testModifyNssi() {
+ SoSimulatorJaxRs.setRequirePolling(false);
+ String request = Serialization.gsonPretty.toJson(this.createNssiRequest());
+ Pair<Integer, String> httpDetails = new RestManager().put(
+ "http://localhost:6667/3gppservices/v7/modify",
+ "username",
+ "password", new HashMap<>(), "application/json", request);
+ assertNotNull(httpDetails);
+ assertEquals(200, httpDetails.getLeft().intValue());
+ assertThat(httpDetails.getRight()).contains("jobId").contains("status");
+ }
+
+ private SoRequest3gpp createNssiRequest() {
+ SoRequest3gpp request = new SoRequest3gpp();
+
+ request.setName("URLLC_core1");
+ request.setServiceInstanceId("ff67a209-dc69-4a1a-b89a-c1f55c2a8842");
+ request.setGlobalSubscriberId("5G Customer");
+ request.setSubscriptionServiceType("5G");
+ request.setNetworkType("an");
+ request.setAdditionalProperties(new HashMap<String, Object>());
+
+ return request;
+ }
+
+ @Test
+ public void testModifyCll() {
+ SoSimulatorJaxRs.setRequirePolling(false);
+ String request = Serialization.gsonPretty.toJson(this.createCllRequest());
+ Pair<Integer, String> httpDetails = new RestManager().put(
+ "http://localhost:6667/infra/serviceIntent/v1/modify",
+ "username",
+ "password", new HashMap<>(), "application/json", request);
+ assertNotNull(httpDetails);
+ assertEquals(200, httpDetails.getLeft().intValue());
+ assertThat(httpDetails.getRight()).contains("jobId").contains("status");
+ }
+
+ private SoRequestCll createCllRequest() {
+ SoRequestCll request = new SoRequestCll();
+
+ request.setName("cloud-leased-line-101");
+ request.setServiceInstanceId("cll-instance-01");
+ request.setGlobalSubscriberId("IBNCustomer");
+ request.setSubscriptionServiceType("ibn");
+ request.setServiceType("CLL");
+ request.setAdditionalProperties(new HashMap<String, Object>());
+
+ return request;
+ }
+