Skip to content

DLP increase test timeout #2351

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

Merged
merged 1 commit into from
Aug 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions dlp/inspect_content_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ def test_inspect_gcs_file(bucket, topic_id, subscription_id, capsys):
'test.txt',
topic_id,
subscription_id,
['FIRST_NAME', 'EMAIL_ADDRESS', 'PHONE_NUMBER'])
['FIRST_NAME', 'EMAIL_ADDRESS', 'PHONE_NUMBER'],
timeout=420)

out, _ = capsys.readouterr()
assert 'Info type: EMAIL_ADDRESS' in out
Expand All @@ -314,7 +315,8 @@ def test_inspect_gcs_file_with_custom_info_types(bucket, topic_id,
subscription_id,
[],
custom_dictionaries=dictionaries,
custom_regexes=regexes)
custom_regexes=regexes,
timeout=420)

out, _ = capsys.readouterr()
assert 'Info type: CUSTOM_DICTIONARY_0' in out
Expand All @@ -330,7 +332,8 @@ def test_inspect_gcs_file_no_results(
'harmless.txt',
topic_id,
subscription_id,
['FIRST_NAME', 'EMAIL_ADDRESS', 'PHONE_NUMBER'])
['FIRST_NAME', 'EMAIL_ADDRESS', 'PHONE_NUMBER'],
timeout=420)

out, _ = capsys.readouterr()
assert 'No findings' in out
Expand Down