From 28c2a8287e463b8435897ce45722d270d5efdc8d Mon Sep 17 00:00:00 2001 From: tnghwk0661 Date: Tue, 6 Sep 2022 20:43:55 +0900 Subject: [PATCH] fix: typo in attestation/azure-security-attestation --- .vscode/cspell.json | 17 ++++++++++++++++- .../attestation/_administration_client.py | 2 +- .../azure/security/attestation/_models.py | 2 +- .../aio/_administration_client_async.py | 2 +- .../samples/sample_collateral.py | 3 ++- .../tests/attestation_preparer.py | 2 +- .../tests/test_attestation.py | 3 ++- .../tests/test_attestation_async.py | 4 ++-- 8 files changed, 26 insertions(+), 9 deletions(-) diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 04d5d25b87ce..4b5e40e8e85c 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -30,7 +30,6 @@ "sdk/applicationinsights/azure-applicationinsights/**", "sdk/appconfiguration/azure-appconfiguration/**", "sdk/agrifood/azure-agrifood-farming/**", - "sdk/attestation/azure-security-attestation/**", "sdk/batch/azure-batch/**", "sdk/cognitiveservices/azure-cognitiveservices-search-autosuggest/**", "sdk/cognitiveservices/azure-cognitiveservices-search-customimagesearch/**", @@ -674,6 +673,22 @@ "Ijoi", "Iiwid" ] + }, + { + "filename": "sdk/attestation/azure-security-attestation/**", + "words": [ + "MRENCLAVE", + "ECDS", + "kwtype", + "clist", + "mrsigner", + "ECDH", + "TPMs", + "getopenidmetadata", + "getopenidmetadataasync", + "aikcert", + "shareduks" + ] } ], "allowCompoundWords": true diff --git a/sdk/attestation/azure-security-attestation/azure/security/attestation/_administration_client.py b/sdk/attestation/azure-security-attestation/azure/security/attestation/_administration_client.py index 30223ec6d6e4..f9d3d0150280 100644 --- a/sdk/attestation/azure-security-attestation/azure/security/attestation/_administration_client.py +++ b/sdk/attestation/azure-security-attestation/azure/security/attestation/_administration_client.py @@ -222,7 +222,7 @@ def set_policy(self, attestation_type, attestation_policy, **kwargs): :caption: Setting a security policy without a signing key. .. admonition:: Example: Setting the attestation policy and verifying - that the policy was recieved by the service. + that the policy was received by the service. .. literalinclude:: ../samples/sample_get_set_policy.py :start-after: [START validate_policy_hash] diff --git a/sdk/attestation/azure-security-attestation/azure/security/attestation/_models.py b/sdk/attestation/azure-security-attestation/azure/security/attestation/_models.py index 0c2ebdc58f70..b59c7b37cde2 100644 --- a/sdk/attestation/azure-security-attestation/azure/security/attestation/_models.py +++ b/sdk/attestation/azure-security-attestation/azure/security/attestation/_models.py @@ -871,7 +871,7 @@ def _create_secured_jwt(body, **kwargs): """Return a secured JWT expressing the body, secured with the specified signing key. :param Any body: The body of the token to be serialized. :keyword key: Signing key used to sign the token. - :kwtype key: cryptography.hazmat.primatives.asymmetric.ec or cryptography.hazmat.primatives.asymmetric.rsa + :kwtype key: cryptography.hazmat.primitives.asymmetric.ec or cryptography.hazmat.primitives.asymmetric.rsa :keyword certificate: Certificate to be transmitted to attestation service used to validate the token. :kwtype certificate: Certificate diff --git a/sdk/attestation/azure-security-attestation/azure/security/attestation/aio/_administration_client_async.py b/sdk/attestation/azure-security-attestation/azure/security/attestation/aio/_administration_client_async.py index 901f32b308e2..7244ca373ec7 100644 --- a/sdk/attestation/azure-security-attestation/azure/security/attestation/aio/_administration_client_async.py +++ b/sdk/attestation/azure-security-attestation/azure/security/attestation/aio/_administration_client_async.py @@ -240,7 +240,7 @@ async def set_policy( :caption: Setting a security policy without a signing key. .. admonition:: Example: Setting the attestation policy and verifying - that the policy was recieved by the service. + that the policy was received by the service. .. literalinclude:: ../samples/sample_get_set_policy_async.py :start-after: [START validate_policy_hash] diff --git a/sdk/attestation/azure-security-attestation/samples/sample_collateral.py b/sdk/attestation/azure-security-attestation/samples/sample_collateral.py index 78d13e01255f..22a5def4e80e 100644 --- a/sdk/attestation/azure-security-attestation/samples/sample_collateral.py +++ b/sdk/attestation/azure-security-attestation/samples/sample_collateral.py @@ -21,6 +21,7 @@ # an SGX "quote". The "report" has a 16 byte header attached to the front # of an SGX "quote". That means a "report" can be transformed into a quote # by stripping the first 16 bytes from the "report". +''' cSpell:disable ''' sample_open_enclave_report = ( "AQAAAAIAAADkEQAAAAAAAAMAAg" + "AAAAAABQAKAJOacjP3nEyplAoNs5V_Bgc42MPzGo7hPWS_h-3tExJrAAAAABERAwX_g" @@ -116,7 +117,7 @@ + "RHZvOGgyazVkdTFpV0RkQmtBbiswaWlBPT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0" + "tLQoA=" ) - +''' cSpell:enable ''' sample_runtime_data = ( "CiAgICAgICAgewogI" diff --git a/sdk/attestation/azure-security-attestation/tests/attestation_preparer.py b/sdk/attestation/azure-security-attestation/tests/attestation_preparer.py index 75c0a9588060..625ba808900f 100644 --- a/sdk/attestation/azure-security-attestation/tests/attestation_preparer.py +++ b/sdk/attestation/azure-security-attestation/tests/attestation_preparer.py @@ -39,7 +39,7 @@ 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 - # possiblity that the rewriting rules will miss these URLs. + # 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' diff --git a/sdk/attestation/azure-security-attestation/tests/test_attestation.py b/sdk/attestation/azure-security-attestation/tests/test_attestation.py index 0dd478d713ab..60373b493b5b 100644 --- a/sdk/attestation/azure-security-attestation/tests/test_attestation.py +++ b/sdk/attestation/azure-security-attestation/tests/test_attestation.py @@ -24,6 +24,7 @@ AttestationType, ) +''' cSpell:disable ''' _open_enclave_report = ( "AQAAAAIAAADkEQAAAAAAAAMAAg" + "AAAAAABQAKAJOacjP3nEyplAoNs5V_Bgc42MPzGo7hPWS_h-3tExJrAAAAABERAwX_g" @@ -119,7 +120,7 @@ + "RHZvOGgyazVkdTFpV0RkQmtBbiswaWlBPT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0" + "tLQoA" ) - +''' cSpell:enable ''' _runtime_data = ( "CiAgICAgICAgewogI" diff --git a/sdk/attestation/azure-security-attestation/tests/test_attestation_async.py b/sdk/attestation/azure-security-attestation/tests/test_attestation_async.py index 81dafbefd981..c3e74ed4d6cc 100644 --- a/sdk/attestation/azure-security-attestation/tests/test_attestation_async.py +++ b/sdk/attestation/azure-security-attestation/tests/test_attestation_async.py @@ -27,7 +27,7 @@ from helpers import base64url_decode - +''' cSpell:disable ''' _open_enclave_report = ( "AQAAAAIAAADkEQAAAAAAAAMAAg" + "AAAAAABQAKAJOacjP3nEyplAoNs5V_Bgc42MPzGo7hPWS_h-3tExJrAAAAABERAwX_g" @@ -123,7 +123,7 @@ + "RHZvOGgyazVkdTFpV0RkQmtBbiswaWlBPT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0" + "tLQoA" ) - +''' cSpell:enable ''' _runtime_data = ( "CiAgICAgICAgewogI"