Skip to content

Commit

Permalink
fix preset testsg
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 18, 2024
1 parent 9366687 commit e47b043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bbot/test/test_step_1/test_presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,13 @@ def test_preset_scope():
}
assert preset_whitelist_baked.to_dict(include_target=True) == {
"target": ["evilcorp.org"],
"whitelist": ["1.2.3.0/24", "http://evilcorp.net/"],
"whitelist": ["1.2.3.4/24", "http://evilcorp.net"],
"blacklist": ["[email protected]", "evilcorp.co.uk:443"],
"config": {"modules": {"secretsdb": {"api_key": "deadbeef", "otherthing": "asdf"}}},
}
assert preset_whitelist_baked.to_dict(include_target=True, redact_secrets=True) == {
"target": ["evilcorp.org"],
"whitelist": ["1.2.3.0/24", "http://evilcorp.net/"],
"whitelist": ["1.2.3.4/24", "http://evilcorp.net"],
"blacklist": ["[email protected]", "evilcorp.co.uk:443"],
"config": {"modules": {"secretsdb": {"otherthing": "asdf"}}},
}
Expand Down

0 comments on commit e47b043

Please sign in to comment.