From 3283393bab7cc57af2dc8b70419adbbb34af5c90 Mon Sep 17 00:00:00 2001 From: Michael Lando Date: Mon, 24 Jul 2017 23:21:12 +0300 Subject: [SDC] 1710 rebase Change-Id: I119765d0a74f05722fc19586338fa49fd467095e Signed-off-by: Michael Lando --- .gitignore | 2 + asdctool/src/main/resources/config/license.txt | 13 ++++ asdctool/tarball.xml | 4 ++ catalog-be/pom.xml | 75 +++++++++------------- .../recipes/07-importComformance.rb | 9 +-- 5 files changed, 51 insertions(+), 52 deletions(-) create mode 100644 asdctool/src/main/resources/config/license.txt diff --git a/.gitignore b/.gitignore index 3ad4296d58..f27a944ea3 100644 --- a/.gitignore +++ b/.gitignore @@ -151,3 +151,5 @@ node/* .delivery common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/logs/* + +/asdctool/tosca/* diff --git a/asdctool/src/main/resources/config/license.txt b/asdctool/src/main/resources/config/license.txt new file mode 100644 index 0000000000..0a4f362316 --- /dev/null +++ b/asdctool/src/main/resources/config/license.txt @@ -0,0 +1,13 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# diff --git a/asdctool/tarball.xml b/asdctool/tarball.xml index 7dde4d6f84..07346584fc 100644 --- a/asdctool/tarball.xml +++ b/asdctool/tarball.xml @@ -22,5 +22,9 @@ src/main/resources/config config + + tosca + tosca + \ No newline at end of file diff --git a/catalog-be/pom.xml b/catalog-be/pom.xml index 963bcf99e7..87f4011171 100644 --- a/catalog-be/pom.xml +++ b/catalog-be/pom.xml @@ -660,31 +660,6 @@ - - maven-clean-plugin - 2.6.1 - - - clean.sdc.zip.chef.os.folder - initialize - - clean - - - - - - ${project.parent.basedir}/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/files/default/sdc-*.zip - - sdc-*.zip - - false - - - - - - maven-resources-plugin 2.6 @@ -707,41 +682,49 @@ + + copy.tosca.folder.to.os.chef + + install + + copy-resources + + + ${project.parent.basedir}/asdctool/tosca + + + ${project.parent.basedir}/catalog-be/src/main/resources/import/tosca + true + + + + - com.coderplus.maven.plugins - copy-rename-maven-plugin - 1.0 + maven-clean-plugin + 3.0.0 - copy-file - install - - copy - - - ${project.parent.basedir}/catalog-be/src/main/resources/config/SDC.zip - ${project.parent.basedir}/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/files/default/SDC.zip - - - - rename-file - install + clean.tosca.chef.os.folder + clean - rename + clean - ${project.parent.basedir}/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/files/default/SDC.zip - ${project.parent.basedir}/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/files/default/SDC-${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.zip + + + + ${project.parent.basedir}/asdctool/tosca + false + + - - org.apache.maven.plugins maven-assembly-plugin diff --git a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/07-importComformance.rb b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/07-importComformance.rb index 4a04a9ba67..c6ff1487d3 100644 --- a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/07-importComformance.rb +++ b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/07-importComformance.rb @@ -13,22 +13,19 @@ bash "extract sdctool.tar" do EOH end -cookbook_file "/tmp/sdctool/config/SDC.zip" do - source "SDC-#{cl_release}.zip" -end bash "import-Comformance" do cwd "#{working_directory}" code <<-EOH conf_dir=/tmp/sdctool/config - schema_file_name=SDC.zip + tosca_dir=/tmp/sdctool/tosca cl_version=`grep 'toscaConformanceLevel:' $conf_dir/configuration.yaml |awk '{print $2}'` cd /tmp/sdctool/scripts /bin/chmod +x sdcSchemaFileImport.sh - echo "execute /tmp/sdctool/scripts/sdcSchemaFileImport.sh $conf_dir/$schema_file_name #{cl_release} ${cl_version} ${conf_dir} " - ./sdcSchemaFileImport.sh ${conf_dir}/${schema_file_name} #{cl_release} ${cl_version} ${conf_dir} + echo "execute /tmp/sdctool/scripts/sdcSchemaFileImport.sh ${tosca_dir} #{cl_release} ${cl_version} ${conf_dir} " + ./sdcSchemaFileImport.sh ${tosca_dir} #{cl_release} ${cl_version} ${conf_dir} EOH end -- cgit 1.2.3-korg