Commit graph

10 commits

Author SHA1 Message Date
Robert Speicher
a6fbd8648e Stub ForkedStorageCheck.storage_available? by default in all specs
Add `:broken_storage` metadata to examples to disable this behavior only
when necessary.
2017-08-22 13:06:25 -04:00
Bob Van Landuyt
ee603a0089 Allow a failure_wait_time of 0 for storage access
This allows testing every storage attempt after a failure. Which could
be useful for tests
2017-08-16 14:15:50 +02:00
Rémy Coutable
1b413bd62f Enable Timecop safe mode
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-08-11 14:53:17 +02:00
Robert Speicher
c8b802471b Enable the RSpec/HookArgument cop and auto-correct offenses 2017-08-10 19:29:42 -04:00
Bob Van Landuyt
4b34720c0c Use ruby's File.stat to check storage availability 2017-08-04 15:38:50 +02:00
Bob Van Landuyt
0dd4c306ca Only track accessibility once 2017-08-04 15:38:50 +02:00
Bob Van Landuyt
022c38e63e Use keys instead of scan_each 2017-08-04 15:38:49 +02:00
Bob Van Landuyt
3899d07f9e Move hostname to Gitlab::Environment 2017-08-04 15:38:49 +02:00
Bob Van Landuyt
0fa94a0ddd Make sure the check works for paths with spaces. 2017-08-04 15:38:49 +02:00
Bob Van Landuyt
3598e60bf2 Add a Circuitbreaker for storage paths 2017-08-04 15:38:48 +02:00