mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 06:20:18 +00:00
NOISSUE - Remove irrelevant test case (#236)
Signed-off-by: Felix Gateru <felix.gateru@gmail.com>
This commit is contained in:
@@ -553,17 +553,7 @@ func TestUpdateRulesEndpoint(t *testing.T) {
|
||||
"name": "test",
|
||||
},
|
||||
}
|
||||
updateNoInput := re.Rule{
|
||||
ID: rule.ID,
|
||||
Name: rule.Name,
|
||||
Logic: re.Script{
|
||||
Type: re.ScriptType(0),
|
||||
Value: "return `test` end",
|
||||
},
|
||||
Metadata: map[string]any{
|
||||
"name": "test",
|
||||
},
|
||||
}
|
||||
|
||||
cases := []struct {
|
||||
desc string
|
||||
token string
|
||||
@@ -589,17 +579,6 @@ func TestUpdateRulesEndpoint(t *testing.T) {
|
||||
status: http.StatusOK,
|
||||
err: nil,
|
||||
},
|
||||
{
|
||||
desc: "update rule with no input channel or schedule",
|
||||
token: validToken,
|
||||
domainID: domainID,
|
||||
id: rule.ID,
|
||||
updateReq: updateNoInput,
|
||||
contentType: contentType,
|
||||
svcResp: rule,
|
||||
status: http.StatusBadRequest,
|
||||
err: apiutil.ErrValidation,
|
||||
},
|
||||
{
|
||||
desc: "update rule with invalid token",
|
||||
token: invalidToken,
|
||||
|
||||
Reference in New Issue
Block a user