azure-sdk-for-cpp/sdk/appconfiguration/azure-data-appconfiguration/test/ut/configuration_test.cpp
Ahson Khan d46cdad67f
Add project skeleton and check-in snapshot of generated SDK for Azure App Configuration. (#6176)
* Add project skeleton and check-in snapshot of generated SDK for Azure App Configuration.

* Add new line at eof

* Add exclusion to the cspell issue.

* Explicitly use size_t instead of auto for iterating through a vector

* Add another cspell exclusion, since it is case-sensitive

* Address PR feedback, update CL, package version.

* Update readme to remove template project content.

* Exclude appconfig from recordings, since none exist atm.

* Temporarily exclude appconfiguration from docs generation.

* Add line/branch coverage thresholds and skip publishing docs if they don't exist.
2024-11-08 12:28:18 -08:00

17 lines
468 B
C++

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include <azure/data/appconfiguration.hpp>
#include <azure/identity.hpp>
#include <gtest/gtest.h>
using namespace Azure::Data::AppConfiguration;
TEST(ConfigurationClient, Basic)
{
auto credential = std::make_shared<Azure::Identity::DefaultAzureCredential>();
ConfigurationClient configurationClient("serviceUrl", credential);
EXPECT_EQ(configurationClient.GetUrl(), "serviceUrl");
}