Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
650c91f
mroe quotes
gearama Jan 16, 2024
a51f30c
dssf
gearama Jan 16, 2024
d7e8a74
sqa
gearama Jan 16, 2024
8df4ad0
Merge branch 'main' of https://github.com/gearama/azure-sdk-for-cpp
gearama Jan 17, 2024
68e6dbf
first identity test no caching
gearama Jan 25, 2024
0570df1
cache no cache
gearama Jan 25, 2024
201c283
cleanup cache shortcircuit
gearama Jan 29, 2024
70bdb09
some cleanup
gearama Jan 29, 2024
cdd5a3e
http test 1
gearama Jan 30, 2024
56202ed
Update sdk/core/perf/src/base_test.cpp
gearama Jan 30, 2024
6c5d291
PR comments
gearama Jan 30, 2024
bd9262a
remove cache option
gearama Jan 30, 2024
493c1bb
wqq
gearama Jan 30, 2024
de21645
dsd
gearama Jan 30, 2024
f180f78
saa
gearama Jan 30, 2024
33499e1
wqq
gearama Jan 30, 2024
ec4137d
Merge branch 'CorePerfTests' of https://github.com/gearama/azure-sdk-…
gearama Jan 30, 2024
ef931d5
dfs
gearama Jan 30, 2024
5832f3f
clang
gearama Jan 30, 2024
9fd4930
Merge branch 'CorePerfTests' of https://github.com/gearama/azure-sdk-…
gearama Jan 30, 2024
838accc
http get post curl winhttp
gearama Jan 31, 2024
08b496b
Update sdk/core/perf/inc/azure/perf/dynamic_test_options.hpp
gearama Jan 31, 2024
756da1a
rtter
gearama Jan 31, 2024
b80ec88
PR comments
gearama Jan 31, 2024
3083411
PT comments
gearama Jan 31, 2024
5ad444d
Merge branch 'CorePerfTests' of https://github.com/gearama/azure-sdk-…
gearama Jan 31, 2024
a56644f
clang
gearama Jan 31, 2024
ad6f360
Merge branch 'CorePerfTests' of https://github.com/gearama/azure-sdk-…
gearama Jan 31, 2024
abd2ba0
http transport test
gearama Feb 1, 2024
75286e2
Update sdk/core/perf/src/base_test.cpp
gearama Jan 30, 2024
1b8fc5a
PR comments
gearama Jan 30, 2024
40d19f5
remove cache option
gearama Jan 30, 2024
61aa820
wqq
gearama Jan 30, 2024
a2c64d5
dsd
gearama Jan 30, 2024
af7fcd3
saa
gearama Jan 30, 2024
e665a35
wqq
gearama Jan 30, 2024
78f0f77
dfs
gearama Jan 30, 2024
8ccc9dd
clang
gearama Jan 30, 2024
2fc9017
http get post curl winhttp
gearama Jan 31, 2024
b0d9726
rtter
gearama Jan 31, 2024
85fd1e9
PR comments
gearama Jan 31, 2024
9369f40
PT comments
gearama Jan 31, 2024
dab3869
clang
gearama Jan 31, 2024
5454686
http transport test
gearama Feb 1, 2024
de34988
Merge branch 'CorePerfTests2' of https://github.com/gearama/azure-sdk…
gearama Feb 1, 2024
c3f47ea
Merge branch 'Azure:main' into main
gearama Feb 1, 2024
8b0a0fa
Merge branch 'main' of https://github.com/gearama/azure-sdk-for-cpp i…
gearama Feb 1, 2024
19bb4ce
PR comments
gearama Feb 2, 2024
91bfc3b
clangs
gearama Feb 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rtter
  • Loading branch information
gearama committed Jan 31, 2024
commit 756da1ac0efd4eee3dd01572b7fca33862dd62cb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,28 @@ namespace Azure { namespace Core { namespace Test {
std::string m_target;
std::shared_ptr<Azure::Core::Http::HttpTransport> m_Transport;
Azure::Core::Http::HttpMethod m_httpMethod = Azure::Core::Http::HttpMethod::Get;
std::shared_ptr<Azure::Core::Http::Request> m_httpRequest;

void GetRequest()
{
auto httpRequest = Azure::Core::Http::Request(m_httpMethod, Azure::Core::Url(m_target));
Azure::Core::Context context;
auto response = m_Transport->Send(httpRequest, context);
// Make sure to pull all bytes from network.
auto body = response->ExtractBodyStream()->ReadToEnd();
}

void PostRequest()
{
std::string payload = "{}";
Azure::Core::IO::MemoryBodyStream payloadStream(
reinterpret_cast<const uint8_t*>(payload.data()), payload.size());
auto httpRequest
= Azure::Core::Http::Request(m_httpMethod, Azure::Core::Url(m_target), &payloadStream);
Azure::Core::Context context;
auto response = m_Transport->Send(httpRequest, context);
// Make sure to pull all bytes from network.
auto body = response->ExtractBodyStream()->ReadToEnd();
}

public:
/**
Expand Down Expand Up @@ -69,7 +90,7 @@ namespace Azure { namespace Core { namespace Test {
m_target = GetTestProxy() + "/Admin/setRecordingOptions";
}
}

/**
* @brief Use HTTPTransportTest to call test proxy endpoint.
*
Expand All @@ -80,22 +101,12 @@ namespace Azure { namespace Core { namespace Test {
{
if (m_httpMethod == Azure::Core::Http::HttpMethod::Get)
{
m_httpRequest = std::make_shared<Azure::Core::Http::Request>(
m_httpMethod, Azure::Core::Url(m_target));
GetRequest();
}
else if (m_httpMethod == Azure::Core::Http::HttpMethod::Post)
{
std::string payload = "{}";
Azure::Core::IO::MemoryBodyStream payloadStream(
reinterpret_cast<const uint8_t*>(payload.data()), payload.size());
m_httpRequest = std::make_shared<Azure::Core::Http::Request>(
m_httpMethod, Azure::Core::Url(m_target), &payloadStream);
PostRequest();
}

Azure::Core::Context context;
auto response = m_Transport->Send(*m_httpRequest, context);
// Make sure to pull all bytes from network.
auto body = response->ExtractBodyStream()->ReadToEnd();
}
catch (std::exception const&)
{
Expand Down