NOISSUE - Remove irrelevant test case (#236)

Signed-off-by: Felix Gateru <felix.gateru@gmail.com>
This commit is contained in:
Felix Gateru
2025-07-01 13:09:13 +03:00
committed by GitHub
parent fa161a0a46
commit 0c97f61680
+1 -22
View File
@@ -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,