0965e26c69430ef1a571abf360547002a4bbfa57,dlp/inspect_content_test.py,,test_inspect_gcs_file_no_results,#Any#Any#Any#Any#,340

Before Change




def test_inspect_gcs_file_no_results(bucket, topic_id, subscription_id, capsys):
    inspect_content.inspect_gcs_file(
        GCLOUD_PROJECT,
        bucket.name,
        "harmless.txt",
        topic_id,
        subscription_id,
        ["EMAIL_ADDRESS", "PHONE_NUMBER"],
        timeout=420,
    )

    out, _ = capsys.readouterr()

    assert "Inspection operation started" in out

After Change



def test_inspect_gcs_file_no_results(
        bucket, topic_id, subscription_id, capsys):
    try:
        inspect_content.inspect_gcs_file(
            GCLOUD_PROJECT,
            bucket.name,
            "harmless.txt",
            topic_id,
            subscription_id,
            ["EMAIL_ADDRESS", "PHONE_NUMBER"],
            timeout=1)

        out, _ = capsys.readouterr()

        assert "Inspection operation started" in out
    finally:
        cancel_operation(out)


def test_inspect_gcs_image_file(bucket, topic_id, subscription_id, capsys):
    try:
        inspect_content.inspect_gcs_file(
            GCLOUD_PROJECT,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 0965e26c69430ef1a571abf360547002a4bbfa57
Time: 2020-04-17
Author: tmatsuo@google.com
File Name: dlp/inspect_content_test.py
Class Name:
Method Name: test_inspect_gcs_file_no_results


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 0965e26c69430ef1a571abf360547002a4bbfa57
Time: 2020-04-17
Author: tmatsuo@google.com
File Name: dlp/inspect_content_test.py
Class Name:
Method Name: test_inspect_gcs_file_with_custom_info_types


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 0965e26c69430ef1a571abf360547002a4bbfa57
Time: 2020-04-17
Author: tmatsuo@google.com
File Name: dlp/inspect_content_test.py
Class Name:
Method Name: test_inspect_gcs_file