22
22
-export ([confirm /0 ]).
23
23
-include_lib (" eunit/include/eunit.hrl" ).
24
24
25
- % % Change when a new release comes out.
26
- -define (RIAKNOSTIC_URL , " https://github.com/basho/riaknostic/downloads/riaknostic-1.0.2.tar.gz" ).
27
-
28
- % % REQUIRES (sh, curl, tar)
29
-
30
25
confirm () ->
31
26
% % Build a small cluster
32
27
[Node1 , _Node2 ] = rt :build_cluster (2 , []),
33
28
? assertEqual (ok , rt :wait_until_nodes_ready ([Node1 ])),
34
29
35
- % % Install riaknostic for Riak versions below 1.3.0
36
- riaknostic_bootstrap (Node1 ),
37
-
38
30
% % Run through all tests on Node1
39
31
check_riaknostic_execute (Node1 ),
40
32
check_riaknostic_usage (Node1 ),
@@ -45,26 +37,6 @@ confirm() ->
45
37
lager :info (" Test riaknostic: PASS" ),
46
38
pass .
47
39
48
- riaknostic_bootstrap (Node ) ->
49
- lager :info (" Check if riaknostic is installed" ),
50
- {ok , RiaknosticOut1 } = rt :admin (Node , [" diag" ]),
51
- riaknostic_install ((rt :str (RiaknosticOut1 , " is not present!" )), Node ).
52
-
53
- % % riaknostic is already installed, move along
54
- riaknostic_install (false , _Node ) ->
55
- ok ;
56
-
57
- % % install riaknostic
58
- riaknostic_install (true , Node ) ->
59
- % % Install
60
- lager :info (" Installing Riaknostic" ),
61
- {ok , LibDir } = rpc :call (Node , application , get_env , [riak_core , platform_lib_dir ]),
62
- Cmd = io_lib :format (" sh -c \" cd ~s && curl -O -L ~s && tar xzf ~s \" " ,
63
- [LibDir , ? RIAKNOSTIC_URL , filename :basename (? RIAKNOSTIC_URL )]),
64
- lager :info (" Running command: ~s " , [Cmd ]),
65
- lager :debug (" ~p~n " , [rpc :call (Node , os , cmd , [Cmd ])]),
66
- ok .
67
-
68
40
% % Check that riaknostic executes
69
41
check_riaknostic_execute (Node ) ->
70
42
% % Execute
0 commit comments