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