tests: Extend SMB test_save_load_text case to check overwrite
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 4 Dec 2018 23:51:22 +0000 (12:51 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 12 Dec 2018 03:38:13 +0000 (04:38 +0100)
commitda30c824b8240e92ad4bcdcd174d56c39235412e
treeac72bdb80954f8b4ee7c0725f0a7fd9867be4703
parent629a41fc6542cda9c2d60f99e8d7856aa1e081e5
tests: Extend SMB test_save_load_text case to check overwrite

Extend the test case to check overwriting a file as well. Currently this
has the behaviour of appending to the existing file, rather than
overwriting the file with new contents.

It's not clear from the API that this is the intended behaviour in this
case, so I've marked it as a failure.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13676

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/smb.py
selftest/knownfail.d/smb [new file with mode: 0644]