Stephan Kulow
925032e0f9
Redo select tests to test package with multiple spec files
2019-05-06 22:38:57 +02:00
Stephan Kulow
9dcb403753
Merge vcrhelpers into OBSLocal
...
There are no more vcrs only a local OBS - even if not exported to
localhost
2019-05-05 10:49:05 +02:00
Stephan Kulow
58d6d7ca16
Python3 fixes
2019-05-04 15:44:44 +02:00
Stephan Kulow
0e00c83f09
Rename OBSLocal.OBSLocalTestCase to OBSLocal.TestCase
...
And make use of it in the vcrhelper using tests
2019-05-04 15:44:44 +02:00
Stephan Kulow
8ba4e2fb84
Run the nosetests in a tumbleweed container instead of travis environment
...
The docker-compose file starts an OBS instance (on 15.0 atm) and runs
the test suite in a test container (tumbleweed), so all tests run in
an isolated environment accessing OBS at api:3000
2019-05-04 15:44:39 +02:00
Jimmy Berry
df8cd0f677
tests/OBSLocal: re-parse config and reset authentication when changing user.
...
Previously, the user was changed, but the authentication not reset. For
osc.core calls made within the text context they would still run as Admin
while separate processes (like scripts) would run as the desired user. As
such this was not an issue before since only scripts were meant to run as
a different user.
2018-01-03 16:22:13 -06:00
Jimmy Berry
f1462def6e
tests/OBSLocal: setup test separate cookiejar.
2018-01-03 16:19:28 -06:00
Jimmy Berry
e3150a7626
tests/OBSLocal: invoke scripts using coverage
to include in report.
2017-10-24 18:06:33 -05:00
Jimmy Berry
e0491e3aae
tests/OBSLocal: split out execute() to provide osc and generic versions.
2017-10-24 18:05:48 -05:00
Jimmy Berry
476fbcd818
tests/OBSLocal: include assertOBS() to clarify OBS status before test.
...
Otherwise, end up with first OBS call in test failing which does not make
the issue as clear to understand.
2017-10-24 18:05:48 -05:00
Jimmy Berry
6faebca998
tests/OBSLocal: add email and include spaces in generated oscrc file.
2017-10-24 18:05:48 -05:00
Jimmy Berry
69a02fde86
tests/OBSLocal: rework OSCRC handling to use non-default file.
2017-10-24 18:05:38 -05:00
Jimmy Berry
c5cf186d18
tests/OBSLocal: add workaround for obs.py leakage.
2017-10-24 18:00:47 -05:00
Jimmy Berry
35bbaf3a66
tests/OBSLocal: provide based class for testing against local OBS.
2017-10-24 17:52:42 -05:00