Change-Id: I50bd5e57136c0b0b4cb943dc82cf1fe7781db707
Issue-id: USECASEUI-53
Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
"Authorization: Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU="
})
@GET("/api/sdc/v1/catalog/resources")
- Call<List<Vnf>> listResources(@Query("resourceType") String resourceType, @Query("distributionStatus") String distributionStatus);
+ Call<List<Vnf>> listResources(@Query("resourceType") String resourceType);
}
\ No newline at end of file
}
private List<Vnf> getVFResource() throws IOException {
- Response<List<Vnf>> response = sdcCatalogService.listResources(RESOURCETYPE_VF, DISTRIBUTION_STATUS_DISTRIBUTED).execute();
+ Response<List<Vnf>> response = sdcCatalogService.listResources(RESOURCETYPE_VF).execute();
if (response.isSuccessful()) {
return response.body();
} else {
when(sdcService.listServices(CATEGORY_NS, DISTRIBUTION_STATUS_DISTRIBUTED)).thenReturn(serviceCall);
Call<List<Vnf>> vnfCall = successfulCall(vnf);
- when(sdcService.listResources(RESOURCETYPE_VF, DISTRIBUTION_STATUS_DISTRIBUTED)).thenReturn(vnfCall);
+ when(sdcService.listResources(RESOURCETYPE_VF)).thenReturn(vnfCall);
return sdcService;
}