fix(test): rule engine api SUITE , bad rule name

This commit is contained in:
DDDHuang 2022-05-12 18:01:37 +08:00
parent 8516b457f3
commit 5210cd6e8d
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,8 @@ t_crud_rule_api(_Config) ->
<<"enable">> => true,
<<"id">> => RuleID,
<<"outputs">> => [#{<<"function">> => <<"console">>}],
<<"sql">> => <<"SELECT * from \"t/1\"">>
<<"sql">> => <<"SELECT * from \"t/1\"">>,
<<"name">> => <<"test_rule">>
},
{201, Rule} = emqx_rule_engine_api:'/rules'(post, #{body => Params0}),
%% if we post again with the same params, it return with 400 "rule id already exists"