File tree Expand file tree Collapse file tree 3 files changed +23
-3
lines changed
test/integration/default/serverspec Expand file tree Collapse file tree 3 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ platforms:
14
14
- name : ubuntu-14.04
15
15
- name : centos-6.7
16
16
driver_config :
17
- box : wittman/centos-6.7 -ansible
18
- - name : centos-7.2
17
+ box : wittman/centos-6.8 -ansible
18
+ - name : centos-7.3
19
19
driver_config :
20
- box : wittman/centos-7.2 -ansible
20
+ box : wittman/centos-7.3 -ansible
21
21
- name : ubuntu-16.04
22
22
23
23
suites :
Original file line number Diff line number Diff line change 51
51
args :
52
52
chdir : /usr/local/src/redis-{{ redis_version }}
53
53
creates : " {{ redis_install_dir }}/bin/redis-server"
54
+
55
+ - name : list redis binaries to add to alternatives
56
+ command : ls -1 {{ redis_install_dir }}/bin
57
+ register : redis_binaries
58
+ changed_when : false
59
+
60
+ - name : add redis binaries to alternatives
61
+ alternatives :
62
+ name : " {{ item }}"
63
+ path : " {{ redis_install_dir }}/bin/{{ item }}"
64
+ link : " /usr/bin/{{ item }}"
65
+ with_items : " {{ redis_binaries.stdout_lines }}"
Original file line number Diff line number Diff line change 26
26
it { should be_file }
27
27
it { should contain '1' }
28
28
end
29
+
30
+ describe file ( '/usr/bin/redis-server' ) do
31
+ it { should be_symlink }
32
+ end
33
+
34
+ describe file ( '/usr/bin/redis-cli' ) do
35
+ it { should be_symlink }
36
+ end
29
37
end
You can’t perform that action at this time.
0 commit comments