2 # ============LICENSE_START=======================================================
4 # ================================================================================
5 # Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 # ================================================================================
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 # ============LICENSE_END=========================================================
21 # To initialise DG Context before execution
22 # input.<Context Variable Name>= XXXXX
23 input.host-ip-address=135.1.1.1
24 input.device-login=root
25 input.device-password = !bootstrap
26 input.port-number = 22
27 input.vnf-type = vUSP - Metaswitch vSBC
28 # To populate the context variable from file content
29 input.device-config=tcfile:///cli_config_content.txt
32 #----------------------------
34 # plugin='org.onap.ccsdk.sli.resource.sql.SqlResource'
36 # key="SELECT TEMPLATE FROM DOWNLOAD_CONFIG_TEMPLATE WHERE vnf_type = $vnf-type ;"
38 # pfx='download-config-template'>
40 # To define the SQL execution Status <Prefix>.outCome= SUCCESS | FAILURE | NOT_FOUND
41 download-config-template.outCome=SUCCESS
42 # To assert SQL execution node context param <Prefix>.<assertEquals | assertNull | assertNull >.<Context Variable Name>= XXXXX
43 download-config-template.assertEquals.vnf-type = vUSP - Metaswitch vSBC
44 # To Populate the SQL executionoutput <Prefix>.<Context Variable Name>= XXXXX, In this case
45 # after executing SQL query, I expect the response should be stored in the DG context variable name download-config-template.TEMPLATE
46 download-config-template.download-config-template.TEMPLATE=tcfile:///download_cli_config_template.txt
49 #----------------------------
50 #<configure adaptor='org.onap.appc.ccadaptor.ConfigComponentAdaptor' key='DownloadCliConfig'>
51 #<parameter name="Download_config_template" value="`$download-config-template.TEMPLATE`"/>
52 #<parameter name="Config_contents" value="`$device-config`"/>
53 #<parameter name="Host_ip_address" value="`$host-ip-address`" />
54 #<parameter name="User_name" value="`$device-login`" />
55 #<parameter name="Password" value="`$device-password`" />
56 #<parameter name="Port_number" value="`$port-number`" />
58 org.onap.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.outCome=success
59 # To assert execution/configure node context param <Plugin Name>.<Key / Method Name>.params.<assertEquals | assertNull | assertNull >.<Context Variable Name>= XXXXX
60 org.onap.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.params.assertEquals.Port_number=22
61 # To assert execution/configure node context param <Plugin Name>.<Key / Method Name>.<assertEquals | assertNull | assertNull >.<Context Variable Name>= XXXXX
62 org.onap.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.assertEquals.vnf-type = vUSP - Metaswitch vSBC
64 # To assert DG Context after execution
65 # <assertEquals | assertNull | assertNull >.<Context Variable Name>= XXXXX
67 assertNull.error-message