]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Fix remaining incorrect references to 2012 -> 2012R2 FL in GetDCNameEx...
authorAndrew Bartlett <abartlet@samba.org>
Tue, 30 May 2023 03:11:31 +0000 (15:11 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 31 May 2023 04:02:35 +0000 (04:02 +0000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/tests/getdcname.py

index 268fe2ad2d6203884ff10ae0d80340c026ac3c6b..6bd4a98736dc1330ac5826381c17a9b79c76c5b7 100644 (file)
@@ -477,11 +477,11 @@ class GetDCNameEx(samba.tests.TestCase):
             response = self._call_get_dc_name(domain=self.realm,
                                               flags=netlogon.DS_RETURN_DNS_NAME|netlogon.DS_DIRECTORY_SERVICE_9_REQUIRED)
 
-            self.fail("Failed to detect requirement for 2012 that is not met")
+            self.fail("Failed to detect that requirement for 2012R2 was not met")
         except WERRORError as e:
             enum, estr = e.args
             if enum != werror.WERR_NO_SUCH_DOMAIN:
-                self.fail("Failed to detect requirement for 2012 that is not met")
+                self.fail(f"Incorrect error {estr} from GetDcNameEx looking for 2012R2 DC that was not available")
 
     def test_get_dc_direct_need_2012r2(self):
         """Test requring that we have a FL2012R2 DC as answer
@@ -519,11 +519,11 @@ class GetDCNameEx(samba.tests.TestCase):
             response = self._call_get_dc_name(domain=self.realm,
                                               flags=netlogon.DS_RETURN_DNS_NAME|netlogon.DS_DIRECTORY_SERVICE_9_REQUIRED)
 
-            self.fail("Failed to detect requirement for 2012 that is not met")
+            self.fail("Failed to detect requirement for 2012R2 that is not met")
         except WERRORError as e:
             enum, estr = e.args
             if enum != werror.WERR_NO_SUCH_DOMAIN:
-                self.fail("Failed to detect requirement for 2012 that is not met")
+                self.fail("Failed to detect requirement for 2012R2 that is not met")
 
     # TODO Thorough tests of domain GUID
     #