442efa40a52831655aa025cd60a5c6bc064c6ca2,iam/api-client/access_test.py,,test_member,#,30

Before Change


@pytest.fixture(scope="module")
def test_member():
    // section to create service account to test policy updates.
    rand = str(random.randint(0, 1000))
    name = "python-test-" + rand
    email = name + "@" + GCLOUD_PROJECT + ".iam.gserviceaccount.com"
    member = "serviceAccount:" + email
    service_accounts.create_service_account(
        GCLOUD_PROJECT, name, "Py Test Account"

After Change


def test_member():
    // section to create service account to test policy updates.
    // we use the first portion of uuid4 because full version is too long.
    name = "python-test-" + str(uuid.uuid4()).split("-")[0]
    email = name + "@" + GCLOUD_PROJECT + ".iam.gserviceaccount.com"
    member = "serviceAccount:" + email
    service_accounts.create_service_account(
        GCLOUD_PROJECT, name, "Py Test Account"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 442efa40a52831655aa025cd60a5c6bc064c6ca2
Time: 2020-04-08
Author: tmatsuo@google.com
File Name: iam/api-client/access_test.py
Class Name:
Method Name: test_member


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 6e45bc9291e6d06383da38ed3b2265d0d2cc8f5c
Time: 2020-04-27
Author: tmatsuo@google.com
File Name: iam/api-client/service_accounts_test.py
Class Name:
Method Name: test_service_accounts


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: f392c844b3d2a35356421556ec08236f8a43e985
Time: 2020-02-26
Author: 6719667+leahecole@users.noreply.github.com
File Name: monitoring/api/v3/cloud-client/snippets.py
Class Name:
Method Name: