Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing test: X-Pack Detection Engine API Integration Tests.x-pack/test/detection_engine_api_integration/security_and_spaces/group10/import_rules·ts - detection engine api security and spaces enabled - Group 10 import_rules importing rules with an index importing with exceptions should be able to import a rule and an exception list #156091

Closed
Tracked by #161531
kibanamachine opened this issue Apr 27, 2023 · 3 comments
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Detection Engine Security Solution Detection Engine Area Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.

Comments

@kibanamachine
Copy link
Contributor

A test failed on a tracked branch

Error: expected { success: false,
  success_count: 0,
  rules_count: 1,
  errors: [ { rule_id: 'rule-1', error: [Object] } ],
  exceptions_errors: [],
  exceptions_success: true,
  exceptions_success_count: 1,
  action_connectors_success: true,
  action_connectors_success_count: 0,
  action_connectors_errors: [],
  action_connectors_warnings: [] } to sort of equal { success: true,
  success_count: 1,
  rules_count: 1,
  errors: [],
  exceptions_errors: [],
  exceptions_success: true,
  exceptions_success_count: 1,
  action_connectors_success: true,
  action_connectors_success_count: 0,
  action_connectors_errors: [],
  action_connectors_warnings: [] }
    at Assertion.assert (expect.js:100:11)
    at Assertion.eql (expect.js:244:8)
    at Context.<anonymous> (import_rules.ts:1442:27)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Object.apply (wrap_function.js:73:16) {
  actual: '{\n' +
    '  "action_connectors_errors": []\n' +
    '  "action_connectors_success": true\n' +
    '  "action_connectors_success_count": 0\n' +
    '  "action_connectors_warnings": []\n' +
    '  "errors": [\n' +
    '    {\n' +
    '      "error": {\n' +
    '        "message": "Unauthorized to create a \\"siem.queryRule\\" rule for \\"siem\\""\n' +
    '        "status_code": 400\n' +
    '      }\n' +
    '      "rule_id": "rule-1"\n' +
    '    }\n' +
    '  ]\n' +
    '  "exceptions_errors": []\n' +
    '  "exceptions_success": true\n' +
    '  "exceptions_success_count": 1\n' +
    '  "rules_count": 1\n' +
    '  "success": false\n' +
    '  "success_count": 0\n' +
    '}',
  expected: '{\n' +
    '  "action_connectors_errors": []\n' +
    '  "action_connectors_success": true\n' +
    '  "action_connectors_success_count": 0\n' +
    '  "action_connectors_warnings": []\n' +
    '  "errors": []\n' +
    '  "exceptions_errors": []\n' +
    '  "exceptions_success": true\n' +
    '  "exceptions_success_count": 1\n' +
    '  "rules_count": 1\n' +
    '  "success": true\n' +
    '  "success_count": 1\n' +
    '}',
  showDiff: true
}

First failure: CI Build - 8.8

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Apr 27, 2023
@botelastic botelastic bot added the needs-team Issues missing a team label label Apr 27, 2023
@kibanamachine kibanamachine added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Apr 27, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Apr 27, 2023
@MadameSheema MadameSheema added Team:Security Solution Platform Security Solution Platform Team Team:Detections and Resp Security Detection Response Team labels May 2, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@yctercero yctercero removed their assignment May 9, 2023
@yctercero yctercero added Team:Detection Engine Security Solution Detection Engine Area and removed Team:Security Solution Platform Security Solution Platform Team labels May 14, 2023
@WafaaNasr
Copy link
Contributor

After successfully running this test through the Flaky Test Runner for 100 iterations without any failures, it has been determined that the test is not truly flaky or failing. As a result, the ticket can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Detection Engine Security Solution Detection Engine Area Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
Projects
None yet
Development

No branches or pull requests

5 participants