diff options
| author | Nils Maier <maierman@web.de> | 2014-07-15 08:15:46 +0200 |
|---|---|---|
| committer | Nils Maier <maierman@web.de> | 2014-07-22 21:58:30 +0200 |
| commit | 8f2af33b6dd33e7937480e37f06d325e812dee8f (patch) | |
| tree | b74350f9d538150246e22551ac65b20c92cf466c /test | |
| parent | 24ae459523e4a41c711990b04bd9ed6f1222f559 (diff) | |
Delay auth failures instead of PBKDF2
Closes GH-256
Diffstat (limited to 'test')
| -rw-r--r-- | test/RpcResponseTest.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/RpcResponseTest.cc b/test/RpcResponseTest.cc index 7838d075..9083892e 100644 --- a/test/RpcResponseTest.cc +++ b/test/RpcResponseTest.cc @@ -28,7 +28,8 @@ void RpcResponseTest::testToJson() { auto param = List::g(); param->append(Integer::g(1)); - RpcResponse res(0, std::move(param), String::g("9")); + RpcResponse res(0, RpcResponse::AUTHORIZED, std::move(param), + String::g("9")); results.push_back(std::move(res)); std::string s = toJson(results.back(), "", false); CPPUNIT_ASSERT_EQUAL(std::string("{\"id\":\"9\"," @@ -47,7 +48,7 @@ void RpcResponseTest::testToJson() auto param = Dict::g(); param->put("code", Integer::g(1)); param->put("message", "HELLO ERROR"); - RpcResponse res(1, std::move(param), Null::g()); + RpcResponse res(1, RpcResponse::AUTHORIZED, std::move(param), Null::g()); results.push_back(std::move(res)); std::string s = toJson(results.back(), "", false); CPPUNIT_ASSERT_EQUAL(std::string("{\"id\":null," @@ -101,7 +102,7 @@ void RpcResponseTest::testToXml() auto param = Dict::g(); param->put("faultCode", Integer::g(1)); param->put("faultString", "No such method: make.hamburger"); - RpcResponse res(1, std::move(param), Null::g()); + RpcResponse res(1, RpcResponse::AUTHORIZED, std::move(param), Null::g()); std::string s = toXml(res, false); CPPUNIT_ASSERT_EQUAL (std::string("<?xml version=\"1.0\"?>" |
