Joseph Schorr
5509dd350c
Switch to use the new registry tests suite
2018-05-22 17:06:41 -04:00
Joseph Schorr
8c1b0e673c
Implement the remaining registry tests in the new py.test format
2018-05-01 13:28:24 +03:00
Joseph Schorr
77adf9dd77
Fix bug which allowed for implicit library namespace access via the V1 registry protocol when the feature flag was off
...
Now we raise a 400 as expected
2018-05-01 13:28:24 +03:00
Joseph Schorr
178c8e7cb0
Fix bug in in-memory data cache
...
Previously, if we didn't find a key, we'd empty the entire cache, making it essentially a single-key cache. We skip clearing now, although this does mean we won't GC expired entries (not a problem for tests, though)
2018-05-01 13:28:24 +03:00
Joseph Schorr
23c19bcbc1
Implement support for registry integration tests via py.test
...
This change implements support for registry integration tests using the new py.test-based live server test fixture. We can now parametrize the protocols we use (in prep for V2_2), and it makes the code *much* cleaner and less hacky.
Note that moving the vast majority of the tests over from the existing impl will come as a followup PR
2018-05-01 13:28:24 +03:00
Joseph Schorr
85496b8195
Translate LiveServerTestCase into a py.test-compatible liveserver fixture
...
This allow us to super-easily instantiate a live, running Flask server with the test app, as well as interact with it, without any of the crazy boilerplate we previously used
2018-05-01 13:28:24 +03:00
josephschorr
b5de98b958
Merge pull request #3058 from quay/known-threat-build-count
...
Add support for reduced initial build count for new possible abusing users
2018-04-24 18:12:02 +03:00
Joseph Schorr
3309daa32e
Add support for reduced initial build count for new possible abusing users
...
If configured, we now check the IP address of the user signing up and, if they are a possible threat, we further reduce their number of allowed maximum builds to the configured value.
2018-04-20 18:46:32 +03:00
josephschorr
8d5e8fc685
Merge pull request #3035 from quay/joseph.schorr/QUAY-892/multiple-auth-scope
...
Multiple auth scope support in V2 auth
2018-04-18 20:54:36 +03:00
Joseph Schorr
a59c951aa3
Add support for multiple scope parameters on V2 auth requests
...
Fixes https://jira.coreos.com/browse/QUAY-892
2018-04-18 20:16:49 +03:00
Joseph Schorr
86aa93aab5
Add a new test suite for the v2auth generate_registry_jwt endpoint
2018-04-18 20:16:49 +03:00
josephschorr
bda00e2dc0
Merge pull request #3050 from coreos-inc/joseph.schorr/QUAY-886/oauth-query-param
...
Add support for defining custom query parameters for OIDC endpoints
2018-04-11 14:03:24 -04:00
josephschorr
96458c6420
Merge pull request #3053 from coreos-inc/2.9.1-release
...
Update CHANGELOG for 2.9.1
2018-04-09 11:47:15 -04:00
Joseph Schorr
e07004141b
Update CHANGELOG for 2.9.1
2018-04-09 10:26:22 -04:00
josephschorr
916441b5f4
Merge pull request #3052 from coreos-inc/joseph.schorr/QUAY-912/fix-postgres-migration
...
Postgres requires defaults for non-nullable cols, even integer ones
2018-04-09 10:23:46 -04:00
Joseph Schorr
4418772745
Postgres requires defaults for non-nullable cols, even integer ones
...
Fixes https://jira.coreos.com/browse/QUAY-912
2018-04-08 18:54:23 -04:00
Joseph Schorr
3cd314874f
Add support for defining custom query parameters for OIDC endpoints
...
Fixes https://jira.coreos.com/browse/QUAY-886
2018-04-06 12:48:03 -04:00
josephschorr
ecf6db256d
Merge pull request #3049 from coreos-inc/joseph.schorr/QUAY-881/overflow
...
Fix overflow of cor-tabs by switching to flex box
2018-04-04 17:09:28 -04:00
Joseph Schorr
1fce4a1a1d
Fix overflow of cor-tabs by switching to flex box
...
Fixes https://jira.coreos.com/browse/QUAY-881
2018-04-04 17:07:31 -04:00
Brad Ison
b4849997e7
Merge pull request #3038 from bison/peewee-fixes
...
Prepare to update Peewee
2018-04-04 15:17:20 -04:00
Brad Ison
e90da9f2c0
Fix API team membership test
2018-04-04 14:22:11 -04:00
Brad Ison
8e5c67e207
Use get_or_create in place of create_or_get
...
Peewee v2.9.0 removes the create_or_get method.
2018-04-04 14:21:16 -04:00
Brad Ison
c2ad6c5060
Check for null model objects
...
As of v2.8.2, peewee will not create model objects with all null
fields when an FK reference is null. We have to check the model
instances for None. See:
https://github.com/coleifer/peewee/issues/1012
2018-04-04 14:19:45 -04:00
josephschorr
a0d0e42d7a
Merge pull request #3048 from coreos-inc/image-model-tests
...
Add tests for image model, fix a small bug and remove an unused function
2018-04-04 13:29:43 -04:00
Joseph Schorr
82da2042fd
Add tests for image model, fix a small bug and remove an unused function
2018-04-04 13:13:52 -04:00
josephschorr
cc72d86fa2
Merge pull request #3045 from coreos-inc/remove-placements-query
...
Simplifying queries around images and placements
2018-04-03 17:33:24 -04:00
Joseph Schorr
8146646761
Simplifying queries around images and placements
...
Only verbs needs to load placements for multiple images, so we can vastly simplify and optimize most queries by making it two-step, and having the rest of the image loads not worry about placements
2018-04-03 16:23:49 -04:00
josephschorr
ba812bb794
Merge pull request #3047 from coreos-inc/2.9.0-release
...
CHANGELOG for v2.9.0
2018-04-03 13:57:42 -04:00
Joseph Schorr
fc2db5b78b
CHANGELOG for v2.9.0
2018-04-03 12:22:21 -04:00
Jimmy Zelinskie
1041481ff3
Merge pull request #3046 from jzelinskie/torrent-validator
...
util/config/validators: ensure endpoint isn't prom
2018-04-03 12:10:56 -04:00
Jimmy Zelinskie
58072f8673
util/config/validators: ensure endpoint isn't prom
2018-04-02 17:59:48 -04:00
josephschorr
0c7c9a7a0a
Merge pull request #3042 from coreos-inc/fix-robot-metadata-json-default
...
Default for robot account metadata should be an empty dict, not a string
2018-03-27 17:31:34 -04:00
Joseph Schorr
f6b647bd61
Default for robot account metadata should be an empty dict, not a string
2018-03-27 17:29:55 -04:00
josephschorr
0e7e08564f
Merge pull request #3041 from coreos-inc/missing-license
...
Changes missing from removal of the license code
2018-03-27 16:21:07 -04:00
nstielau
f376db91f5
Merge pull request #3040 from coreos-inc/entitytypo
...
Fix minor typo in new entity creation dialog
2018-03-27 13:20:41 -07:00
Joseph Schorr
111ba8f7ee
Changes missing from the license removal code
2018-03-27 16:18:56 -04:00
nstielau
d1455b2f8e
Fix minor typo in new entity creation dialog
...
`extran` => `extra`
2018-03-27 13:15:05 -07:00
josephschorr
6f0b2f9a90
Merge pull request #3039 from coreos-inc/fix-fontawesome
...
Match loaded fontawesome fonts to the CSS version
2018-03-27 14:45:52 -04:00
Joseph Schorr
bb675a5123
Match loaded fontawesome fonts to the CSS version
2018-03-27 14:45:07 -04:00
josephschorr
e5103c8f71
Merge pull request #3037 from coreos-inc/dep-update-version
...
Break apt-get cache to update dependencies
2018-03-27 12:29:50 -04:00
Joseph Schorr
82d1d0152d
Break apt-get cache to update dependencies
2018-03-27 12:28:50 -04:00
josephschorr
323eb63747
Merge pull request #3032 from coreos-inc/joseph.schorr/QUAY-885/squashed-sym
...
Retarget broken hard links in squashed images
2018-03-26 17:59:52 -04:00
josephschorr
8c2936c452
Merge pull request #3036 from coreos-inc/joseph.schorr/QUAY-896/torrent-unicode-error
...
Fix error with unicode URLs in torrent creation
2018-03-26 17:10:52 -04:00
Joseph Schorr
747819fbd2
Fix error with unicode URLs in torrent creation
...
Fixes https://jira.coreos.com/browse/QUAY-896
2018-03-26 17:07:00 -04:00
Joseph Schorr
dd470bdc9d
Add a reporter for verbs to track number of storage streams are needed
2018-03-26 17:02:39 -04:00
josephschorr
49659fc3dd
Merge pull request #3034 from coreos-inc/fix-dockerfiles
...
Fix Dockerfiles for broken Go compile and remove temp memcache install
2018-03-26 11:38:36 -04:00
Joseph Schorr
46b0c075f6
Fix Dockerfiles for broken Go compile and remove temp memcache install
2018-03-26 11:38:14 -04:00
Joseph Schorr
110366f656
Retarget hard links pointing to deleted files by emitting the deleted file contents under the first hard link instance. This fixes a breakage in the squashed TAR where we were pointing hard links to missing data.
...
Fixes https://jira.coreos.com/browse/QUAY-885
2018-03-23 14:00:46 -04:00
josephschorr
7b5c22c699
Merge pull request #1205 from coreos-inc/apiimprov
...
Remove 404 when an entity is not a member of a team, but is a robot u…
2018-03-22 21:41:16 -04:00
josephschorr
b897d896d7
Merge pull request #2876 from coreos-inc/blocking-logs-fix
...
Decrease redis timeouts to within the WAMP message window
2018-03-22 21:40:47 -04:00