diff options
author | Yang Xu <yang.xu@futurewei.com> | 2019-06-13 13:19:20 -0400 |
---|---|---|
committer | Yang Xu <yang.xu@futurewei.com> | 2019-06-13 13:37:46 -0400 |
commit | 21b09c956609d3ebee0081686802d20da194c523 (patch) | |
tree | 2349f3054d9953195382a4d8fc3cd9ee0367b5d8 /test/vcpe/config_sdnc_so.py | |
parent | 8f04ed2a73c671717c50a0e27699ac3ff690c2a6 (diff) |
Improve vCPE test automation
Signed-off-by: Yang Xu <yang.xu@futurewei.com>
Issue-ID: INT-847
Change-Id: Ib5b0a547f1c228de4cee02f3526401028c10bff0
Diffstat (limited to 'test/vcpe/config_sdnc_so.py')
-rwxr-xr-x | test/vcpe/config_sdnc_so.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/vcpe/config_sdnc_so.py b/test/vcpe/config_sdnc_so.py index 2cfc0f9f3..bce8fde81 100755 --- a/test/vcpe/config_sdnc_so.py +++ b/test/vcpe/config_sdnc_so.py @@ -73,11 +73,12 @@ def insert_customer_service_to_so(vcpecommon): csar_file = vcpecommon.find_file('rescust', 'csar', 'csar') parser = csar_parser.CsarParser() parser.parse_csar(csar_file) - cmds.append("INSERT INTO `service_recipe` (`ACTION`, `VERSION_STR`, `DESCRIPTION`, `ORCHESTRATION_URI`, " \ - "`SERVICE_PARAM_XSD`, `RECIPE_TIMEOUT`, `SERVICE_TIMEOUT_INTERIM`, `CREATION_TIMESTAMP`, " \ - "`SERVICE_MODEL_UUID`) VALUES ('createInstance','1','{0}'," \ + cmds.append("INSERT INTO service_recipe (ACTION, VERSION_STR, DESCRIPTION, ORCHESTRATION_URI, " \ + "SERVICE_PARAM_XSD, RECIPE_TIMEOUT, SERVICE_TIMEOUT_INTERIM, CREATION_TIMESTAMP, " \ + "SERVICE_MODEL_UUID) VALUES ('createInstance','1','{0}'," \ "'/mso/async/services/CreateVcpeResCustService',NULL,181,NULL, NOW()," \ "'{1}');".format(parser.svc_model['modelName'], parser.svc_model['modelVersionId'])) + logger.info('\n'.join(cmds)) vcpecommon.execute_cmds_so_db(cmds) cmds = [] |