Robert Schilling
3378642504
Grapify runners API
2016-11-10 11:09:08 +01:00
tiagonbotelho
1d268a89de
adds second batch of tests changed to active tense
2016-08-09 15:11:39 +01:00
Z.J. van de Weg
abca19da8b
Use HTTP matchers if possible
2016-06-27 20:10:42 +02:00
Lin Jen-Shin
6c500034f4
Merge branch 'prefer-assign_to' into feature/runner-lock-on-project
...
* prefer-assign_to:
Give 409 Conflict whenever the runner was already enabled
We're checking return value rather than rescuing exceptions
Prefer Runner#assign_to instead of creating directly
2016-06-14 23:05:33 +08:00
Lin Jen-Shin
1b8f52d920
Avoid enabling locked runners. Give 403 in this case
2016-06-14 22:58:38 +08:00
Lin Jen-Shin
f74f423860
Give 409 Conflict whenever the runner was already enabled
2016-06-14 22:25:11 +08:00
Lin Jen-Shin
781d35c191
Prefer attributes_for_keys so that it ignores nils
...
Also add a test for setting locked.
2016-06-09 16:00:24 +08:00
Grzegorz Bizon
da8b72d453
Extend runner options that are configurable via API
2016-05-19 22:01:53 +02:00
Robert Speicher
de944c914b
Add traits for each access_level to ProjectMember factory
2016-03-06 16:53:22 -05:00
Tomasz Maczukin
acfe25edc0
Refactorize `ci_runner` factory and `let` definitions in runners API spec
2016-02-19 13:18:49 +01:00
Tomasz Maczukin
f8f492e589
Remove unnecessary parameters
2016-02-19 13:18:49 +01:00
Tomasz Maczukin
a5540b385d
Modify expectations for update runner feature
2016-02-19 13:18:48 +01:00
Tomasz Maczukin
d38322b895
Change `.map{...}.inject{...}` to `any?{...}` for searching shared runners
2016-02-19 13:18:48 +01:00
Tomasz Maczukin
957c4de9b1
Reorganize `let` statements in spec/requests/api/runners_spec.rb
2016-02-19 13:18:48 +01:00
Tomasz Maczukin
b36116f9ad
Move :runner_id param to POST body when enabling specific runner in project
2016-02-19 13:18:48 +01:00
Tomasz Maczukin
dc182dc50e
Add some modifications to spec/requests/api/runners_spec.rb
2016-02-19 13:18:48 +01:00
Tomasz Maczukin
36e7ffea5d
Fix runners filtering
2016-02-19 13:18:47 +01:00
Tomasz Maczukin
16b3368af3
Fix runners API spec
2016-02-19 13:18:47 +01:00
Tomasz Maczukin
81ced6f55b
Split `/runners` entrypoint to `/runners` and `/runners/all`
2016-02-19 13:18:47 +01:00
Tomasz Maczukin
53f775ae6d
Fix runners filtering in API
2016-02-19 13:18:46 +01:00
Tomasz Maczukin
d42ced44d9
Add feature to enable/disable runner in project
2016-02-19 13:18:46 +01:00
Tomasz Maczukin
128be3c010
Add basic runners management API
...
- add feature to list runners
- add feature to show runners details
- add feature to delete runner
- add feature to update runner
2016-02-19 13:18:46 +01:00