s4-smbtorture: skip three info levels while testing s3 with RPC-LSA.
authorGünther Deschner <gd@samba.org>
Tue, 3 Nov 2009 10:46:07 +0000 (11:46 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 3 Nov 2009 21:18:09 +0000 (22:18 +0100)
These are only supported by s3 when running pdb_ads atm.

Guenther

source4/torture/rpc/lsa.c

index 76b693f05205dec42b050de24adc2c69f64dbb7c..cff42a2aab698485960a1a3fa31e622123bf7002 100644 (file)
@@ -2536,9 +2536,6 @@ static bool test_QueryInfoPolicyCalls(    bool version2,
                        break;
                case LSA_POLICY_INFO_DOMAIN:
                case LSA_POLICY_INFO_ACCOUNT_DOMAIN:
-               case LSA_POLICY_INFO_L_ACCOUNT_DOMAIN:
-               case LSA_POLICY_INFO_DNS_INT:
-               case LSA_POLICY_INFO_DNS:
                case LSA_POLICY_INFO_REPLICA:
                case LSA_POLICY_INFO_QUOTA:
                case LSA_POLICY_INFO_ROLE:
@@ -2550,6 +2547,20 @@ static bool test_QueryInfoPolicyCalls(   bool version2,
                                ret = false;
                        }
                        break;
+               case LSA_POLICY_INFO_L_ACCOUNT_DOMAIN:
+               case LSA_POLICY_INFO_DNS_INT:
+               case LSA_POLICY_INFO_DNS:
+                       if (torture_setting_bool(tctx, "samba3", false)) {
+                               /* Other levels not implemented yet */
+                               if (!NT_STATUS_EQUAL(status, NT_STATUS_INVALID_INFO_CLASS)) {
+                                       torture_comment(tctx, "%s failed - %s\n", call, nt_errstr(status));
+                                       ret = false;
+                               }
+                       } else if (!NT_STATUS_IS_OK(status)) {
+                               torture_comment(tctx, "%s failed - %s\n", call, nt_errstr(status));
+                               ret = false;
+                       }
+                       break;
                default:
                        if (torture_setting_bool(tctx, "samba4", false)) {
                                /* Other levels not implemented yet */