aboutsummaryrefslogtreecommitdiffstats
path: root/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/recipes/sanityApiTests_1_setup_env.rb
blob: 61d01338888c5e13f28b18d580f7ff3589041193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
tests_base="/var/lib/tests"

 remote_directory '/var/lib/tests/testSuites' do
   source 'testSuites'
   owner 'root'
   group 'root'
   mode '0755'
   action :create
 end

 remote_directory '/var/lib/tests/Files' do
    source 'Files'
    owner 'root'
    group 'root'
    mode '0755'
    action :create
 end

 remote_directory '/var/lib/tests/conf' do
    source 'conf'
    owner 'root'
    group 'root'
    mode '0755'
    action :create
 end

 directory "create_target_dir" do
   path "/var/lib/tests/target"
   owner 'root'
   group 'root'
   mode '0755'
   action :create
 end

 directory "create_ExtentReport_dir" do
   path "/var/lib/tests/ExtentReport"
   owner 'root'
   group 'root'
   mode '0755'
   action :create
 end

 cookbook_file '/var/lib/tests/startTest.sh' do
    source 'startTest.sh'
    owner 'root'
    group 'root'
    mode '0755'
    action :create
 end

 directory "create_etc_dir" do
   path "/var/lib/tests/etc"
   owner 'root'
   group 'root'
   mode '0755'
   action :create
 end

cookbook_file "/var/lib/tests/etc/org.onap.sdc.trust.jks" do
   source "org.onap.sdc.trust.jks"
   owner "root"
   group "root"
   mode 0644
end