Commit Graph

195 Commits

Author SHA1 Message Date
Ana Rosas
510fb8b146 Remove old code references from v3 endpoints 2016-07-20 11:17:51 +02:00
Renée Hendricksen
652439226a Merge branch 'master' into jc-v3-env-vars 2016-07-14 19:57:40 -04:00
Renée Hendricksen
58cd17158c decrypt the public values for return and fix the tests 2016-07-14 17:24:49 -04:00
Renée Hendricksen
42b1661107 already required in the spec helper now 2016-07-12 19:27:04 -04:00
Renée Hendricksen
16968f445f freeze time for the whole suite so all the Time.now calls sprinkled through the old tests won't error if there is a delay on Travis CI 2016-07-12 19:23:24 -04:00
Renée Hendricksen
2783a69f89 encrpted value and working tests 2016-07-12 14:12:46 -04:00
Renée Hendricksen
ac7e610510 Merge branch 'master' into jc-v3-env-vars 2016-07-05 11:44:28 -04:00
Igor Wiedler
d84d3983b8 update rack-attack to 5.0.0.beta1, use safelist/blocklist terminology 2016-07-05 12:58:58 +02:00
Joe Corcoran
4b14f17cc5 Fix service specs 2016-07-01 23:55:49 -04:00
Joe Corcoran
871b915515 Add env vars endpoints
This adds API V3 endpoints for querying, creating, modifying and
deleting environment variables.

It has no concept of encryption yet and should be considered a work in
progress.

We should also talk about the slightly off-track approach in the
EnvVars::Create service – maybe there's a way to standardise the
querying and rendering for post requests?

2016-07-01 23:55:49 -04:00
Piotr Sarnacki
32dd8d9f93 Mark current_build as experimental 2016-06-22 14:19:31 +02:00
Sven Fuchs
a6658fa4d3 get rid of spec_helper_core 2016-06-19 14:35:54 +02:00
Ana Rosas
bf20506e09 Merge branch 'master' into ar-enqueue-cancelling-jobs-builds 2016-06-15 16:15:05 +02:00
Ana Rosas
41c274b222 Remove 'type' from payload 2016-06-15 14:36:59 +02:00
Ana Rosas
5949429f75 Enqueue restart message on job/restart v3 endpoint 2016-06-14 17:39:29 +02:00
Ana Rosas
a2d1322b60 Enqueue cancel message on job/cancel v3 endpoint 2016-06-14 17:24:05 +02:00
Ana Rosas
bb7260bc9e Enqueue restart message on build restart v3 endpoint 2016-06-14 16:46:29 +02:00
Ana Rosas
e097c8889e Enqueue cancel message on build cancel v3 endpoint 2016-06-14 15:15:59 +02:00
Renée Hendricksen
9ed43941fd updates for v3 approved by rkh and spruce up the model tests 2016-06-14 15:11:58 +02:00
Joe Corcoran
eb0eab5967 Move settings to top level of response
To better accommodate nested responses.
2016-06-08 17:18:24 +02:00
Joe Corcoran
daf534edb7 Don't overwrite settings with defaults
Also changes the way the JSON fields are set to force ActiveRecord
to recognise the changes. Is there a better way?
2016-06-08 17:13:05 +02:00
Joe Corcoran
fba9a87c39 Add settings to API V3
This adds /repo/{repository.id}/settings endpoints for reading
and updating repo settings.

Main points:

1. Sets up Settings as a first class resource instead of as an
   attribute of Repository
2. Adds new meta-programmed method to Query for accessing all
   prefixed params as a hash.
2016-06-08 15:59:52 +02:00
Christopher Weyand
799d757625 cron representation change tests 2016-05-30 11:26:06 +02:00
Piotr Sarnacki
659dc4d992 Add current_build to repositories payload
This commit adds current_build (which is based on
repositories.current_build_id) to repositories payload. It also adds
ability to sort by current_build.
2016-05-17 14:11:09 +02:00
Piotr Sarnacki
13d9c97501 Revert "Merge pull request #257 from travis-ci/ps-current-build"
This reverts commit 52bebad05c, reversing
changes made to 9d386efa4c.
2016-05-11 17:13:40 +02:00
Piotr Sarnacki
c9b93982c9 Add current_build to repositories payload
current_build is the most recent build that is either completed or
running
2016-05-11 16:55:47 +02:00
Steffen
f186c16669 Merge branch 'master' into cronjobs 2016-04-22 10:33:40 +02:00
carlad
7b5c11fca6 add specs, update error names 2016-04-20 14:31:08 +02:00
carlad
63bef443e8 update build_cancel spec 2016-04-20 11:55:03 +02:00
Steffen
13aa741e57 Merge branch 'master' into cronjobs 2016-04-18 09:42:36 +02:00
carlad
00aaf32b1e add branch_name for request 2016-04-15 17:22:41 +02:00
Steffen Kötte
0b2585de45 remove cronjobs and disallow creating if branch does no longer exist on GitHub 2016-04-12 11:33:30 +02:00
Steffen
7922ca8e84 Merge branch 'master' into cronjobs 2016-04-05 15:23:03 +02:00
Ana Rosas
0e8fe08f7c Update limit method and finish test 2016-04-04 16:13:14 +02:00
carlad
24b2abdfd0 add .rspec for formatting, add new test (still broken) 2016-03-31 17:15:43 +02:00
Steffen Kötte
9734e7133f fix feature flag for_branch endpoint 2016-03-29 16:51:00 +02:00
Jonas Chromik
ca82725e5e move cron jobs feature flag to permissions 2016-03-22 13:48:51 +01:00
Jonas Chromik
fe76d38230 Merge branch 'master' into cronjobs 2016-03-21 17:08:33 +01:00
carlad
6b145e6f06 update lint service, update spec 2016-03-21 15:39:14 +01:00
Steffen Kötte
7215151403 adjust new test to include cron permission 2016-03-21 10:37:06 +01:00
Steffen Kötte
ac0012b0a2 Merge commit '8a050a468c77f2ad8c5faa99864c0bd7d61b08a0' into cronjobs
# Conflicts:
#	Gemfile
2016-03-21 10:32:46 +01:00
carlad
f940bffe3f more work on lint endpoint 2016-03-18 16:43:18 +01:00
carlad
643ca01ee5 user repo2 again 2016-03-14 13:24:01 +01:00
carlad
156a6ebb98 set repo id 2016-03-14 13:04:34 +01:00
carlad
74b43d5e89 use repo2 2016-03-14 12:58:46 +01:00
carlad
087788757f add repo.id to spec 2016-03-14 12:56:01 +01:00
carlad
5cb5fdb8d6 update spec to create additional repo for sorting test 2016-03-14 12:14:10 +01:00
Christopher Weyand
6c839aebec feature flag test 2016-03-14 11:03:41 +01:00
carlad
3a97ac8bfa add spec for sort by default_branch.last_build 2016-03-11 15:17:06 +01:00
Hiro Asari
73f724c58c Add more specs for /job/:job_id/debug
We now rely on https://github.com/travis-ci/travis-core/pull/519.
2016-03-07 16:36:33 -10:00