Adding some request header
when constructing request
This commit is contained in:
@@ -15,4 +15,5 @@ TEST(test_RpcServiceRequest, basic) {
|
||||
EXPECT_TRUE(rpc.actionName() == action);
|
||||
EXPECT_TRUE(rpc.product() == product);
|
||||
EXPECT_TRUE(rpc.version() == version);
|
||||
EXPECT_EQ(string("testAction"), rpc.getHeader(string("x-acs-action")));
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ namespace {
|
||||
|
||||
TestServiceRequest sr1("ECS", "1.0");
|
||||
TestServiceRequest sr2(sr1);
|
||||
EXPECT_EQ(string("1.0"), sr1.getHeader(string("x-acs-version")));
|
||||
|
||||
sr1.addParameter("k1", "v1");
|
||||
sr2.addParameter("k2", "v2");
|
||||
|
||||
Reference in New Issue
Block a user