1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
# coding: utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import functools
from devtools_testutils import PowerShellPreparer
AttestationPreparer = functools.partial(
PowerShellPreparer,
"attestation",
# attestation_azure_authority_host='xxx',
# attestation_resource_group='yyyy',
# attestation_subscription_id='xxx',
# attestation_environment='AzureCloud',
attestation_policy_signing_key0="keyvalue",
attestation_policy_signing_key1="keyvalue",
attestation_policy_signing_key2="keyvalue",
attestation_policy_signing_certificate0="more junk",
attestation_policy_signing_certificate1="more junk",
attestation_policy_signing_certificate2="more junk",
attestation_serialized_policy_signing_key0="junk",
attestation_serialized_policy_signing_key1="junk",
attestation_serialized_policy_signing_key2="junk",
attestation_serialized_isolated_signing_key="yyyy",
attestation_isolated_signing_key="xxxx",
attestation_isolated_signing_certificate="xxxx",
attestation_service_management_url="https://management.core.windows.net/",
# Note: attestation_location_short-name must match the short name in the
# fake resources. It also must match the region in which the live tests
# are run. If it does not match, then the recording will not
# correctly rewrite the attestation_xxx_urls.
attestation_location_short_name="wus",
attestation_client_id="xxxx",
attestation_client_secret="secret",
attestation_tenant_id="tenant",
# Note: attestation_isolated_url and attestation_aad_url must have the
# same region as the attestation_location_short_name. Otherwise there is a
# possibility that the rewriting rules will miss these URLs.
attestation_isolated_url="https://fakeresource.wus.attest.azure.net",
attestation_aad_url="https://fakeresource.wus.attest.azure.net",
# attestation_resource_manager_url='https://resourcemanager/zzz'
)
|