Stephan Kulow
767f3e453b
Fix comment_tests to create fixtures
2019-05-04 15:44:44 +02:00
Stephan Kulow
a4614ac13e
Create user before using it
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
5721cee783
Create a real staging setup for freeze tests
...
If it's an empty project only we're freezing, the backend 'remembers' the
mtime of previous versions of the project (delete only marks it for undelete,
so creating a new empty project is just deleting this mark and as such doesn't
change the mtime).
So we need to have a new wine package with fresh content to change mtime
during freeze
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
Stephan Kulow
8a7b65d505
Remove fake OBS in favor of using generated test data
2019-05-04 15:44:39 +02:00
Stephan Kulow
5f3dcca267
Fix OBSLock to always write full ISO format
...
If the microseconds are 0, isoformat won't output any, but our _parse
function expects them. python 3.7 has isoformat/fromisoformat, which
would fix it, but we can't take it atm
2019-05-04 15:44:39 +02:00
Stephan Kulow
0693c88977
Fix crash on staging project without flag section
2019-05-04 15:44:39 +02:00
Stephan Kulow
c5e7fc3570
obs_clone: remove watchlist from persons
...
We don't want these projects
2019-05-04 15:44:39 +02:00
Stephan Kulow
64ad083d84
Merge pull request #1984 from coolo/build_in_obs
...
No longer build packages in travis but in OBS
2019-05-04 15:34:01 +02:00
Stephan Kulow
afbd01eb38
Do not build packages in travis but in OBS
...
Together with ChrisBr I developed a solution to test the package build of
a git report directly in OBS. It's currently in phase of refactoring, so
I forked it temporarly to https://github.com/coolo/pull_request_package
and setup a local cron job to run
docker run -v=/space/puller-config:/config -t openqapusher/osrt_pull_request_package
every 5 minutes.
2019-05-03 14:43:48 +02:00
Stephan Kulow
47162d79f0
Merge pull request #1980 from coolo/add_testing_container
...
Add container for testing in leap 15.1
2019-05-03 09:59:32 +02:00
Stephan Kulow
14303a60da
Add container for testing in leap 15.1
...
The container will be built on OBS and be used on travis to avoid waiting
for the container to build (or to error because of download.opensuse.org madness)
2019-05-03 09:41:37 +02:00
Stephan Kulow
6508d76633
Merge pull request #1976 from jberry-suse/origin-manager-revision-state-none-origin
...
origin-manager: handle no origin when determining revision state.
2019-05-03 06:45:56 +02:00
Stephan Kulow
7c8e5731b5
Merge pull request #1978 from jberry-suse/osclib-conf-all-strings
...
osclib/conf: convert all non-string defaults to string equivalents.
2019-05-03 06:45:33 +02:00
Stephan Kulow
53f5522b93
Merge pull request #1979 from jberry-suse/dist-spec-python3
...
dist/package: handle python 2 vs python 3 dependencies.
2019-05-03 06:32:30 +02:00
Jimmy Berry
c142b9052f
dist/package: handle python 2 vs python 3 dependencies.
...
Since osc was updated to require python 3 handle dependencies in
same fashion as osc so as to get them right.
2019-05-02 15:55:03 -05:00
Jimmy Berry
be729c0bd1
dist/package: require influxdb and telegraf for Tumbleweed.
...
The packages have made there way into Tumbleweed and thus can now be
required instead of suggested.
2019-05-02 15:28:57 -05:00
Jimmy Berry
9214736f37
dist/package: drop %check and related build requirements.
...
Not feasible to run tests on OBS.
2019-05-02 15:24:12 -05:00
Stephan Kulow
410ee68996
Merge pull request #1977 from jberry-suse/dist-package-osc-plugin-depend-osclib
...
dist/package: add osclib dependency to all osc plugin packages.
2019-05-02 22:03:07 +02:00
Jimmy Berry
e66fa4c404
osclib/conf: convert all non-string defaults to string equivalents.
...
Python3 osc config parsing explodes on non-strings.
2019-05-02 14:55:12 -05:00
Jimmy Berry
38b9ab430e
dist/package: add osclib dependency to all osc plugin packages.
2019-05-02 14:48:01 -05:00
Jimmy Berry
e20725a482
osclib/origin: handle origin_info when None.
2019-05-02 14:44:14 -05:00
Jimmy Berry
cbd3e446e6
osclib/origin: origin_revision_state(): do not find origin when None.
...
Previously, there was no way to distinguish between a None origin and no
origin_info passed in. Using False as default allows the two cases to be
distinguished.
2019-05-02 14:43:37 -05:00
Stephan Kulow
e4b5f68fa0
Merge pull request #1973 from michelmno/dryrun
...
[ttm] do not wait publishing if dryrun
2019-05-02 13:01:58 +02:00
Stephan Kulow
94176960bb
Merge pull request #1974 from nilxam/pika_rabbit
...
PubSubConsumer: adopt to Pika 1.0 change
2019-05-02 12:44:04 +02:00
Stephan Kulow
fefa1adaf7
PubSubConsumer: Fix cancel callbacks
2019-05-02 11:55:08 +02:00
Stephan Kulow
22ff335e45
PubSubConsumer: fix timer API and close callbacks
2019-05-02 11:26:32 +02:00
Stephan Kulow
79109efe55
PubSubConsumer: add SSL options and fix reason API
2019-05-02 11:14:06 +02:00
0877289bf3
PubSubConsumer: adopt to Pika 1.0 change
2019-05-02 17:05:53 +08:00
Michel Normand
9e248644f8
[ttm] do not wait publishing if dryrun
...
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
2019-05-02 10:47:03 +02:00
Stephan Kulow
9cdbc9ac8d
Merge pull request #1971 from jberry-suse/origin-manager-webui
...
origin-manager: provide web interface to aid in maintenance and decision making
2019-05-02 08:37:24 +02:00
Stephan Kulow
09332504d4
Merge pull request #1968 from coolo/python3_cherry_picks
...
Python3 cherry picks
2019-05-02 07:59:22 +02:00
Jimmy Berry
8022a8435a
obs_operator: do not validate apiurl when set by flag.
2019-05-01 18:26:54 -05:00
Jimmy Berry
83c170660f
dist/ci/flake-extra: include osc-origin.py in product grep.
2019-05-01 18:25:04 -05:00
Jimmy Berry
70a70a3983
web/origin-manager: provide initial interface utilizing operator handlers.
2019-05-01 18:24:59 -05:00
Jimmy Berry
5ffe4931e7
obs_operator: provide request/submit handler.
2019-05-01 18:24:27 -05:00
Jimmy Berry
2e311f0702
obs_operator: provide package/diff handler.
2019-05-01 18:24:18 -05:00
Jimmy Berry
2722f5fe2f
obs_operator: provide origin/projects handler.
2019-05-01 15:55:33 -05:00
Jimmy Berry
ed20276100
obs_operator: provide origin/potentials handler.
2019-05-01 15:55:33 -05:00
Jimmy Berry
6c931615c7
obs_operator: provide origin/history handler.
2019-05-01 15:55:33 -05:00
Jimmy Berry
c3c4069c79
obs_operator: add format support to origin/list handler.
2019-05-01 15:55:27 -05:00
Jimmy Berry
7bf860c8cb
obs_operator: handle empty body POST request.
2019-05-01 15:49:21 -05:00
Jimmy Berry
701e5ea2d1
obs_operator: support CORS preflight check OPTIONS requests.
2019-05-01 15:49:21 -05:00
Jimmy Berry
9a00f9c995
osc-origin: add command to list package origin history.
2019-05-01 15:49:21 -05:00
Jimmy Berry
4be2b335d8
osclib/origin: add origin_history().
2019-05-01 15:49:21 -05:00
Jimmy Berry
3b61db61e5
osc-origin: add command to list potential origins for a package.
2019-05-01 15:49:21 -05:00
Jimmy Berry
4bae7078b8
osclib/origin: add origin_potentials().
2019-05-01 15:49:21 -05:00
Jimmy Berry
792271d71d
osc-origin: add projects command to list managed projects.
2019-05-01 15:49:21 -05:00
Jimmy Berry
5d3f68159f
osc-origin: provide format flag and add support to list command.
2019-05-01 15:49:21 -05:00