From 6da4d9649d35c24859c0139ac11d1b047b464e8f Mon Sep 17 00:00:00 2001 From: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> Date: Mon, 27 Nov 2023 13:55:27 -0800 Subject: [PATCH] FIx typos (#5185) Co-authored-by: Anton Kolesnyk --- doc/TestProxy.md | 2 +- .../samples/policy/cryptohelpers.hpp | 2 +- .../src/private/crypto/inc/crypto.hpp | 2 +- .../src/private/crypto/openssl/opensslcert.cpp | 2 +- .../test/ut/policycertmgmt_test.cpp | 4 ++-- sdk/core/azure-core-amqp/test/ut/amqp_value_tests.cpp | 2 +- .../azure-core/inc/azure/core/http/win_http_transport.hpp | 2 +- sdk/core/azure-core/src/http/curl/curl.cpp | 2 +- sdk/core/azure-core/src/http/curl/curl_connection_private.hpp | 2 +- sdk/core/azure-core/test/ut/transport_policy_options.cpp | 2 +- .../azure/messaging/eventhubs/models/management_models.hpp | 2 +- .../messaging/eventhubs/test/eventhubs_batch_perf_test.hpp | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/doc/TestProxy.md b/doc/TestProxy.md index 84c1795f2..ff9a2257a 100644 --- a/doc/TestProxy.md +++ b/doc/TestProxy.md @@ -41,7 +41,7 @@ The proxy will create a file locally containing the data in the .assets folder i When AZURE_TEST_MODE=PLAYBACK we invoke the playback/start endpoint on test-proxy which causes it to download the appropriate release indicated in assets.json if it is not there already, and replay the responses for the specific request based on the recorded data. When the test is done we call playback/stop -## LIve Testing +## Live Testing When AZURE_TEST_MODE=LIVE all requests are sent directly to their destination bypassing the proxy. diff --git a/sdk/attestation/azure-security-attestation/samples/policy/cryptohelpers.hpp b/sdk/attestation/azure-security-attestation/samples/policy/cryptohelpers.hpp index 9bc0a6c4d..485886e41 100644 --- a/sdk/attestation/azure-security-attestation/samples/policy/cryptohelpers.hpp +++ b/sdk/attestation/azure-security-attestation/samples/policy/cryptohelpers.hpp @@ -5,7 +5,7 @@ #include #include /** - * @brief THe Cryptography class provides a set of basic cryptographic primatives required + * @brief The Cryptography class provides a set of basic cryptographic primatives required * by the attestation samples. */ class Cryptography { diff --git a/sdk/attestation/azure-security-attestation/src/private/crypto/inc/crypto.hpp b/sdk/attestation/azure-security-attestation/src/private/crypto/inc/crypto.hpp index 0829b7cd7..5a83fbf6c 100644 --- a/sdk/attestation/azure-security-attestation/src/private/crypto/inc/crypto.hpp +++ b/sdk/attestation/azure-security-attestation/src/private/crypto/inc/crypto.hpp @@ -9,7 +9,7 @@ namespace Azure { namespace Security { namespace Attestation { namespace _detail { /** - * @brief THe Cryptography class provides a set of basic cryptographic functions required + * @brief The Cryptography class provides a set of basic cryptographic functions required * by the attestation service client implementation and test collateral. * * It contains two subclasses: {@link Cryptography::AsymmetricKey}, which represents an Asymmetric diff --git a/sdk/attestation/azure-security-attestation/src/private/crypto/openssl/opensslcert.cpp b/sdk/attestation/azure-security-attestation/src/private/crypto/openssl/opensslcert.cpp index ce25c1be1..cab0f5e07 100644 --- a/sdk/attestation/azure-security-attestation/src/private/crypto/openssl/opensslcert.cpp +++ b/sdk/attestation/azure-security-attestation/src/private/crypto/openssl/opensslcert.cpp @@ -276,7 +276,7 @@ namespace Azure { namespace Security { namespace Attestation { namespace _detail auto exportedPublicKey = newCertificateKey->ExportPublicKey(); auto publicKey = Cryptography::ImportPublicKey(exportedPublicKey); // We know that Crypto::ImportPublicKey always returns an OpenSSLAsymmetricKey. - // THis is a bit of a hack but it's an acceptable assumption to make. + // This is a bit of a hack but it's an acceptable assumption to make. OpenSSLAsymmetricKey* key = static_cast(publicKey.get()); if (X509_set_pubkey(certificate.get(), key->GetKey().get()) != 1) { diff --git a/sdk/attestation/azure-security-attestation/test/ut/policycertmgmt_test.cpp b/sdk/attestation/azure-security-attestation/test/ut/policycertmgmt_test.cpp index a4c891ad2..d430763fb 100644 --- a/sdk/attestation/azure-security-attestation/test/ut/policycertmgmt_test.cpp +++ b/sdk/attestation/azure-security-attestation/test/ut/policycertmgmt_test.cpp @@ -304,7 +304,7 @@ namespace Azure { namespace Security { namespace Attestation { namespace Test { } // Verify that we get an exception if we try to set a policy management certificate on an AAD - // instance. THe primary purpose of this test is to increase code coverage numbers. + // instance. The primary purpose of this test is to increase code coverage numbers. TEST_F(CertificateTests, VerifyFailedAddCertificate) { auto adminClient(CreateClient(ServiceInstanceType::AAD)); @@ -331,7 +331,7 @@ namespace Azure { namespace Security { namespace Attestation { namespace Test { } } // Verify that we get an exception if we try to remove a policy management certificate on an AAD - // instance. THe primary purpose of this test is to increase code coverage numbers. + // instance. The primary purpose of this test is to increase code coverage numbers. TEST_F(CertificateTests, VerifyFailedRemoveCertificate) { auto adminClient(CreateClient(ServiceInstanceType::AAD)); diff --git a/sdk/core/azure-core-amqp/test/ut/amqp_value_tests.cpp b/sdk/core/azure-core-amqp/test/ut/amqp_value_tests.cpp index fe5f1776c..ab06627c2 100644 --- a/sdk/core/azure-core-amqp/test/ut/amqp_value_tests.cpp +++ b/sdk/core/azure-core-amqp/test/ut/amqp_value_tests.cpp @@ -1259,7 +1259,7 @@ TEST_F(TestValueSerialization, SerializeList) EXPECT_EQ(val.size(), 1); EXPECT_EQ(0x45, val[0]); } - // THird form, serialized as first form. + // Third form, serialized as first form. { std::vector testVector{0xd0, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00}; AmqpValue value{AmqpValue::Deserialize(testVector.data(), testVector.size())}; diff --git a/sdk/core/azure-core/inc/azure/core/http/win_http_transport.hpp b/sdk/core/azure-core/inc/azure/core/http/win_http_transport.hpp index 90b36fd5e..4d7306b45 100644 --- a/sdk/core/azure-core/inc/azure/core/http/win_http_transport.hpp +++ b/sdk/core/azure-core/inc/azure/core/http/win_http_transport.hpp @@ -36,7 +36,7 @@ namespace Azure { namespace Core { /** * @brief Unique handle for WinHTTP HINTERNET handles. * - * @note HINTERNET is declared as a "void *". THis means that this definition subsumes all other + * @note HINTERNET is declared as a "void *". This means that this definition subsumes all other * `void *` types when used with Azure::Core::_internal::UniqueHandle. * */ diff --git a/sdk/core/azure-core/src/http/curl/curl.cpp b/sdk/core/azure-core/src/http/curl/curl.cpp index 1283c0261..674d593b4 100644 --- a/sdk/core/azure-core/src/http/curl/curl.cpp +++ b/sdk/core/azure-core/src/http/curl/curl.cpp @@ -1492,7 +1492,7 @@ namespace Azure { namespace Core { namespace { // int g_ssl_crl_max_size_in_kb = 20; /** - * @brief THe Cryptography class provides a set of basic cryptographic primatives required + * @brief The Cryptography class provides a set of basic cryptographic primatives required * by the attestation samples. */ diff --git a/sdk/core/azure-core/src/http/curl/curl_connection_private.hpp b/sdk/core/azure-core/src/http/curl/curl_connection_private.hpp index 8a1b14be7..c8adcd2b7 100644 --- a/sdk/core/azure-core/src/http/curl/curl_connection_private.hpp +++ b/sdk/core/azure-core/src/http/curl/curl_connection_private.hpp @@ -35,7 +35,7 @@ namespace Azure { namespace Core { /** * @brief Unique handle for WinHTTP HINTERNET handles. * - * @note HINTERNET is declared as a "void *". THis means that this definition subsumes all other + * @note HINTERNET is declared as a "void *". This means that this definition subsumes all other * `void *` types when used with Azure::Core::_internal::UniqueHandle. * */ diff --git a/sdk/core/azure-core/test/ut/transport_policy_options.cpp b/sdk/core/azure-core/test/ut/transport_policy_options.cpp index a6147a9e5..78deee98d 100644 --- a/sdk/core/azure-core/test/ut/transport_policy_options.cpp +++ b/sdk/core/azure-core/test/ut/transport_policy_options.cpp @@ -551,7 +551,7 @@ namespace Azure { namespace Core { namespace Test { { Azure::Core::Http::Policies::TransportOptions transportOptions; - // FIrst verify connectivity to the test servers. + // First verify connectivity to the test servers. transportOptions.EnableCertificateRevocationListCheck = false; HttpPipeline pipeline(CreateHttpPipeline(transportOptions)); diff --git a/sdk/eventhubs/azure-messaging-eventhubs/inc/azure/messaging/eventhubs/models/management_models.hpp b/sdk/eventhubs/azure-messaging-eventhubs/inc/azure/messaging/eventhubs/models/management_models.hpp index 7b1d02b37..5ac0b3102 100644 --- a/sdk/eventhubs/azure-messaging-eventhubs/inc/azure/messaging/eventhubs/models/management_models.hpp +++ b/sdk/eventhubs/azure-messaging-eventhubs/inc/azure/messaging/eventhubs/models/management_models.hpp @@ -32,7 +32,7 @@ namespace Azure { namespace Messaging { namespace EventHubs { namespace Models { * that contains it.*/ std::string Name; - /** THe identifier of the partition, unique to the Event Hub which contains it. */ + /** The identifier of the partition, unique to the Event Hub which contains it. */ std::string PartitionId; /** The first sequence number available for events in the partition. diff --git a/sdk/eventhubs/azure-messaging-eventhubs/test/perf/inc/azure/messaging/eventhubs/test/eventhubs_batch_perf_test.hpp b/sdk/eventhubs/azure-messaging-eventhubs/test/perf/inc/azure/messaging/eventhubs/test/eventhubs_batch_perf_test.hpp index e486a05a3..d59d96013 100644 --- a/sdk/eventhubs/azure-messaging-eventhubs/test/perf/inc/azure/messaging/eventhubs/test/eventhubs_batch_perf_test.hpp +++ b/sdk/eventhubs/azure-messaging-eventhubs/test/perf/inc/azure/messaging/eventhubs/test/eventhubs_batch_perf_test.hpp @@ -241,7 +241,7 @@ namespace Azure { namespace Messaging { namespace EventHubs { namespace PerfTest false}, {"PaddingBytes", {"--paddingBytes"}, - "THe number of bytes to send in each message body.", + "The number of bytes to send in each message body.", 1, false}, {"partitionId",