1 package org.onap.appc.data.services.node;
3 import com.fasterxml.jackson.databind.JsonNode;
4 import com.fasterxml.jackson.databind.ObjectMapper;
5 import com.fasterxml.jackson.databind.node.JsonNodeFactory;
6 import java.util.HashMap;
7 import static org.junit.Assert.assertEquals;
8 import static org.junit.Assert.assertFalse;
9 import org.junit.Before;
10 import org.junit.Rule;
11 import org.junit.Test;
12 import org.junit.rules.ExpectedException;
13 import static org.mockito.Matchers.anyString;
14 import static org.mockito.Matchers.eq;
15 import static org.mockito.Mockito.mock;
16 import static org.mockito.Mockito.verify;
17 import static org.mockito.Mockito.when;
18 import org.onap.appc.data.services.AppcDataServiceConstant;
19 import org.onap.appc.data.services.db.DGGeneralDBService;
20 import static org.onap.appc.data.services.node.ConfigResourceNode.CONFIG_FILE_ID_PARAM;
21 import static org.onap.appc.data.services.node.ConfigResourceNode.CONF_ACTION_PREFIX;
22 import static org.onap.appc.data.services.node.ConfigResourceNode.DEVICE_CONF_FILE_TYPE;
23 import static org.onap.appc.data.services.node.ConfigResourceNode.DEVICE_CONF_PREFIX;
24 import static org.onap.appc.data.services.node.ConfigResourceNode.DEVICE_PROTOCOL_PREFIX;
25 import static org.onap.appc.data.services.node.ConfigResourceNode.FAILURE_FILE_TYPE;
26 import static org.onap.appc.data.services.node.ConfigResourceNode.FAILURE_PREFIX;
27 import static org.onap.appc.data.services.node.ConfigResourceNode.FILE_CATEGORY_PARAM;
28 import static org.onap.appc.data.services.node.ConfigResourceNode.LOG_FILE_TYPE;
29 import static org.onap.appc.data.services.node.ConfigResourceNode.LOG_PREFIX;
30 import static org.onap.appc.data.services.node.ConfigResourceNode.MAX_CONF_FILE_PREFIX;
31 import static org.onap.appc.data.services.node.ConfigResourceNode.PREPARE_RELATIONSHIP_PARAM;
32 import static org.onap.appc.data.services.node.ConfigResourceNode.SDC_IND;
33 import static org.onap.appc.data.services.node.ConfigResourceNode.SUCCESS_FILE_TYPE;
34 import static org.onap.appc.data.services.node.ConfigResourceNode.SUCCESS_PREFIX;
35 import static org.onap.appc.data.services.node.ConfigResourceNode.CONFIG_FILES_PREFIX;
36 import static org.onap.appc.data.services.node.ConfigResourceNode.UPLOAD_CONFIG_ID_PARAM;
37 import static org.onap.appc.data.services.node.ConfigResourceNode.UPLOAD_CONFIG_INFO_PREFIX;
38 import static org.onap.appc.data.services.node.ConfigResourceNode.UPLOAD_CONFIG_PREFIX;
39 import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
40 import org.onap.ccsdk.sli.core.sli.SvcLogicException;
41 import org.onap.ccsdk.sli.core.sli.SvcLogicResource;
43 public class ConfigResourceNodeTest {
45 private HashMap<String, String> inParams;
46 private SvcLogicContext contextMock;
49 public ExpectedException expectedException = ExpectedException.none();
53 contextMock = mock(SvcLogicContext.class);
54 inParams = new HashMap<>();
60 * {"capabilities":{"vnfc":[],"vm":[{"ConfigureTest":["SSC","MMSC"]}],"vf-module":[],"vnf":["ConfigModify","HealthCheck"]}}
63 public void shouldProcessCapabilitiesForVMLevel() throws Exception {
64 SvcLogicContext ctx = new SvcLogicContext();
65 ConfigResourceNode node = new ConfigResourceNode(DGGeneralDBService.initialise());
66 String findCapability = "Restart";
67 JsonNodeFactory.instance.objectNode();
68 String subCaps = "[{\"Restart\":[\"SSC\",\"MMC\"]},{\"Rebuild\":[\"SSC\"]},{\"Migrate\":[\"SSC\"]},{\"Snapshot\":[\"SSC\"]},{\"Start\":[\"SSC\"]},{\"Stop\":[\"SSC\"]}]";
69 ObjectMapper m = new ObjectMapper();
70 JsonNode subCapabilities = m.readTree(subCaps);
71 String vServerId = "testServer";
72 ctx.setAttribute("tmp.vnfInfo.vm.vnfc.vnfc-function-code", "MMC");
73 ctx.setAttribute("tmp.vnfInfo.vm.vnfc.vnfc-name", "testVnfc");
74 node.processCapabilitiesForVMLevel(vServerId, ctx, findCapability, subCapabilities);
75 String result = ctx.getAttribute("capabilities");
76 assertEquals(result, "Supported");
80 public void shouldCheckIfCapabilityCheckNeeded() {
81 ConfigResourceNode node = new ConfigResourceNode(DGGeneralDBService.initialise());
82 String findCapability = "Start";
83 String capLevel = "vnf";
84 boolean result = node.checkIfCapabilityCheckNeeded(capLevel, findCapability);
89 public void should_add_attribute_with_success_if_get_config_file_succeed() throws SvcLogicException {
90 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder().build();
92 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
93 configResourceNode.getConfigFileReference(inParams, contextMock);
95 verify(contextMock).setAttribute(anyString(), eq(AppcDataServiceConstant.OUTPUT_STATUS_SUCCESS));
99 public void should_add_attribute_with_success_if_get_config_info_succeed() throws SvcLogicException {
100 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder().build();
102 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
103 configResourceNode.getCommonConfigInfo(inParams, contextMock);
105 verify(contextMock).setAttribute(anyString(), eq(AppcDataServiceConstant.OUTPUT_STATUS_SUCCESS));
109 public void should_add_attribute_with_success_if_get_template_succeed() throws SvcLogicException {
110 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder().build();
112 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
113 configResourceNode.getTemplate(inParams, contextMock);
115 verify(contextMock).setAttribute(anyString(), eq(AppcDataServiceConstant.OUTPUT_STATUS_SUCCESS));
119 public void should_add_attribute_with_success_if_save_config_files_succeed() throws SvcLogicException {
120 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder().build();
122 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
123 configResourceNode.saveConfigFiles(inParams, contextMock);
125 verify(contextMock).setAttribute(anyString(), eq(AppcDataServiceConstant.OUTPUT_STATUS_SUCCESS));
129 public void should_add_attribute_with_success_if_update_upload_config_succeed() throws SvcLogicException {
130 when(contextMock.getAttribute(UPLOAD_CONFIG_ID_PARAM)).thenReturn("1234");
132 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder().build();
134 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
135 configResourceNode.updateUploadConfig(inParams, contextMock);
137 verify(contextMock).setAttribute(anyString(), eq(AppcDataServiceConstant.OUTPUT_STATUS_SUCCESS));
141 public void should_throw_exception_on_device_config_missing() throws Exception {
142 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
143 .getConfigFileReferenceByFileTypeNVnfType(DEVICE_CONF_PREFIX, DEVICE_CONF_FILE_TYPE, SvcLogicResource.QueryStatus.NOT_FOUND)
146 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
148 expectedException.expect(SvcLogicException.class);
149 expectedException.expectMessage("Unable to Read ConfigFileReference:device-configuration");
150 configResourceNode.getConfigFileReference(inParams, contextMock);
154 public void should_throw_exception_on_device_config_failure() throws Exception {
155 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
156 .getConfigFileReferenceByFileTypeNVnfType(DEVICE_CONF_PREFIX, DEVICE_CONF_FILE_TYPE, SvcLogicResource.QueryStatus.FAILURE)
159 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
161 expectedException.expect(SvcLogicException.class);
162 expectedException.expectMessage("Unable to Read ConfigFileReference:device-configuration");
163 configResourceNode.getConfigFileReference(inParams, contextMock);
167 public void should_throw_exception_on_success_param_missing() throws Exception {
169 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
170 .getConfigFileReferenceByFileTypeNVnfType(SUCCESS_PREFIX, SUCCESS_FILE_TYPE, SvcLogicResource.QueryStatus.NOT_FOUND)
173 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
175 expectedException.expect(SvcLogicException.class);
176 expectedException.expectMessage("Unable to Read ConfigFileReference:configuration_success");
177 configResourceNode.getConfigFileReference(inParams, contextMock);
181 public void should_throw_exception_on_success_param_failure() throws Exception {
182 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
183 .getConfigFileReferenceByFileTypeNVnfType(SUCCESS_PREFIX, SUCCESS_FILE_TYPE, SvcLogicResource.QueryStatus.FAILURE)
186 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
188 expectedException.expect(SvcLogicException.class);
189 expectedException.expectMessage("Unable to Read ConfigFileReference:configuration_success");
190 configResourceNode.getConfigFileReference(inParams, contextMock);
194 public void should_throw_exception_on_failure_param_missing() throws Exception {
196 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
197 .getConfigFileReferenceByFileTypeNVnfType(FAILURE_PREFIX, FAILURE_FILE_TYPE, SvcLogicResource.QueryStatus.NOT_FOUND)
200 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
202 expectedException.expect(SvcLogicException.class);
203 expectedException.expectMessage("Unable to Read ConfigFileReference:configuration_error");
204 configResourceNode.getConfigFileReference(inParams, contextMock);
208 public void should_throw_exception_on_failure_param_failure() throws Exception {
209 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
210 .getConfigFileReferenceByFileTypeNVnfType(FAILURE_PREFIX, FAILURE_FILE_TYPE, SvcLogicResource.QueryStatus.FAILURE)
213 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
215 expectedException.expect(SvcLogicException.class);
216 expectedException.expectMessage("Unable to Read ConfigFileReference:configuration_error");
217 configResourceNode.getConfigFileReference(inParams, contextMock);
221 public void should_throw_exception_on_log_param_missing() throws Exception {
223 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
224 .getConfigFileReferenceByFileTypeNVnfType(LOG_PREFIX, LOG_FILE_TYPE, SvcLogicResource.QueryStatus.NOT_FOUND)
227 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
229 expectedException.expect(SvcLogicException.class);
230 expectedException.expectMessage("Unable to Read ConfigFileReference:configuration_log");
231 configResourceNode.getConfigFileReference(inParams, contextMock);
235 public void should_throw_exception_on_log_param_failure() throws Exception {
236 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
237 .getConfigFileReferenceByFileTypeNVnfType(LOG_PREFIX, LOG_FILE_TYPE, SvcLogicResource.QueryStatus.FAILURE)
240 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
242 expectedException.expect(SvcLogicException.class);
243 expectedException.expectMessage("Unable to Read ConfigFileReference:configuration_log");
244 configResourceNode.getConfigFileReference(inParams, contextMock);
248 public void should_throw_exception_on_device_protocol_missing() throws SvcLogicException {
249 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
250 .getDeviceProtocolByVnfType(DEVICE_PROTOCOL_PREFIX, SvcLogicResource.QueryStatus.NOT_FOUND)
253 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
255 expectedException.expect(SvcLogicException.class);
256 expectedException.expectMessage("Unable to Read device_interface_protocol");
257 configResourceNode.getCommonConfigInfo(inParams, contextMock);
261 public void should_throw_exception_on_device_protocol_failure() throws SvcLogicException {
262 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
263 .getDeviceProtocolByVnfType(DEVICE_PROTOCOL_PREFIX, SvcLogicResource.QueryStatus.FAILURE)
266 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
268 expectedException.expect(SvcLogicException.class);
269 expectedException.expectMessage("Unable to Read device_interface_protocol");
270 configResourceNode.getCommonConfigInfo(inParams, contextMock);
274 public void should_throw_exception_on_conf_action_by_vnf_action_failure() throws SvcLogicException {
275 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
276 .getConfigureActionDGByVnfTypeNAction(CONF_ACTION_PREFIX, SvcLogicResource.QueryStatus.FAILURE)
279 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
281 expectedException.expect(SvcLogicException.class);
282 expectedException.expectMessage("Unable to Read configure_action_dg");
283 configResourceNode.getCommonConfigInfo(inParams, contextMock);
287 public void should_throw_exception_on_conf_action_missing() throws SvcLogicException {
288 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
289 .getConfigureActionDGByVnfTypeNAction(CONF_ACTION_PREFIX, SvcLogicResource.QueryStatus.NOT_FOUND)
290 .getConfigureActionDGByVnfType(CONF_ACTION_PREFIX, SvcLogicResource.QueryStatus.NOT_FOUND)
293 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
295 expectedException.expect(SvcLogicException.class);
296 expectedException.expectMessage("Unable to Read configure_action_dg");
297 configResourceNode.getCommonConfigInfo(inParams, contextMock);
301 public void should_throw_exception_on_conf_action_failure() throws SvcLogicException {
302 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
303 .getConfigureActionDGByVnfTypeNAction(CONF_ACTION_PREFIX, SvcLogicResource.QueryStatus.NOT_FOUND)
304 .getConfigureActionDGByVnfType(CONF_ACTION_PREFIX, SvcLogicResource.QueryStatus.FAILURE)
307 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
309 expectedException.expect(SvcLogicException.class);
310 expectedException.expectMessage("Unable to Read configure_action_dg");
311 configResourceNode.getCommonConfigInfo(inParams, contextMock);
315 public void should_throw_exception_on_db_template_failure() throws SvcLogicException {
316 inParams.put(AppcDataServiceConstant.INPUT_PARAM_RESPONSE_PREFIX, "some prefix");
317 inParams.put(AppcDataServiceConstant.INPUT_PARAM_FILE_CATEGORY, "some file category");
319 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
320 .getTemplate("some prefix", "some file category", SvcLogicResource.QueryStatus.FAILURE)
323 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
325 expectedException.expect(SvcLogicException.class);
326 expectedException.expectMessage("Unable to Read some file category");
327 configResourceNode.getTemplate(inParams, contextMock);
331 public void should_throw_exception_on_db_template_by_action_failure() throws SvcLogicException {
332 inParams.put(AppcDataServiceConstant.INPUT_PARAM_RESPONSE_PREFIX, "some prefix");
333 inParams.put(AppcDataServiceConstant.INPUT_PARAM_FILE_CATEGORY, "some file category");
335 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
336 .getTemplate("some prefix", "some file category", SvcLogicResource.QueryStatus.NOT_FOUND)
337 .getTemplateByVnfTypeNAction("some prefix", "some file category", SvcLogicResource.QueryStatus.FAILURE)
340 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
342 expectedException.expect(SvcLogicException.class);
343 expectedException.expectMessage("Unable to Read some file category");
344 configResourceNode.getTemplate(inParams, contextMock);
348 public void should_throw_exception_on_db_template_by_action_missing() throws SvcLogicException {
349 inParams.put(AppcDataServiceConstant.INPUT_PARAM_RESPONSE_PREFIX, "some prefix");
350 inParams.put(AppcDataServiceConstant.INPUT_PARAM_FILE_CATEGORY, "some file category");
352 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
353 .getTemplate("some prefix", "some file category", SvcLogicResource.QueryStatus.NOT_FOUND)
354 .getTemplateByVnfTypeNAction("some prefix", "some file category", SvcLogicResource.QueryStatus.NOT_FOUND)
357 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
359 expectedException.expect(SvcLogicException.class);
360 expectedException.expectMessage("Unable to Read some file category");
361 configResourceNode.getTemplate(inParams, contextMock);
365 public void should_throw_exception_on_db_template_by_name_missing() throws SvcLogicException {
366 inParams.put(AppcDataServiceConstant.INPUT_PARAM_RESPONSE_PREFIX, "some prefix");
367 inParams.put(AppcDataServiceConstant.INPUT_PARAM_FILE_CATEGORY, "some file category");
369 SvcLogicContext context = new SvcLogicContext();
370 context.setAttribute("template-name", "test template");
372 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
373 .getTemplateByTemplateName("some prefix", "test template", SvcLogicResource.QueryStatus.NOT_FOUND)
376 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
378 expectedException.expect(SvcLogicException.class);
379 expectedException.expectMessage("Unable to Read some file category template");
380 configResourceNode.getTemplate(inParams, context);
384 public void should_throw_exception_on_db_template_by_name_failure() throws SvcLogicException {
385 inParams.put(AppcDataServiceConstant.INPUT_PARAM_RESPONSE_PREFIX, "some prefix");
386 inParams.put(AppcDataServiceConstant.INPUT_PARAM_FILE_CATEGORY, "some file category");
388 SvcLogicContext context = new SvcLogicContext();
389 context.setAttribute("template-name", "test template");
391 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
392 .getTemplateByTemplateName("some prefix", "test template", SvcLogicResource.QueryStatus.FAILURE)
395 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
397 expectedException.expect(SvcLogicException.class);
398 expectedException.expectMessage("Unable to Read some file category template");
399 configResourceNode.getTemplate(inParams, context);
403 public void should_throw_exception_on_save_config_failure() throws SvcLogicException {
404 SvcLogicContext context = new SvcLogicContext();
405 context.setAttribute(FILE_CATEGORY_PARAM, "some file category");
407 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
408 .saveConfigFiles(CONFIG_FILES_PREFIX, SvcLogicResource.QueryStatus.FAILURE)
411 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
413 expectedException.expect(SvcLogicException.class);
414 expectedException.expectMessage("Unable to Save some file category in configfiles");
415 configResourceNode.saveConfigFiles(inParams, context);
419 public void should_throw_exception_on_get_max_config_id_missing() throws SvcLogicException {
420 SvcLogicContext context = new SvcLogicContext();
421 context.setAttribute(FILE_CATEGORY_PARAM, "some file category");
423 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
424 .getMaxConfigFileId(MAX_CONF_FILE_PREFIX, "some file category", SvcLogicResource.QueryStatus.NOT_FOUND)
427 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
429 expectedException.expect(SvcLogicException.class);
430 expectedException.expectMessage("Unable to get some file category from configfiles");
432 configResourceNode.saveConfigFiles(inParams, context);
436 public void should_throw_exception_on_save_config_files_failure() throws SvcLogicException {
437 SvcLogicContext context = new SvcLogicContext();
438 context.setAttribute(CONFIG_FILE_ID_PARAM, "some file id");
440 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
441 .savePrepareRelationship(PREPARE_RELATIONSHIP_PARAM, "some file id", SDC_IND, SvcLogicResource.QueryStatus.FAILURE)
444 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
446 expectedException.expect(SvcLogicException.class);
447 expectedException.expectMessage("Unable to save prepare_relationship");
448 configResourceNode.saveConfigFiles(inParams, context);
452 public void should_throw_exception_on_save_upload_config_failure() throws SvcLogicException {
453 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
454 .saveUploadConfig(UPLOAD_CONFIG_PREFIX, SvcLogicResource.QueryStatus.FAILURE)
457 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
459 expectedException.expect(SvcLogicException.class);
460 expectedException.expectMessage("Unable to Save configuration in upload_config");
461 configResourceNode.updateUploadConfig(inParams, contextMock);
465 public void should_throw_exception_on_get_upload_config_failure() throws SvcLogicException {
466 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
467 .getUploadConfigInfo(UPLOAD_CONFIG_INFO_PREFIX, SvcLogicResource.QueryStatus.FAILURE)
470 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
472 expectedException.expect(SvcLogicException.class);
473 expectedException.expectMessage("Unable to get record from upload_config");
474 configResourceNode.updateUploadConfig(inParams, contextMock);
478 public void should_throw_exception_on_get_upload_config_missing() throws SvcLogicException {
479 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
480 .getUploadConfigInfo(UPLOAD_CONFIG_INFO_PREFIX, SvcLogicResource.QueryStatus.NOT_FOUND)
483 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
485 expectedException.expect(SvcLogicException.class);
486 expectedException.expectMessage("Unable to get record from upload_config");
487 configResourceNode.updateUploadConfig(inParams, contextMock);
491 public void should_throw_exception_on_update_upload_config_failure() throws SvcLogicException {
492 when(contextMock.getAttribute(UPLOAD_CONFIG_ID_PARAM)).thenReturn("1234");
494 DGGeneralDBService dbServiceMock = new MockDbServiceBuilder()
495 .updateUploadConfig(UPLOAD_CONFIG_PREFIX, 1234, SvcLogicResource.QueryStatus.FAILURE)
498 ConfigResourceNode configResourceNode = new ConfigResourceNode(dbServiceMock);
500 expectedException.expect(SvcLogicException.class);
501 expectedException.expectMessage("Unable to upload upload_config");
502 configResourceNode.updateUploadConfig(inParams, contextMock);