Refactoring the sdc-BE-init python scripts 87/103287/6
authork.kedron <k.kedron@partner.samsung.com>
Thu, 5 Mar 2020 12:12:27 +0000 (13:12 +0100)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Wed, 24 Jun 2020 06:01:11 +0000 (06:01 +0000)
commitcb30f3a566b73c78c3ea666acfcd3f288098684a
tree38cd1acb83ddde2b927485611d130bbeec3c1a4b
parentbdbfc2e460ccb561c3e174260b2908b974996d4f
Refactoring the sdc-BE-init python scripts

Deeper refactoring of python script:
- create the python package with init script
- support for python 3.x
- reuse code
- new design
- support for .json conf file
- update the docker chef script

Issue-ID: SDC-2784
Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
Change-Id: I02169eb7d0e3e90851ba1811536d1712c3b4145f
75 files changed:
catalog-be/.gitignore
catalog-be/pom.xml
catalog-be/sdc-backend-init/Dockerfile
catalog-be/sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/recipes/1_create_consumer_and_user.rb
catalog-be/sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/recipes/3_import_Normatives.rb
catalog-be/sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/templates/default/check_Backend_Health.py.erb
catalog-be/sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/templates/default/consumers.py.erb
catalog-be/sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/templates/default/user.py.erb [deleted file]
catalog-be/sdc-backend-init/startup.sh
catalog-be/src/main/assembly/normatives.xml
catalog-be/src/main/resources/scripts/.gitignore [new file with mode: 0644]
catalog-be/src/main/resources/scripts/import/tosca/importAnnotationTypes.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importCategoryTypes.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importCommon.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importDataTypes.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importGroupTypes.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importHeatTypes.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importNfvTypes.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importNodeType.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importNormativeAll.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importNormativeCapabilities.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importNormativeElements.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importNormativeInterfaceLifecycleTypes.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importNormativeNoHeatAndNormativeTypes.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importNormativeRelationships.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importNormativeTypes.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importONAPNormativeAll.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importOnapTypes.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importPolicyTypes.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importSolTypes.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/importUsersFromYaml.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/upgradeHeatAndNormativeTypes.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/upgradeHeatTypes1707.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/upgradeNfvTypes.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/upgradeNormative.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/upgradeNormativeVersion.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/upgradeNormativeVersionAll.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/upgradeNormativeVersionProd1702_3537.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/upgradeONAPNormative.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/upgradeONAPTypes.py [deleted file]
catalog-be/src/main/resources/scripts/import/tosca/upgradeSolTypes.py [deleted file]
catalog-be/src/main/resources/scripts/sdcBePy/__init__.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/common/__init__.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/common/bColors.py [new file with mode: 0755]
catalog-be/src/main/resources/scripts/sdcBePy/common/helpers.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/common/logger.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/common/normative/__init__.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/common/normative/main.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/common/normative/toscaElements.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/common/normative/toscaTypes.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/common/sdcBeProxy.py [new file with mode: 0755]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/__init__.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/data/beConfig.json [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/data/onapTypesToUpgrade.json [moved from catalog-be/src/main/resources/scripts/import/tosca/onapTypesToUpgrade.json with 100% similarity]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/data/typesToUpgrade.json [moved from catalog-be/src/main/resources/scripts/import/tosca/typesToUpgrade.json with 95% similarity]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/imports/__init__.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/imports/run.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/imports/runGenericNormative.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/imports/runNormativeElement.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/imports/runNormativeType.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/main.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/models/__init__.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/models/normativeElementCandidate.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/models/normativeElementsList.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/models/normativeToUpdateList.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/models/normativeTypeCandidate.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/models/normativeTypesList.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/upgrade/__init__.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/upgrade/run.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/upgrade/runUpgradeNormative.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/users/__init__.py [new file with mode: 0755]
catalog-be/src/main/resources/scripts/sdcBePy/users/data/users.json [new file with mode: 0755]
catalog-be/src/main/resources/scripts/sdcBePy/users/run.py [new file with mode: 0755]
catalog-be/src/main/resources/scripts/setup.py [new file with mode: 0644]
sdc-os-chef/scripts/docker_run.sh