From 9fad6f4fd0a4ad9ef8fc92ba4f9e15c9a7d36d63 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Thu, 5 Mar 2015 16:39:37 +0100 Subject: [PATCH] s4-torture: pass down resource name down to clusapi_OpenResource. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Guenther Signed-off-by: Günther Deschner Reviewed-by: Stefan Metzmacher --- source4/torture/rpc/clusapi.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/source4/torture/rpc/clusapi.c b/source4/torture/rpc/clusapi.c index 25bf420476ec..6ceb5e86e47c 100644 --- a/source4/torture/rpc/clusapi.c +++ b/source4/torture/rpc/clusapi.c @@ -283,11 +283,11 @@ static bool test_SetQuorumResource(struct torture_context *tctx, static bool test_OpenResource_int(struct torture_context *tctx, struct dcerpc_pipe *p, + const char *lpszResourceName, struct policy_handle *hResource) { struct dcerpc_binding_handle *b = p->binding_handle; struct clusapi_OpenResource r; - const char *lpszResourceName = "Cluster Name"; WERROR Status; WERROR rpc_status; @@ -334,7 +334,7 @@ static bool test_OpenResource(struct torture_context *tctx, { struct policy_handle hResource; - if (!test_OpenResource_int(tctx, p, &hResource)) { + if (!test_OpenResource_int(tctx, p, "Cluster Name", &hResource)) { return false; } @@ -348,7 +348,7 @@ static bool test_CloseResource(struct torture_context *tctx, { struct policy_handle hResource; - if (!test_OpenResource_int(tctx, p, &hResource)) { + if (!test_OpenResource_int(tctx, p, "Cluster Name", &hResource)) { return false; } @@ -517,7 +517,7 @@ static bool test_GetResourceState(struct torture_context *tctx, struct policy_handle hResource; bool ret = true; - if (!test_OpenResource_int(tctx, p, &hResource)) { + if (!test_OpenResource_int(tctx, p, "Cluster Name", &hResource)) { return false; } @@ -557,7 +557,7 @@ static bool test_GetResourceId(struct torture_context *tctx, struct policy_handle hResource; bool ret = true; - if (!test_OpenResource_int(tctx, p, &hResource)) { + if (!test_OpenResource_int(tctx, p, "Cluster Name", &hResource)) { return false; } @@ -597,7 +597,7 @@ static bool test_GetResourceType(struct torture_context *tctx, struct policy_handle hResource; bool ret = true; - if (!test_OpenResource_int(tctx, p, &hResource)) { + if (!test_OpenResource_int(tctx, p, "Cluster Name", &hResource)) { return false; } @@ -635,7 +635,7 @@ static bool test_FailResource(struct torture_context *tctx, struct policy_handle hResource; bool ret = true; - if (!test_OpenResource_int(tctx, p, &hResource)) { + if (!test_OpenResource_int(tctx, p, "Cluster Name", &hResource)) { return false; } @@ -673,7 +673,7 @@ static bool test_OnlineResource(struct torture_context *tctx, struct policy_handle hResource; bool ret = true; - if (!test_OpenResource_int(tctx, p, &hResource)) { + if (!test_OpenResource_int(tctx, p, "Cluster Name", &hResource)) { return false; } @@ -711,7 +711,7 @@ static bool test_OfflineResource(struct torture_context *tctx, struct policy_handle hResource; bool ret = true; - if (!test_OpenResource_int(tctx, p, &hResource)) { + if (!test_OpenResource_int(tctx, p, "Cluster Name", &hResource)) { return false; } @@ -733,7 +733,7 @@ static bool test_CreateResEnum(struct torture_context *tctx, WERROR rpc_status; torture_assert(tctx, - test_OpenResource_int(tctx, p, &hResource), + test_OpenResource_int(tctx, p, "Cluster Name", &hResource), "OpenResource failed"); r.in.hResource = hResource; -- 2.34.1