import org.onap.so.client.HttpClient;
import org.onap.so.logger.MessageEnum;
import org.onap.so.logger.MsoLogger;
+import org.onap.so.rest.APIResponse;
+import org.onap.so.rest.RESTClient;
+import org.onap.so.rest.RESTConfig;
import org.onap.so.utils.TargetEntity;
import com.fasterxml.jackson.core.JsonProcessingException;
private static String getCsarFromUuid(String uuid) throws Exception {
String catalogEndPoint = UrnPropertiesReader.getVariable("mso.catalog.db.endpoint");
- HttpClient client = new HttpClient(UriBuilder.fromUri(catalogEndPoint).path(SERVICE_URL_TOSCA_CSAR).queryParam("serviceModelUuid", uuid).build().toURL(), "application/json", TargetEntity.CATALOG_DB);
-
- Response response = client.get();
- String value = response.readEntity(String.class);
+
+ RESTClient restClient = new RESTClient(new RESTConfig(
+ UriBuilder.fromUri(catalogEndPoint)
+ .path(SERVICE_URL_TOSCA_CSAR)
+ .queryParam("serviceModelUuid", uuid)
+ .build().toURL().toString()
+ ));
+
+ restClient.addHeader("Accept", "application/json");
+ restClient.addAuthorizationHeader(UrnPropertiesReader.getVariable("mso.db.auth"));
+
+ APIResponse apiResponse = restClient.httpGet();
+
+ String value = apiResponse.getResponseBodyAsString();
HashMap<String, String> map = new Gson().fromJson(value, new TypeToken<HashMap<String, String>>() {}.getType());
@Override
protected void initializeHeaderMap(Map<String, String> headerMap) {
- headerMap.put("Authorization", "Basic YnBlbDpwYXNzd29yZDEk");
- headerMap.put("content-type", "application/json");
}
@Override
The SO provides the highest level of service orchestration in the ONAP architecture.
+Version: 1.3.3
+--------------
+
+:Release Date: 2018-11-30
+
+This is the official release package that was tested against the 72 hour stability test in integration environment.
+
+Casablanca Release branch
+*New Features**
+
+Below features are delivered in this release:
+* Support PNF resource type.
+* Extend the support of homing to vFW, vCPE usecases.
+* Workflow Designer Integration.
+* Monitoring BPMN worflow capabilities through UI.
+* Support to the CCVPN Usecase.
+* SO internal architecture improvements.
+
+**Bug Fixes**
+
+ The defects fixed in this release could be found `here <https://jira.onap.org/issues/?jql=project%20%3D%20SO%20AND%20affectedVersion%20%3D%20%22Beijing%20Release%22%20AND%20status%20%3D%20Closed%20>`_.
+
+**Known Issues**
+
+ There are some issues around the HPA and CCVPN that have been resolved in the patch release of 1.3.4.
+ SO-1249
+
+ The other open issues are
+ SO-1257
+ SO-1248
+ SO-1219
+ These will be addressed in the next release.
+
+**Security Notes**
+
+ SO code has been formally scanned during build time using NexusIQ and all Critical vulnerabilities have been addressed, items that remain open have been assessed for risk and determined to be false positive. The SO open Critical security vulnerabilities and their risk assessment have been documented as part of the `project <https://wiki.onap.org/pages/viewpage.action?pageId=28377799>`_.
+
+
Version: 1.3.1
--------------
import { HttpResponse } from '@angular/common/http';\r
import { PII } from './model/processInstance.model';\r
import { HttpErrorHandlerService } from './http-error-handler.service';\r
+import { ACTINST } from './model/activityInstance.model';\r
\r
\r
@Injectable({\r
}\r
\r
// HTTP GET to return Activity instancs using ProcessInstanceID\r
- getActivityInstance(processInstanceId) {\r
+ getActivityInstance(processInstanceId): Promise<ACTINST[]> {\r
var url = environment.soMonitoringBackendURL + 'activity-instance/' + processInstanceId;\r
- return this.http.get(url)\r
+ return this.http.get<ACTINST[]>(url)\r
.pipe(\r
catchError(this.httpErrorHandlerService.handleError("GET", url))\r
- );\r
+ ).toPromise();\r
}\r
\r
// HTTP GET to return Activity Instance using ProcessInstanceID\r
})\r
\r
export class DetailsComponent implements OnInit {\r
-\r
bpmnViewer: any;\r
\r
processInstanceID: string;\r
constructor(private route: ActivatedRoute, private data: DataService, private popup: ToastrNotificationService,\r
private router: Router, private spinner: NgxSpinnerService) { }\r
\r
- getActInst(procInstId: string) {\r
- this.data.getActivityInstance(procInstId).subscribe(\r
+ async getActInst(procInstId: string) {\r
+ await this.data.getActivityInstance(procInstId).then(\r
(data: ACTINST[]) => {\r
this.activityInstance = data;\r
console.log(data);\r
});\r
}\r
\r
- async getProcInstance(procInstId) {\r
+ async getProcInstance(procInstId) {\r
await this.data.getProcessInstance(procInstId).then(\r
async (data: PII) => {\r
this.processInstance = data;\r
this.getVarInst(this.processInstanceID);\r
});\r
}\r
+\r
}\r