summaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-sanity/chef-repo
diff options
context:
space:
mode:
authorYuli Shlosberg <ys9693@att.com>2018-02-15 12:04:46 +0200
committerYuli Shlosberg <ys9693@att.com>2018-02-21 17:28:40 +0200
commit958c32d2d7a3e5cbd9bc672645cdeb95a49b719a (patch)
tree1ba5b0d1dbece6daa5618a005d6281bbd5c7c1dc /sdc-os-chef/sdc-sanity/chef-repo
parent4cc47ac3abe00eda7c04b9955e56dafc819e2657 (diff)
OOM Alignment BE,FE,KBN
Change-Id: I8ff609a6be919d5709ce95af5a6a903aeb7afc43 Issue-ID: SDC-918 Signed-off-by: Yuli Shlosberg <ys9693@att.com>
Diffstat (limited to 'sdc-os-chef/sdc-sanity/chef-repo')
-rw-r--r--sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/recipes/setup_sanity.rb68
1 files changed, 0 insertions, 68 deletions
diff --git a/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/recipes/setup_sanity.rb b/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/recipes/setup_sanity.rb
deleted file mode 100644
index 7f0843d598..0000000000
--- a/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/recipes/setup_sanity.rb
+++ /dev/null
@@ -1,68 +0,0 @@
-tests_path = "/tmp/sdc-tests/"
-ci_test_suite = "sanity.xml"
-
-
-bash "extract asdc-tests" do
- code <<-EOH
- [ ! -d /tmp/sdc-tests/ ] && mkdir -p /tmp/sdc-tests
- cd /tmp/sdc-tests
- rm -rf *
- /bin/tar -xf /root/chef-solo/cookbooks/sdc-sanity/files/default/asdc-tests.tar --strip-components=1 -C /tmp/sdc-tests
- chmod -R 755 /tmp/sdc-tests
- EOH
-end
-
-
-template "sdc-yaml-config" do
- path "/tmp/sdc-tests/conf/sdc.yaml"
- source "sdc-sanity.yaml.erb"
- owner "root"
- group "root"
- mode "0755"
- variables ({
- :target_path => "#{tests_path}/target",
- :catalogBE_ip => node['Nodes']['BE'],
- :catalogBE_port => node['BE'][:http_port],
- :webportal_ip => node['Nodes']['FE'],
- :webportal_port => node['FE'][:http_port],
- :titan_file => "/tmp/sdc-tests/conf/titan.properties",
- :tests_path_ci => "#{tests_path}/CI/tests",
- :components_path => "#{tests_path}/CI/components",
- :importResourceConfigDir => "#{tests_path}/CI/importResource",
- :importTypesDir => "#{tests_path}/CI/importTypesTest",
- :importResourceTestsConfigDir => "#{tests_path}/CI/importResourceTests",
- :ConfigurationFile => "#{tests_path}/conf/configuration.yaml",
- :errorConfigurationFile => "#{tests_path}/conf/error-configuration.yaml",
- :CASSANDRA_IP => node['Nodes']['CS'],
- :CASSANDRA_PWD => node['cassandra'][:cassandra_password],
- :CASSANDRA_USR => node['cassandra'][:cassandra_user]
- })
-end
-
-
-replication_factor=1
-template "titan.properties" do
- path "/tmp/sdc-tests/conf/titan.properties"
- source "BE-titan.properties.erb"
- owner "root"
- group "root"
- mode "0755"
- variables({
- :CASSANDRA_IP => node['Nodes']['CS'],
- :CASSANDRA_PWD => node['cassandra'][:cassandra_password],
- :CASSANDRA_USR => node['cassandra'][:cassandra_user],
- :DC_NAME => "DC-"+node.chef_environment,
- :rep_factor => replication_factor
- })
-end
-
-
-bash "run asdc ci sanity tests" do
- cwd "#{tests_path}"
- code <<-EOH
- jar_file=`ls asdc-tests-*-jar-with-dependencies.jar`
- ./startTest.sh $jar_file #{ci_test_suite}
- echo "return code from startTest.sh = [$?]"
- EOH
- timeout 72000
-end