1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01:00
Commit Graph

65 Commits

Author SHA1 Message Date
Sascha Peilicke
ca9e38c3d9 Generate JUnit-compatible XML test result reports if 'xmlrunner' is available. 2011-09-08 11:43:45 +02:00
Sascha Peilicke
af86600880 Fix tests/test_request.py, requests seem to have a trainling newline now 2011-08-18 16:02:34 +02:00
dbe99c338f - follow changes during commit in test cases 2011-06-07 16:33:08 +02:00
Marcus Huewe
e247cf358c - adjusted testsuite for the latest setlinkrev changes 2011-03-21 16:53:48 +01:00
Marcus Huewe
e1080aa476 - common.py, __get_response: support "code" keyword argument to specify the http status code 2011-03-21 16:52:13 +01:00
Marcus Huewe
f0eb8946d3 - also test _link without "project" attribute 2011-02-22 17:53:58 +01:00
Marcus Huewe
40928d2460 - added testcases for "set_link_rev" 2011-02-22 17:53:58 +01:00
Marcus Huewe
74594eb9ec - adjusted testcase oscrc's for recent config changes 2011-02-11 12:44:48 +01:00
Marcus Huewe
73ffb036f8 - test_request: test get_actions method 2011-01-29 17:43:36 +01:00
Marcus Huewe
dda670f3de - test_request: adjusted testcase to the latest format changes 2011-01-24 09:34:37 +01:00
Marcus Huewe
6132f89268 - test_deletefiles.py: new testcases for skipped files 2011-01-17 14:59:46 +01:00
Marcus Huewe
e1b1f66bae - TestRequest: added testcase for action element with acceptinfo subelement 2011-01-12 22:20:47 +01:00
Marcus Huewe
8c26c74620 - added testcases for the rewritten Request class 2010-12-30 02:27:15 +01:00
Marcus Huewe
b99a903873 - def setUp: added "copytree" parameter to disable the copy of the "osctest" dir 2010-12-30 01:57:41 +01:00
Marcus Huewe
d77f8919fe - Project.init_project: return Project object
- adjusted testcases
2010-12-23 02:15:58 +01:00
Marcus Huewe
f8eae74898 - added new testcases in order to test the status methods for projects and packages 2010-12-22 23:12:24 +01:00
Marcus Huewe
062bb35c95 - removed unused imports 2010-12-19 20:32:06 +01:00
Marcus Huewe
70e43a87c2 - added testcases for #658664 ("osc: a package internal error occured")
- a file was marked as 'A' but the file didn't exist in the wc:
  - if it's part of the commit abort
  - otherwise ignore it
2010-12-17 23:23:39 +01:00
Marcus Huewe
71bedd4bb1 - new testcases for repair_wc: check if the passed parameter is a valid apiurl 2010-12-09 20:32:07 +01:00
Marcus Huewe
fffd0c395a - added new testcases for #657838 ("osc 0.130: osc repairwc fails totally - working copy useless") 2010-12-07 20:29:59 +01:00
Marcus Huewe
1a0cea8a4d - fixed testsuite 2010-11-30 19:11:05 +01:00
Marcus Huewe
48eaacef18 - new testcase: repairwc: repair a project wc with no apiurl 2010-10-10 21:36:07 +02:00
Marcus Huewe
cda7ffc040 - testcases for "init_project" 2010-10-09 16:25:44 +02:00
Marcus Huewe
c3c75689ef - added testcases for repairwc in order to repair a wc if the "_apiurl" file is missing 2010-09-28 23:01:39 +02:00
Marcus Huewe
cc4805c059 - added testsuite for new "repairwc" command 2010-09-08 18:57:21 +02:00
Marcus Huewe
cb935861c8 - make wc consistent 2010-09-08 18:51:14 +02:00
Marcus Huewe
7075dd05a8 - commit missing fixtures... 2010-09-08 16:35:59 +02:00
Marcus Huewe
fdcfd5e315 - cleanup working copies... 2010-09-08 16:18:35 +02:00
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