mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-30 23:34:27 +00:00
fix(sdk): scope scan_id by provider and account
- Generate scan_id per provider account pair - Adjust OCSF scan_id test to cover multiple accounts
This commit is contained in:
1 parent
c0e5a7ce97
commit
4dec30b4b6
2 files changed
+10
-8
No files matched your search
@@ -123,11 +123,11 @@ class TestOCSF:
|
||||
1619600000, tz=timezone.utc
|
||||
)
|
||||
|
||||
def test_scan_id_is_unique_per_provider(self):
|
||||
def test_scan_id_is_unique_per_provider_and_account(self):
|
||||
findings = [
|
||||
generate_finding_output(provider="aws"),
|
||||
generate_finding_output(provider="azure"),
|
||||
generate_finding_output(provider="aws"),
|
||||
generate_finding_output(provider="aws", account_uid="111111111111"),
|
||||
generate_finding_output(provider="aws", account_uid="222222222222"),
|
||||
generate_finding_output(provider="aws", account_uid="111111111111"),
|
||||
]
|
||||
|
||||
ocsf = OCSF(findings)
|
||||
|
||||
Reference in new issue
Block a user