372 Commits

Author SHA1 Message Date
Michal Hrusecky
00108750be Better testing, so far only for request reviews
To make testing more reliable and nice and generally better, we need to address
few issues. First of all, currently it is hard to figure out what was test
trying to access if accessing it fails. Second issue was that we mixed both
tests and OBS simulation logic. In perfect world, we should write some state
machine simulating OBS in some limited way and checking that scripts behaviour
corresponds to it.

This commit attempts to solve it at one example - review handling test.
2014-02-19 10:49:10 +01:00
Michal Hrusecky
e44f86a939 Tests for review manipulations 2014-02-17 15:12:18 +01:00
Stephan Kulow
6aac10b07f trying to beat python 3.3 2014-02-17 12:58:35 +01:00
Stephan Kulow
1a04943aeb rework the check logic and implement review checks (issue 1344) 2014-02-17 12:58:13 +01:00
Stephan Kulow
b2fff384b2 move the 'freeze' command in a file on its own and implement issue 1515 2014-02-15 16:42:07 +01:00
Michal Hrusecky
7acc216073 Tests for checking repository status 2014-02-14 19:17:31 +01:00
Stephan Kulow
8a3f12871b also test disable_build=True 2014-02-13 14:18:16 +01:00
Stephan Kulow
0f791f19fa wrote my first test - for create_package_container 2014-02-13 14:15:14 +01:00
2268d6bdf3 Rename StagingApi to StagingAPI 2014-02-13 11:43:10 +01:00
Michal Hrusecky
a74d37ddd9 Not crashing on valid but incorrect YAML
Making sure that if we succeed in reading YAML, the result actually contains
the structure we want/need.
2014-02-13 10:44:58 +01:00
Tomáš Chvátal
10e73642f1 Add posibility to move packages between rings with one test. Accidentaly also fix failing test. 2014-02-12 14:27:49 +01:00
b8116e6b11 Revert to a single one POST in the test 2014-02-12 13:52:29 +01:00
1fb0752147 Move StaginAPI into a module. Fix tests. 2014-02-12 13:15:49 +01:00
b8807c4bd2 Fix coding signature for 'utf-8' (PEP 0263) 2014-02-11 10:43:18 +01:00
Michal Hrusecky
a0653edc7e Renaming the functions for rqlink to match the rest 2014-02-10 14:38:50 +01:00
Michal Hrusecky
14d29ca429 Test metadata in description 2014-02-10 14:25:31 +01:00
Tomáš Chvátal
9e1f61c1a8 Add some basic check for the non-ring acceptance. 2014-02-10 13:58:59 +01:00
Tomáš Chvátal
e89cfb02a8 Whitespace. 2014-02-10 13:26:42 +01:00
Tomáš Chvátal
94f68ca8ef Add rings api and start some requests api with tests. 2014-02-10 13:24:49 +01:00
Tomáš Chvátal
5f01d761f4 Document also that we want to use mock. 2014-02-06 11:14:08 +01:00
Michal Hrusecky
bccd04cbbc Improve README regarding testing
README in tests directory still needs more cleanup, but we can do that in more
detail while writing these tests.
2014-02-05 17:09:05 +01:00
Michal Hrusecky
d8b593c911 Replace copy with symlink & little cleanup
So far we have a mess everywhere, but we are mainly using/working on
osc-staging.py file, so letting test suite use it by symlinking it for now.
General idea is once we cleanup everything, we get rid of all the mess around
and move this file to the correct location. Also moving some directories around
to clean up stuff even more.
2014-02-05 15:35:52 +01:00