5026 Commits

Author SHA1 Message Date
Stephan Kulow
d0eef97d27 Fix problems with pkglistgen under python3 2019-05-12 21:22:07 +02:00
Stephan Kulow
4ef0c6230d
Merge pull request #2004 from coolo/add_pkglistgen_python3
Move to python3 containers for testing
2019-05-12 20:34:20 +02:00
Stephan Kulow
a7f449b446 Move to python3 containers for testing 2019-05-12 20:32:53 +02:00
Stephan Kulow
a31c37243b
Merge pull request #2000 from coolo/move_to_gocd
Simplify travis setup even more: deploy in gocd
2019-05-11 16:54:59 +02:00
Stephan Kulow
97e7d011b8
Merge pull request #2003 from coolo/fix_si
Fix string/bytes confusion with installcheck
2019-05-11 16:53:12 +02:00
Stephan Kulow
b04d91e2bd
Merge pull request #2001 from coolo/more_python3
Avoid warning on using .warn (python3)
2019-05-11 16:49:32 +02:00
Stephan Kulow
7ee9614ac2
Merge pull request #2002 from coolo/repository_fix
Fix and test repository_path_expand on SLE12-SP5
2019-05-11 16:49:16 +02:00
Stephan Kulow
9f9e6b75f3 Fix string/bytes confusion with installcheck 2019-05-11 16:40:27 +02:00
Stephan Kulow
4db9df6aec Fix and test repository_path_expand on SLE12-SP5
The way OBS collapses repositories is different to what we did
2019-05-11 16:34:31 +02:00
Stephan Kulow
fec762e5a4 Avoid warning on using .warn (python3) 2019-05-11 14:25:02 +02:00
Stephan Kulow
227e3ad0a8 Simplify travis setup even more: deploy in gocd
Fixes https://github.com/openSUSE/openSUSE-release-tools/pull/2000
2019-05-11 11:01:40 +02:00
Stephan Kulow
ffc9b22e0a
Merge pull request #1999 from coolo/remove_vcr
Remove more references to vcr
2019-05-11 10:40:30 +02:00
Stephan Kulow
d57ba61df5 Remove more references to vcr
I tried to replace the Mocking of functions with httpretty, but
unfortunately httpretty replaces all other API calls with 404s then.

What we'd need is a library sniping out single requests - possibly
by mocking the http_GET function, but that's tricky as well with
caching already overwriting it
2019-05-11 10:26:35 +02:00
Jimmy Berry
fbd1bbd4e2
Merge pull request #1998 from jberry-suse/obs_operator-handle-multilevel-domains
obs_operator: handle multi-level origin domains.
2019-05-10 12:12:02 -05:00
Jimmy Berry
74eb4a3955 obs_operator: handle multi-level host domains. 2019-05-10 11:53:28 -05:00
Jimmy Berry
d8df047d24 obs_operator: handle multi-level origin domains. 2019-05-10 11:44:26 -05:00
Jimmy Berry
a18d69a6e3
Merge pull request #1996 from jberry-suse/origin-manager-web-multilevel-domain
web/origin-manager: handle multi-level domains.
2019-05-10 11:35:13 -05:00
Jimmy Berry
b990f0622b
Merge pull request #1995 from jberry-suse/ci-deploy-fix
travis: restore deployment functionality.
2019-05-10 11:23:40 -05:00
Jimmy Berry
7abcbe9d54 web/origin-manager: handle multi-level domains.
Only consider the last two parts (base domain) as parent.
2019-05-10 11:22:20 -05:00
Jimmy Berry
3c9bf59258 web/origin-manager: correct indentation of bootstrap import. 2019-05-10 11:21:37 -05:00
Jimmy Berry
e9d725b402 travis: restore deployment functionality.
All other test suites were removed which makes the condition never met.
2019-05-10 11:11:15 -05:00
Jimmy Berry
c812ec9d38
Merge pull request #1994 from jberry-suse/obs-operator-origin-manager-report-systemd
systemd: include OBS Operator origin manager report service template.
2019-05-10 11:05:16 -05:00
Jimmy Berry
e3a4af235b systemd: drop --debug from obs_operator service. 2019-05-10 10:30:22 -05:00
Jimmy Berry
e46791774e systemd: include OBS Operator origin manager report service template. 2019-05-10 10:30:04 -05:00
Jimmy Berry
7de28a29fb
Merge pull request #1993 from jberry-suse/metrics-reduce-request-scope
metrics: reduce request period to after 450000.
2019-05-09 17:31:33 -05:00
Jimmy Berry
40b89d01c9 metrics: reduce request period to after 450000.
Works around ingest job crashing due to lack of memory. Hard to properly
workaround due to lack of sort API option from OBS.
2019-05-09 15:36:01 -05:00
18234ae19d
Merge pull request #1992 from nilxam/pkg_exists_vdelreq
vdelreq: ensure package does exist before checking binary
2019-05-09 16:23:50 +08:00
706607ab84 vdelreq: ensure package does exist before checking binary 2019-05-09 15:57:00 +08:00
Stephan Kulow
06e9685b2b
Merge pull request #1955 from coolo/fix_select2
Rework handling of packages with multiple specs
2019-05-07 08:23:27 +02:00
Stephan Kulow
4e5a0e2279
Merge pull request #1990 from coolo/merge_flake8
Run flake8 from Tumbleweed
2019-05-07 08:23:01 +02:00
Stephan Kulow
106ef6ae69 Run flake8 from Tumbleweed 2019-05-06 23:13:27 +02:00
Stephan Kulow
925032e0f9 Redo select tests to test package with multiple spec files 2019-05-06 22:38:57 +02:00
Stephan Kulow
aa70305aa2 Fix delete requests with multiple spec files
First gather the links and then wipe - or it will always be empty
2019-05-06 21:36:18 +02:00
Stephan Kulow
00a0bdc982 freeze: Stop ignoring inter project links
We link all packages by their srcmd5 - and only fix the links on
selecting new packages
2019-05-06 21:36:18 +02:00
Stephan Kulow
2765089077 freeze: Remove code handling Test-DVD
We no longer have products using that
2019-05-06 21:36:18 +02:00
Stephan Kulow
bb23be210b For consistency reasons always link the sub packages we're selecting
So far we skipped links between packages in the same ring because we've
frozen a _link pointing from one to the other, but this does not work
with default OBS and creates quite some problems also in adi projects
where it's trying to be smart.

Now simplify this a lot by simply linking it in any case
2019-05-06 21:36:18 +02:00
Stephan Kulow
fdea133415
Merge pull request #1982 from lnussel/master
userscript/origin.user.js: nice icons
2019-05-06 21:28:51 +02:00
Stephan Kulow
bf8ef5152a
Merge pull request #1981 from coolo/vcr
Port to python3 and test in tumbleweed containers
2019-05-06 21:25:28 +02:00
Stephan Kulow
1812800be5 Ignore tests in coverage report
nosetests default match for test files doesn't seem to match our files,
so most coverage we have is actually test code
2019-05-05 10:49:05 +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
70dd0ef20f Simplify httpretty usage
Don't pass regexps but real URLs, otherwise the matching won't work.
On travis and leap 15.1 we have httpretty 0.9.5 which won't uncover
the problem, but on Tumbleweed we have 0.9.6 that shows it
2019-05-05 10:49:05 +02:00
Stephan Kulow
58d6d7ca16 Python3 fixes 2019-05-04 15:44:44 +02:00
Stephan Kulow
3b568a60dd Create fixtures for devel_project_tests 2019-05-04 15:44:44 +02:00
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