Commit Graph

2096 Commits

Author SHA1 Message Date
Joe Corcoran
316947b7c0 Add simplest log endpoint
Just an excuse to get all the boilerplate classes in place :)
2016-07-19 18:10:34 +02:00
Renée Hendricksen
a45d53f73c Merge pull request #279 from travis-ci/jc-v3-env-vars
[WIP] Add environment variable endpoints
2016-07-14 20:02:24 -04:00
Renée Hendricksen
652439226a Merge branch 'master' into jc-v3-env-vars 2016-07-14 19:57:40 -04:00
Renée Hendricksen
b31301ac1f Merge pull request #292 from travis-ci/rlh_cleanup3
use the new method
2016-07-14 19:54:25 -04:00
Renée Hendricksen
48e4a2c589 use travis settings for encrypted columns 2016-07-14 17:47:17 -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
01893ba62b Merge pull request #300 from travis-ci/fix_time_dependent_test
Fix Time Dependent Tests
2016-07-13 10:10:45 -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
c10145cc93 builds occasionally fail when the timestamps are a second off, this should fix that 2016-07-12 17:38:55 -04:00
Renée Hendricksen
35ae19c3a0 Merge branch 'jc-v3-env-vars' into rlh_cleanup3 2016-07-12 17:08:10 -04:00
Renée Hendricksen
8cdbca925b Merge branch 'master' into jc-v3-env-vars 2016-07-12 17:07:51 -04:00
Renée Hendricksen
2783a69f89 encrpted value and working tests 2016-07-12 14:12:46 -04:00
Ana Rosas
40bff028f3 Merge pull request #299 from travis-ci/ar-fix-requests-endpoint-params
Handle build and job restarts on /requests
2016-07-12 09:17:37 -05:00
Ana Rosas
8b7a589018 Merge branch 'master' into ar-fix-requests-endpoint-params 2016-07-12 08:51:04 -05:00
Piotr Sarnacki
87a069863a Merge pull request #297 from travis-ci/ps-fix-v3-enable-repo
Upload SSL Key to GitHub when activating private repository
2016-07-12 11:37:13 +02:00
Piotr Sarnacki
14ea592cd7 Upload SSL Key to GitHub when activating private repository 2016-07-12 11:28:35 +02:00
Ana Rosas
54e9d2fd06 Get type of model in order to call correct restart event 2016-07-11 15:20:34 -05:00
Ana Rosas
f544f3b15a Requests endpoint receives build_id and job_id 2016-07-11 15:14:30 -05:00
Ana Rosas
a5480fb097 Merge pull request #298 from travis-ci/ar-fix-requests-endpoint
Fixes /requests endpoint
2016-07-11 14:44:36 -05:00
Ana Rosas
b234ad73be Use repo owner instead of current user 2016-07-11 14:29:05 -05:00
Ana Rosas
2ab8af6659 Use build:restart event 2016-07-11 14:29:05 -05:00
Ana Rosas
564e95be6b Use params instead of payload and return error message 2016-07-11 14:29:04 -05:00
Renée Hendricksen
1a36fc6195 Merge branch 'jc-v3-env-vars' into rlh_cleanup3 2016-07-11 15:14:15 -04:00
Renée Hendricksen
f8b8ef54a9 Merge branch 'master' into rlh_cleanup3 2016-07-11 15:13:24 -04:00
Renée Hendricksen
3fb7c35286 copy pasta fix 2016-07-07 01:30:35 -04:00
Renée Hendricksen
f63bb1c6a2 if this logic isn't needed we should take it out later 2016-07-07 01:16:39 -04:00
Renée Hendricksen
f1d7305e9d Merge branch 'master' into jc-v3-env-vars 2016-07-07 00:41:00 -04:00
Renée Hendricksen
b94d9c8637 use the new method 2016-07-07 00:31:35 -04:00
Konstantin Haase
f7f6478fa4 indentation 2016-07-06 10:56:14 +02:00
Renée Hendricksen
21f445ad64 Merge branch 'master' into jc-v3-env-vars 2016-07-05 18:02:29 -04:00
Renée Hendricksen
1ec8dba7e4 fix the tests 2016-07-05 13:36:31 -04:00
Ana Rosas
1d7bc10ed9 Merge pull request #291 from travis-ci/ag-ar-restart-in-request-endpoint
Use new restart service on request endpoint
2016-07-05 10:50:58 -05:00
Renée Hendricksen
ac7e610510 Merge branch 'master' into jc-v3-env-vars 2016-07-05 11:44:28 -04:00
Ana Rosas
db193cb541 Use new restart service on request endpoint 2016-07-05 10:25:54 -05:00
Igor
ff7d1dbfdd Merge pull request #290 from travis-ci/igor-update-rack-attack
Update rack-attack to 5.0.0.beta1
2016-07-05 13:11:59 +02:00
Igor
237f270708 Merge pull request #289 from travis-ci/igor-safelist-github-ips
safelist github IP range in Rack::Attack
2016-07-05 13:11:19 +02:00
Igor Wiedler
50b78a1458 Merge branch 'igor-safelist-github-ips' into igor-update-rack-attack 2016-07-05 13:03:05 +02:00
Igor Wiedler
79c14d697e only create/allocate GitHub CIDR object once 2016-07-05 13:02:00 +02:00
Igor Wiedler
d84d3983b8 update rack-attack to 5.0.0.beta1, use safelist/blocklist terminology 2016-07-05 12:58:58 +02:00
Igor Wiedler
a210cf8661 support nil ip 2016-07-05 12:46:32 +02:00
Igor Wiedler
0d90c21dbd require netaddr instead of cidr 2016-07-05 12:39:44 +02:00
Igor Wiedler
7e8b65a311 correct test case for GitHub IP check 2016-07-05 12:39:32 +02:00
Igor Wiedler
e6d7607916 safelist github IP range in Rack::Attack 2016-07-05 12:30:10 +02:00
Konstantin Haase
c1de919852 Don't run Rack::Attack for Enterprise. (#287)
On enterprise, the reverse proxy is not correctly set up, and therefore the client IP address not passed through properly. For that reason, all requests look like they originate from the same client, and if one gets blocked, everyone gets blocked.
2016-07-05 11:46:33 +02:00
Renée Hendricksen
7d52b06533 Merge branch 'jc-v3-env-vars' of github.com:travis-ci/travis-api into jc-v3-env-vars 2016-07-01 23:56:09 -04:00
Joe Corcoran
829366a554 Fix duplicate lines from rebase 2016-07-01 23:55:49 -04:00
Joe Corcoran
4b14f17cc5 Fix service specs 2016-07-01 23:55:49 -04:00
Joe Corcoran
f5bc526f25 Refactor repeated pattern into extracted method
Seems like we'll be checking login status before finding a resource
a lot, so here's a standard way to do it.
2016-07-01 23:55:49 -04:00
Joe Corcoran
1a07e199b5 Better style in error handling 2016-07-01 23:55:49 -04:00