"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "python/samba/tests/blackbox/ndrdump.py" between
samba-4.12.3.tar.gz and samba-4.12.5.tar.gz

About: Samba is the standard Windows interoperability suite of programs for Linux and Unix providing secure, stable and fast file and print services for all clients using the SMB/CIFS protocol. 4.12 series.

ndrdump.py  (samba-4.12.3):ndrdump.py  (samba-4.12.5)
skipping to change at line 439 skipping to change at line 439
def test_fuzzed_drsuapi_DsGetNCChanges(self): def test_fuzzed_drsuapi_DsGetNCChanges(self):
expected = open(self.data_path("fuzzed_drsuapi_DsGetNCChanges.txt"), 'r b').read() expected = open(self.data_path("fuzzed_drsuapi_DsGetNCChanges.txt"), 'r b').read()
try: try:
actual = self.check_output( actual = self.check_output(
"ndrdump drsuapi 3 out --base64-input --input " +\ "ndrdump drsuapi 3 out --base64-input --input " +\
"AQAAAAEAAAAGAKoAAAAGAKoGAAMAAQAAAAYAEwAAAAAAAAAA/wAAAAAAAAA/AAA AAAAAAAAAAAAAAAAAAABbAAAAAAAAAAAAAAkRAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAPkAAAAAAAABAAD4BgATAAAAAAAAAAD/AAAAAAAAAD8AAAAAAAAAAAAAAAAAAAAAAFsAAAAAAAAAAAA ABgAQAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAMAAAABAAAACREAAAEAAAABAAAAAAAAAAYAEAABAAg AAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAA=") "AQAAAAEAAAAGAKoAAAAGAKoGAAMAAQAAAAYAEwAAAAAAAAAA/wAAAAAAAAA/AAA AAAAAAAAAAAAAAAAAAABbAAAAAAAAAAAAAAkRAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAPkAAAAAAAABAAD4BgATAAAAAAAAAAD/AAAAAAAAAD8AAAAAAAAAAAAAAAAAAAAAAFsAAAAAAAAAAAA ABgAQAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAMAAAABAAAACREAAAEAAAABAAAAAAAAAAYAEAABAAg AAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAA=")
except BlackboxProcessError as e: except BlackboxProcessError as e:
self.fail(e) self.fail(e)
self.assertEqual(actual, expected) self.assertEqual(actual, expected)
def test_ndrdump_short_dnsProperty(self):
expected = b'''pull returned Success
dnsp_DnsProperty_short: struct dnsp_DnsProperty_short
wDataLength : 0x00000000 (0)
namelength : 0x00000000 (0)
flag : 0x00000000 (0)
version : 0x00000001 (1)
id : DSPROPERTY_ZONE_NS_SERVERS_DA (146)
data : union dnsPropertyData(case 0)
name : 0x00000000 (0)
dump OK
'''
command = (
"ndrdump dnsp dnsp_DnsProperty_short struct --base64-input "
"--input AAAAAAAAAAAAAAAAAQAAAJIAAAAAAAAA")
try:
actual = self.check_output(command)
except BlackboxProcessError as e:
self.fail(e)
self.assertEqual(actual, expected)
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)