mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-17 15:36:48 +00:00
fix: corrected test cases
This commit is contained in:
parent
cebc4df68c
commit
0634a88d80
@ -821,7 +821,7 @@ func TestDeleteRule(t *testing.T) {
|
|||||||
claims := &authtypes.Claims{
|
claims := &authtypes.Claims{
|
||||||
Email: "test@example.com",
|
Email: "test@example.com",
|
||||||
}
|
}
|
||||||
manager, mockSQLRuleStore, orgId := setupTestManager(t)
|
manager, mockSQLRuleStore, mockRouteStore, _, orgId := setupTestManager(t)
|
||||||
claims.OrgID = orgId
|
claims.OrgID = orgId
|
||||||
|
|
||||||
testCases := []struct {
|
testCases := []struct {
|
||||||
@ -957,6 +957,7 @@ func TestDeleteRule(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mockSQLRuleStore.ExpectGetStoredRule(ruleID, existingRule)
|
mockSQLRuleStore.ExpectGetStoredRule(ruleID, existingRule)
|
||||||
|
mockRouteStore.ExpectDeleteRouteByName(existingRule.OrgID, ruleID.String())
|
||||||
mockSQLRuleStore.ExpectDeleteRule(ruleID)
|
mockSQLRuleStore.ExpectDeleteRule(ruleID)
|
||||||
|
|
||||||
ctx := authtypes.NewContextWithClaims(context.Background(), *claims)
|
ctx := authtypes.NewContextWithClaims(context.Background(), *claims)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user