Esempio n. 1
0
def test_get_subscription_policy(test_subscription, capsys):
    test_subscription.create()

    iam.get_subscription_policy(test_subscription.topic.name,
                                test_subscription.name)

    out, _ = capsys.readouterr()
    assert test_subscription.topic.name in out
    assert test_subscription.name in out
Esempio n. 2
0
def test_get_subscription_policy(test_subscription, capsys):
    test_subscription.create()

    iam.get_subscription_policy(
        test_subscription.topic.name,
        test_subscription.name)

    out, _ = capsys.readouterr()
    assert test_subscription.topic.name in out
    assert test_subscription.name in out
Esempio n. 3
0
def test_get_subscription_policy(subscription, capsys):
    iam.get_subscription_policy(PROJECT, SUBSCRIPTION)

    out, _ = capsys.readouterr()
    assert subscription in out
Esempio n. 4
0
def test_get_subscription_policy(subscription, capsys):
    iam.get_subscription_policy(PROJECT, SUBSCRIPTION)

    out, _ = capsys.readouterr()
    assert subscription in out
Esempio n. 5
0
def test_get_subscription_policy(subscription_path: str,
                                 capsys: CaptureFixture) -> None:
    iam.get_subscription_policy(PROJECT_ID, SUBSCRIPTION_ID)
    out, _ = capsys.readouterr()
    assert subscription_path in out
Esempio n. 6
0
def test_get_subscription_policy(subscription_path, capsys):
    iam.get_subscription_policy(PROJECT_ID, SUBSCRIPTION_ID)
    out, _ = capsys.readouterr()
    assert subscription_path in out