@@ -38,27 +38,11 @@ defmodule NodeHealthCheckCommandTest do
38
38
assert @ command . validate ( [ ] , context [ :opts ] ) == :ok
39
39
end
40
40
41
- test "run: request to a named, active node succeeds " , context do
41
+ test "run: is a no-op " , context do
42
42
assert @ command . run ( [ ] , context [ :opts ] )
43
43
end
44
44
45
- test "run: request to a named, active node with an alarm in effect fails" , context do
46
- set_vm_memory_high_watermark ( 0.0000000000001 )
47
- # give VM memory monitor check some time to kick in
48
- :timer . sleep ( 1500 )
49
- { :healthcheck_failed , _message } = @ command . run ( [ ] , context [ :opts ] )
50
-
51
- reset_vm_memory_high_watermark ( )
52
- :timer . sleep ( 1500 )
53
- assert @ command . run ( [ ] , context [ :opts ] ) == :ok
54
- end
55
-
56
- test "run: request to a non-existent node returns a badrpc" do
57
- assert match? ( { :badrpc , _ } , @ command . run ( [ ] , % { node: :jake@thedog , timeout: 200 } ) )
58
- end
59
-
60
45
test "banner" , context do
61
- assert @ command . banner ( [ ] , context [ :opts ] ) |> Enum . join ( "\n " ) =~ ~r/ Checking health/
62
- assert @ command . banner ( [ ] , context [ :opts ] ) |> Enum . join ( "\n " ) =~ ~r/ #{ get_rabbit_hostname ( ) } /
46
+ assert @ command . banner ( [ ] , context [ :opts ] ) |> Enum . join ( "\n " ) =~ ~r/ DEPRECATED/
63
47
end
64
48
end
0 commit comments