summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/resources/scripts/setup.py
diff options
context:
space:
mode:
authork.kedron <k.kedron@partner.samsung.com>2020-06-05 14:51:01 +0200
committerKrystian Kedron <k.kedron@partner.samsung.com>2020-06-24 09:21:00 +0000
commit16fe29ac226610f79c8da1f691437ec7fe6e79c4 (patch)
tree5b73d8f1724c561609c05fd2802ad80b7acfb4c0 /catalog-be/src/main/resources/scripts/setup.py
parentfca8a0b1af32083b8ea025135b120091aec9714f (diff)
Improvement sdc-BE-init python scripts
- Implemented retries when request fail - Moved configuration variables to the Properties file - Extended sdcBeProxy - Implemented script to run import/update (should fix deployment glitch) - Updated the import_Normatives recipes to use new script Issue-ID: SDC-2784 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: I83fab898783ad8d3b3d532af43d75bc54d033c33
Diffstat (limited to 'catalog-be/src/main/resources/scripts/setup.py')
-rw-r--r--catalog-be/src/main/resources/scripts/setup.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/catalog-be/src/main/resources/scripts/setup.py b/catalog-be/src/main/resources/scripts/setup.py
index 9df26a7aa6..da2cad2da3 100644
--- a/catalog-be/src/main/resources/scripts/setup.py
+++ b/catalog-be/src/main/resources/scripts/setup.py
@@ -14,7 +14,7 @@ setup(
entry_points={
"console_scripts": [
"sdcuserinit=sdcBePy.users.run:main",
- "sdcimportall=sdcBePy.tosca.imports.run:main",
+ "sdcimportall=sdcBePy.tosca.imports.run:run",
"sdcimportdata=sdcBePy.tosca.imports.runNormativeElement:run_import_data",
"sdcimportcapabilities=sdcBePy.tosca.imports.runNormativeElement:run_import_capabilities",
"sdcimportrelationship=sdcBePy.tosca.imports.runNormativeElement:run_import_relationship",
@@ -29,7 +29,7 @@ setup(
"sdcimportsol=sdcBePy.tosca.imports.runNormativeType:run_import_sol",
"sdcimportannotation=sdcBePy.tosca.imports.runNormativeType:run_import_annotation",
"sdcimportgeneric=sdcBePy.tosca.imports.runGenericNormative:main",
- "sdcupgradeall=sdcBePy.tosca.upgrade.run:main",
+ "sdcupgradeall=sdcBePy.tosca.upgrade.run:run",
"sdcupgradenfv=sdcBePy.tosca.upgrade.runUpgradeNormative:run_upgrade_nfv",
"sdcupgradeonap=sdcBePy.tosca.upgrade.runUpgradeNormative:run_upgrade_onap",
"sdcupgradesol=sdcBePy.tosca.upgrade.runUpgradeNormative:run_upgrade_sol",
@@ -37,7 +37,8 @@ setup(
"sdcupgradeheat1707_3537=sdcBePy.tosca.upgrade.runUpgradeNormative:run_upgrade_heat1707_3537",
"sdcupgradeheatversion=sdcBePy.tosca.upgrade.runUpgradeNormative:run_upgrade_heat_version",
"sdccheckbackend=sdcBePy.common.healthCheck:main",
- "sdcconsumerinit=sdcBePy.consumers.run:main"
+ "sdcconsumerinit=sdcBePy.consumers.run:main",
+ "sdcinit=sdcBePy.tosca.run:run"
]
}, install_requires=['pycurl']
)