Marcus Huewe
044c678455
- fixed test_difffiles testsuite for python2.7
...
python2.7's difflib slightly changed the format
2010-09-08 12:10:09 +02:00
Marcus Huewe
acbf2dabd5
- new testcase for a package without a revision
2010-09-06 18:11:12 +02:00
Marcus Huewe
5e72fa1284
- fixed "osc addremove": use delete_file(), initialize pac.todo correctly
...
- added new testcase
2010-09-06 15:28:23 +02:00
Marcus Huewe
0502e81b26
- added new testcase
2010-09-03 21:28:17 +02:00
Marcus Huewe
57a3832a8e
- rewrote "def commit"
...
- the upload revision isn't used anymore instead we commit via
cmd=commitfilelist
- extended and adjusted testcases
2010-09-03 17:46:01 +02:00
Marcus Huewe
5c8b258a6b
- fixed read_sizelimit: added missing strip
...
- fix for commit 89c9cb67f4
: self.size_limit should be an int
- added testcase for local _size_limit constraint
2010-09-03 16:09:56 +02:00
Marcus Huewe
89c9cb67f4
- renamed limit_size to size_limit (only internal variable changes)
...
- added new method "get_files_meta" to the Package class (which handles
the the "skip file and service stuff")
2010-09-03 14:51:20 +02:00
Marcus Huewe
94eb143d8c
- small fixes for do_status and get_diff
...
- get_diff:
* more helpful error message if a file was added and the local
file was removed again
* unify self.filenamelist and self.to_be_added if self.todo is empty
* extended testcases
- do_status: be able to run "osc st <nonexistentfile>"
2010-09-02 13:47:42 +02:00
Marcus Huewe
b718669685
- raise OscIOError instead of IOError (adjusted testcases)
2010-09-02 10:23:37 +02:00
Marcus Huewe
b6925f7b34
- arghs... finally all files should be present
2010-08-31 17:46:07 +02:00
Marcus Huewe
9fa5d7ea39
- added missing fixtures...
2010-08-31 17:44:05 +02:00
Marcus Huewe
7802dfa9ad
- fixed patch header
2010-08-31 17:30:31 +02:00
Marcus Huewe
3ac330f7cd
- fixed _meta_mode + added testcase
2010-08-31 16:54:44 +02:00
Marcus Huewe
947971b2a2
- workaround for git (because it doesn't support empty dirs)
2010-08-31 16:25:24 +02:00
Marcus Huewe
1da96d7df7
- propagate retval to the caller
2010-08-31 13:47:27 +02:00
Marcus Huewe
9c5c329a04
- get_diff: don't diff binary files
2010-08-31 13:30:37 +02:00
Marcus Huewe
9c2f1d85ca
- added testcase for the "def commit" method + _missing_ log message from a5a0917fce7124f9cc8458a9ee41ced521aa502e
...
missing log for a5a0917fce7124f9cc8458a9ee41ced521aa502e:
- added support for @POST, @PUT, @DELETE decorators
- support optional "exception" keyword arg for the decorators
(the specified exception will be raised before returning the response)
- moved "_check_digests" into the common module
2010-08-31 13:30:37 +02:00
Marcus Huewe
3cf8a5bf88
- fixed commit (Package class)
...
- use "self.rev" when calling update_local_filesmeta (otherwise we might get a newer revision)
- write addlist after commit
2010-08-31 13:30:37 +02:00
Marcus Huewe
c4ceb7f700
- adjusted store_write_string calls so that the storefile ends with a newline
...
- adjusted testcase fixtures for this change
2010-08-31 13:30:37 +02:00
Marcus Huewe
2ffd46a9c2
- get rid of the init_package_dir mess
...
moved code into the staticmethod "init_package" of the Package class.
Cleaned up "checkout_package"
2010-08-31 13:30:37 +02:00
Marcus Huewe
19c63111b6
- added testcases for the new "get_diff" method
2010-08-31 13:30:36 +02:00
Marcus Huewe
d90228a7e3
- support a revert of a missing file which was added to the wc
2010-08-31 13:30:36 +02:00
Marcus Huewe
1d7c674d80
- adjusted testcase for the init_basicauth change in master
2010-08-31 13:30:36 +02:00
Marcus Huewe
9c0076d726
- added testcases for "def revert"
2010-08-31 13:30:36 +02:00
Marcus Huewe
e21e61f20e
- minor fixes
2010-08-31 13:30:36 +02:00
Marcus Huewe
62dc807378
- moved common methods into the OscTestCase class
2010-08-31 13:30:36 +02:00
Marcus Huewe
71e0b3ee34
- GET decorator: use name of the original method for the wrapper method
2010-08-31 13:30:36 +02:00
Marcus Huewe
5b6aa0a4fc
- added testsuite module which aggregates all testcases
2010-08-31 13:30:36 +02:00
Marcus Huewe
88a961cae4
- rewrote addfile() and delete_file() methods from the Package class (for the details see below)
...
- addfile():
* contains the complete logic for adding a file (=> simplified addFiles(...))
* semantic fixes
- delete_file():
* semantic fixes
- different handling of newly added/replaced files:
* added/replaced files are tracked in the .osc/_to_be_added file
- introduced new file state 'R': 'R' == "replaced"
* usecase: osc rm <file>; osc add <file> => new state is 'R'
* conceptually 'R' is equal to 'A'
- adapted revert() to support the new state (+ some other minor fixes)
- added testcases for addfile() and delete_file()
2010-08-31 13:30:36 +02:00
Marcus Huewe
e6b451596c
- moved __change_to_pkg into common module (new name _change_to_pkg)
...
removed unused method "__expected_requests" from TestUpdate class
2010-08-31 13:30:36 +02:00
Marcus Huewe
f4adf69ef9
- refactored testcase code: moved common stuff into a common module
2010-08-31 13:30:36 +02:00
Marcus Huewe
a6efd9e970
- adjust testcase for commit 9205d4d902cd3d45747c30405acd92bd5f98d210
2010-08-31 13:30:36 +02:00
Marcus Huewe
d8c59c8438
- update: support special handling for _service: files
2010-08-31 13:30:35 +02:00
Marcus Huewe
63df61e452
- simplify
2010-08-31 13:30:35 +02:00
Marcus Huewe
58ca66a417
- update: always use 'rev' query parameter when fetching files
2010-08-31 13:30:35 +02:00
Marcus Huewe
e91475508e
- support limit_size parameter during update
...
also added testcases
2010-08-31 13:30:35 +02:00
Marcus Huewe
b6a2266a5e
- initial testcases for the new update mechanism
...
some generic stuff from test_update.py will be moved into a new
module later
2010-08-31 13:30:35 +02:00