mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
s4-smbtorture: test netservergetinfo level 1 also against s3.
Guenther
This commit is contained in:
parent
1a441113ef
commit
d0a87f0098
@ -1720,15 +1720,15 @@ static bool test_netservergetinfo(struct torture_context *tctx,
|
||||
torture_assert_ntstatus_ok(tctx,
|
||||
smbcli_rap_netservergetinfo(cli->tree, lp_iconv_convenience(tctx->lp_ctx), tctx, &r),
|
||||
"rap_netservergetinfo level 0 failed");
|
||||
|
||||
if (torture_setting_bool(tctx, "samba3", false)) {
|
||||
torture_skip(tctx, "skipping netservergetinfo level 1 against samba3");
|
||||
}
|
||||
torture_assert_werr_ok(tctx, W_ERROR(r.out.status),
|
||||
"rap_netservergetinfo level 0 failed");
|
||||
|
||||
r.in.level = 1;
|
||||
torture_assert_ntstatus_ok(tctx,
|
||||
smbcli_rap_netservergetinfo(cli->tree, lp_iconv_convenience(tctx->lp_ctx), tctx, &r),
|
||||
"rap_netservergetinfo level 1 failed");
|
||||
torture_assert_werr_ok(tctx, W_ERROR(r.out.status),
|
||||
"rap_netservergetinfo level 1 failed");
|
||||
|
||||
return res;
|
||||
}
|
||||
|
@ -67,10 +67,6 @@ static bool test_rpc_netservergetinfo(struct torture_context *tctx,
|
||||
|
||||
torture_assert_str_equal(tctx, (const char *)r.out.info.info0.name, server_name, "server name");
|
||||
|
||||
if (torture_setting_bool(tctx, "samba3", false)) {
|
||||
torture_skip(tctx, "skipping netservergetinfo level 1 against samba3");
|
||||
}
|
||||
|
||||
r.in.level = 1;
|
||||
|
||||
torture_assert_ntstatus_ok(tctx,
|
||||
|
Loading…
x
Reference in New Issue
Block a user