Exemplo n.º 1
0
def subscription(ipoe_mac: mapping.SiteIndex) -> mapping.SubscriptionIdGuid:
    subscription_: mapping.SubscriptionId = ipoe_mac.subscriptions[0]
    subscription_guid = api.crm.subscription.get_subscription_guid(
        subscription_.subscription_id)
    if subscription_guid:
        return mapping.SubscriptionIdGuid(subscription_.subscription_id,
                                          subscription_guid)
    else:
        pytest.skip("No subscription in CRM")
Exemplo n.º 2
0
def subscription_cas_pack(
        cas: mapping.SiteIndex) -> mapping.SubscriptionIdGuid:
    subscription_: mapping.SubscriptionId = cas.subscriptions[-1]
    subscription_guid = api.crm.subscription.get_subscription_guid(
        subscription_.subscription_id)
    if subscription_guid:
        return mapping.SubscriptionIdGuid(subscription_.subscription_id,
                                          subscription_guid)
    else:
        pytest.skip("No subscription in CRM")
Exemplo n.º 3
0
def subscription_wifi_tv_pack(
        wifi_tv: mapping.SiteIndex) -> mapping.SubscriptionIdGuid:
    subscription_: mapping.SubscriptionId = wifi_tv.subscriptions[2]
    subscription_guid = api.crm.subscription.get_subscription_guid(
        subscription_.subscription_id)
    if subscription_guid:
        return mapping.SubscriptionIdGuid(subscription_.subscription_id,
                                          subscription_guid)
    else:
        pytest.skip("No subscription in CRM")
Exemplo n.º 4
0
def param_test(
    request, docsis
) -> Tuple[mapping.SubscriptionIdGuid,
           mapping.subscription.SubscriptionProperty]:
    subscription: mapping.SubscriptionId = docsis.subscriptions[0]
    subscription_id = api.crm.subscription.get_subscription_guid(
        subscription.subscription_id)
    if not subscription_id:
        pytest.skip("No subscription in CRM")

    return (
        mapping.SubscriptionIdGuid(subscription.subscription_id,
                                   subscription_id),
        request.param,
    )