test: add bat test for corrupted cluster.hocon
This commit is contained in:
parent
d3779a3219
commit
5e08c436da
|
@ -12,10 +12,18 @@
|
|||
[[ "$output" =~ "ERROR: Invalid node name,".+ ]]
|
||||
}
|
||||
|
||||
@test "corrupted cluster config file" {
|
||||
@test "corrupted cluster-override.conf" {
|
||||
conffile="./_build/$PROFILE/rel/emqx/data/configs/cluster-override.conf"
|
||||
echo "{" > $conffile
|
||||
run ./_build/$PROFILE/rel/emqx/bin/emqx console
|
||||
[[ $status -ne 0 ]]
|
||||
rm -f $conffile
|
||||
}
|
||||
|
||||
@test "corrupted cluster.hocon" {
|
||||
conffile="./_build/$PROFILE/rel/emqx/data/configs/cluster.hocon"
|
||||
echo "{" > $conffile
|
||||
run ./_build/$PROFILE/rel/emqx/bin/emqx console
|
||||
[[ $status -ne 0 ]]
|
||||
rm -f $conffile
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue