diff options
Diffstat (limited to 'appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig')
3 files changed, 147 insertions, 0 deletions
diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_Adaptor_Failure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_Adaptor_Failure.properties new file mode 100644 index 000000000..447c51385 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_Adaptor_Failure.properties @@ -0,0 +1,40 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.device-config=tcfile:///cli_config_content.txt +input.host-ip-address=135.1.1.1 +input.device-login=root +input.device-password = !bootstrap +input.port-number = 22 +input.vnf-type = vUSP - Metaswitch vSBC + +download-config-template.assertEquals.vnf-type = vUSP - Metaswitch vSBC + +download-config-template.download-config-template.TEMPLATE=tcfile:///download_cli_config_template.txt +download-config-template.outCome=SUCCESS + +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.outCome=failure +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.error-code = 200 +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.error-message = Device Not Found + +assertEquals.error-code=401 +assertNotNull.error-message + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_DB_Failure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_DB_Failure.properties new file mode 100644 index 000000000..146760c4d --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_DB_Failure.properties @@ -0,0 +1,38 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.device-config=tcfile:///cli_config_content.txt +input.host-ip-address=135.1.1.1 +input.device-login=root +input.device-password = !bootstrap +input.port-number = 22 +input.vnf-type = vUSP - Metaswitch vSBC + +org.openecomp.appc.data.services.node.ConfigResourceNode.getDownloadConfigTemplateByVnf.outCome=failure +org.openecomp.appc.data.services.node.ConfigResourceNode.getDownloadConfigTemplateByVnf.tmp.downloadConfigTemplate.error-message=No record for VNF Type + +download-config-template.assertEquals.vnf-type = vUSP - Metaswitch vSBC +download-config-template.outCome=FAILURE + + +assertEquals.error-code=401 +assertNotNull.error-message + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_Success.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_Success.properties new file mode 100644 index 000000000..3ebd399fb --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_Success.properties @@ -0,0 +1,69 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +# To initialise DG Context before execution +# input.<Context Variable Name>= XXXXX +input.host-ip-address=135.1.1.1 +input.device-login=root +input.device-password = !bootstrap +input.port-number = 22 +input.vnf-type = vUSP - Metaswitch vSBC +# To populate the context variable from file content +input.device-config=tcfile:///cli_config_content.txt + +# SQL Resource Node +#---------------------------- +#<get-resource +# plugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' +# resource='SQL' +# key="SELECT TEMPLATE FROM DOWNLOAD_CONFIG_TEMPLATE WHERE vnf_type = $vnf-type ;" +# force='true' +# pfx='download-config-template'> + +# To define the SQL execution Status <Prefix>.outCome= SUCCESS | FAILURE | NOT_FOUND +download-config-template.outCome=SUCCESS +# To assert SQL execution node context param <Prefix>.<assertEquals | assertNull | assertNull >.<Context Variable Name>= XXXXX +download-config-template.assertEquals.vnf-type = vUSP - Metaswitch vSBC +# To Populate the SQL executionoutput <Prefix>.<Context Variable Name>= XXXXX, In this case +# after executing SQL query, I expect the response should be stored in the DG context variable name download-config-template.TEMPLATE +download-config-template.download-config-template.TEMPLATE=tcfile:///download_cli_config_template.txt + +# Configure Node +#---------------------------- +#<configure adaptor='org.openecomp.appc.ccadaptor.ConfigComponentAdaptor' key='DownloadCliConfig'> +#<parameter name="Download_config_template" value="`$download-config-template.TEMPLATE`"/> +#<parameter name="Config_contents" value="`$device-config`"/> +#<parameter name="Host_ip_address" value="`$host-ip-address`" /> +#<parameter name="User_name" value="`$device-login`" /> +#<parameter name="Password" value="`$device-password`" /> +#<parameter name="Port_number" value="`$port-number`" /> + +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.outCome=success +# To assert execution/configure node context param <Plugin Name>.<Key / Method Name>.params.<assertEquals | assertNull | assertNull >.<Context Variable Name>= XXXXX +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.params.assertEquals.Port_number=22 +# To assert execution/configure node context param <Plugin Name>.<Key / Method Name>.<assertEquals | assertNull | assertNull >.<Context Variable Name>= XXXXX +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.assertEquals.vnf-type = vUSP - Metaswitch vSBC + +# To assert DG Context after execution +# <assertEquals | assertNull | assertNull >.<Context Variable Name>= XXXXX +assertNull.error-code +assertNull.error-message + + |