-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skips some tests that are currently causing problems for internal use…
…rs (#266) Co-authored-by: Auto-format Bot <[email protected]>
- Loading branch information
1 parent
b6923ee
commit 1f825a2
Showing
4 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,6 @@ def test_create_action(gl_experimental: ExperimentalApi): | |
rule = gl_experimental.create_rule(det, f"test_rule_{name}", "EMAIL", "[email protected]") | ||
rule2 = gl_experimental.get_rule(rule.id) | ||
assert rule == rule2 | ||
gl_experimental.delete_rule(rule.id) | ||
with pytest.raises(NotFoundException) as _: | ||
gl_experimental.get_rule(rule.id) | ||
|
||
|
||
@pytest.mark.skip(reason="actions are global on account, the test matrix collides with itself") # type: ignore | ||
|
@@ -45,6 +42,13 @@ def test_create_action_with_human_review(gl_experimental: ExperimentalApi): | |
) | ||
rule2 = gl_experimental.get_rule(rule.id) | ||
assert rule == rule2 | ||
|
||
|
||
@pytest.mark.skip(reason="actions are global on account, the test matrix collides with itself") # type: ignore | ||
def test_delete_action(gl_experimental: ExperimentalApi): | ||
name = f"Test {datetime.utcnow()}" | ||
det = gl_experimental.get_or_create_detector(name, "test_query") | ||
rule = gl_experimental.create_rule(det, f"test_rule_{name}", "EMAIL", "[email protected]") | ||
gl_experimental.delete_rule(rule.id) | ||
with pytest.raises(NotFoundException) as _: | ||
gl_experimental.get_rule(rule.id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters