Hiro Asari
3b20120c72
Accept .atom
extension
...
And return Atom feed for builds.
Specs look different, because it needs to explicitly handle the common
case where the client sends `Accept: */*`.
2013-11-11 15:21:14 -05:00
Hiro Asari
8171d3915e
Add integration specs for Atom feed
...
These rudimentary specs do not test the correctness of
the Atom feed format.
2013-11-11 11:40:37 -05:00
Piotr Sarnacki
1503b87555
Require travis/testing explicitly
2013-11-08 11:05:55 +01:00
Piotr Sarnacki
58f1284244
Merge pull request #85 from travis-ci/insufficient-oauth-redirect
...
Redirect to web client on insufficient oauth scopes
2013-11-05 05:31:25 -08:00
Konstantin Haase
6f92f122b0
Merge pull request #90 from travis-ci/jk_remove_artifacts_endpoint
...
Remove deprecated artifacts endpoint
2013-11-05 04:23:04 -08:00
Josh Kalderimis
26edaf644f
remove deprecated artifacts endpoint
2013-11-05 01:05:21 +01:00
Josh Kalderimis
342df12b14
remove old workers endpoints
2013-11-04 19:24:17 +01:00
Piotr Sarnacki
87674f52bb
Redirect to web client on insufficient oauth scopes
2013-10-29 14:27:21 +01:00
Henrik Hodne
8f4dd0d2df
Respond with 422 if /auth/github does not get a token
...
Fix #77
2013-10-23 19:35:03 -05:00
Piotr Sarnacki
0681e54cf1
Run CORS middleware in development
2013-09-20 12:47:14 +02:00
Piotr Sarnacki
8d1a3b2bea
Bump travis-core (repos?member=:member fix)
2013-09-12 13:52:32 +02:00
Piotr Sarnacki
e587ef0b7f
Add nginx config with CORS support
2013-09-05 22:48:42 +02:00
Mathias Meyer
9d26844eaa
Add tests for /uptime.
2013-08-26 17:29:10 +02:00
Piotr Sarnacki
f19de9d134
Implement jobs/:id/cancel and builds/:id/cancel endpoints
2013-08-08 14:25:20 +02:00
Piotr Sarnacki
383d233d9e
Add missing spec for UserManager (when drop_token is true)
2013-08-02 13:18:54 +02:00
Piotr Sarnacki
3508f25bdf
Nullify logins and rename repos owner when updating/creating user
2013-07-10 01:38:10 +02:00
Piotr Sarnacki
b6a351c766
Convert params['ids'] to array
...
Services like find_builds can accept :ids as a param, but it needs to be
an array, string will be passed to find and converted into integer.
2013-07-09 15:18:31 +02:00
Josh Kalderimis
cf66b6bb6d
raise_error(Error) is deprecated
2013-07-08 13:38:50 +02:00
Mathias Meyer
162bf4e3ef
Merge branch 'master' into rkh-metrics
2013-06-18 09:51:13 +02:00
Piotr Sarnacki
29fb7292cb
Fix tests
2013-06-13 15:54:19 +02:00
Mathias Meyer
49015050c1
Merge branch 'master' into rkh-metrics
...
Conflicts:
Gemfile.lock
2013-06-10 08:23:42 +02:00
Henrik Hodne
5f1f189c74
Remove references to "result" in specs
...
This column has now been removed in favor of the state columns.
2013-05-23 15:48:41 +02:00
Mathias Meyer
c75f76aefb
Remove spec for auto-using custom middlewares.
2013-05-18 11:19:15 +02:00
Mathias Meyer
0cd89de38a
Merge branch 'master' into rkh-metrics
...
Conflicts:
Gemfile.lock
2013-05-09 13:37:28 +02:00
Piotr Sarnacki
cdabec540d
Fix scopes and access token specs
2013-05-08 14:11:03 +02:00
Piotr Sarnacki
3b299cfec7
Allow to pass required_params to token
...
required_params will be matched with actual params to check if the token
may be used for authorization. For example if { job_id: 44 } is passed
as a required param, the token will be rejected for GET /jobs/33
2013-05-08 14:11:03 +02:00
Piotr Sarnacki
56d61ed461
Allow to pass extra params for tokens
2013-05-08 14:11:02 +02:00
Piotr Sarnacki
ee64af14d5
Allow to specify more than one scope for an endpoint
2013-05-08 14:11:02 +02:00
Piotr Sarnacki
1340fdb316
Allow to pass additional responders to respond_with
2013-05-08 14:11:02 +02:00
Piotr Sarnacki
01356df26f
Implement expiring access tokens
2013-05-08 14:11:02 +02:00
Konstantin Haase
0d2188b5b2
fix specs
2013-04-24 16:59:26 +02:00
Piotr Sarnacki
be22ff6eda
Ensure that we properly handle 404 formats
2013-04-11 14:47:00 +02:00
Piotr Sarnacki
887c835bd4
Use client_domain instead of domain for url in CC.xml
2013-03-25 16:53:20 +01:00
Piotr Sarnacki
15dd13ba02
Merge branch 'pr/46'
2013-03-25 16:40:08 +01:00
Piotr Sarnacki
f3ceee9b28
Always set content_type in responder
2013-03-25 16:39:37 +01:00
Andre Arko
637af8aa44
oh and the spec cares too
2013-03-25 16:16:42 +01:00
Andre Arko
c57e9cbcc6
valid URLs in cc.xml Project webUrl
2013-03-25 16:09:37 +01:00
Andre Arko
6940532994
Ensure proper content type for cc.xml
2013-03-25 16:09:15 +01:00
Piotr Sarnacki
61142c7cf6
Return 404 unless we can find API builder for resource
...
In order to protect us from rendering a resource simply converted to
json, without processing it with API data class, this commit changes
JSON responder behavior to render 404 if we can't find associated data
class. The only exception to that rule is when resource is already a
Hash, meaning that it was processed before - we sometimes return for
example simple Hash responses like { result: true }.
The Hash exception could allow to accidentally pass resource.as_json to
responder, but in travis-ci/travis-support@124b8b6 I disabled default
as_json method on AR::Base classes, so the risk of such mistake is
lowered.
2013-03-24 19:49:28 +01:00
Konstantin Haase
92be2a3fcd
fix test for new autosync
2013-03-20 19:53:38 +01:00
Piotr Sarnacki
705927ff74
Don't error out if xml is requested with something else than repo
2013-03-12 12:08:43 +01:00
Piotr Sarnacki
c0b9a468d6
Forgot to delete one of the tests
2013-03-11 23:58:58 +01:00
Piotr Sarnacki
54a6926aaf
Properly handle non existent resources
...
This commit changes travis-api to always return 404 response if resource
is not available. Previously we were returning image/png with "unknown"
status instead if user used "*/*" Accept header, which was confusing.
2013-03-11 23:52:57 +01:00
Piotr Sarnacki
04bb751b02
When serving image, return proper Last-Modified header
2013-03-11 20:54:24 +01:00
Piotr Sarnacki
5345ef818e
Use version from each of the accept headers, not only first one
2013-02-25 17:28:24 +01:00
Piotr Sarnacki
5f91706e64
Allow to pass version as Accept param
2013-02-25 17:28:24 +01:00
Piotr Sarnacki
36783e6359
Handle chunked=true param in Accept header
2013-02-25 17:28:24 +01:00
Piotr Sarnacki
65b1e6b988
Respond with 406 if we can't return requested formats
2013-02-25 17:27:56 +01:00
Piotr Sarnacki
212eb6d9d3
Allow passing more than one mime type in Accept
2013-02-25 17:27:56 +01:00
Piotr Sarnacki
1d7be066cb
Make it easy to check if Accept::Entry accepts given mime type
2013-02-25 17:27:56 +01:00