summaryrefslogtreecommitdiff
path: root/src/token_authorization_middleware_test.cpp
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2017-04-05 23:04:39 +0300
committerEd Tanous <ed.tanous@intel.com>2017-04-05 23:17:36 +0300
commit7d3dba40b6576ece9850c7156a481436b5f5ef02 (patch)
tree5042fa6df66620b82706f25d3eb19e1a4c14d364 /src/token_authorization_middleware_test.cpp
parentb4a7bfad0a3ded7a813bdb44a46383316dc49b24 (diff)
downloadbmcweb-7d3dba40b6576ece9850c7156a481436b5f5ef02.tar.xz
Make app middlewares not require specific instances of app
Diffstat (limited to 'src/token_authorization_middleware_test.cpp')
-rw-r--r--src/token_authorization_middleware_test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/token_authorization_middleware_test.cpp b/src/token_authorization_middleware_test.cpp
index 68efe8f5b4..00eed2fd1b 100644
--- a/src/token_authorization_middleware_test.cpp
+++ b/src/token_authorization_middleware_test.cpp
@@ -24,7 +24,7 @@ TEST(TokenAuthentication, TestBasicReject) {
c.connect(asio::ip::tcp::endpoint(
asio::ip::address::from_string("127.0.0.1"), 45451));
c.send(asio::buffer(sendmsg));
- auto received_count = c.receive(asio::buffer(buf, 2048));
+ c.receive(asio::buffer(buf, 2048));
c.close();
EXPECT_EQ("200", std::string(buf + 9, buf + 12));
}
@@ -66,7 +66,7 @@ TEST(TokenAuthentication, TestRejectedResource) {
}
}
c.send(asio::buffer(sendmsg));
- auto received_count = c.receive(asio::buffer(buf, 2048));
+ c.receive(asio::buffer(buf, 2048));
c.close();
EXPECT_EQ("401", std::string(buf + 9, buf + 12));
@@ -95,7 +95,7 @@ TEST(TokenAuthentication, TestGetLoginUrl) {
}
}
c.send(asio::buffer(sendmsg));
- auto received_count = c.receive(asio::buffer(buf, 2048));
+ c.receive(asio::buffer(buf, 2048));
c.close();
EXPECT_EQ("401", std::string(buf + 9, buf + 12));
@@ -118,7 +118,7 @@ TEST(TokenAuthentication, TestPostBadLoginUrl) {
c.connect(asio::ip::tcp::endpoint(
asio::ip::address::from_string("127.0.0.1"), 45451));
c.send(asio::buffer(sendmsg));
- auto received_count = c.receive(asio::buffer(buf));
+ c.receive(asio::buffer(buf));
c.close();
};
@@ -193,7 +193,7 @@ TEST(TokenAuthentication, TestSuccessfulLogin) {
c.connect(asio::ip::tcp::endpoint(
asio::ip::address::from_string("127.0.0.1"), 45451));
c.send(asio::buffer(sendmsg));
- auto received_count = c.receive(asio::buffer(buf));
+ c.receive(asio::buffer(buf));
c.close();
};