Vitali Tatarintev
6a6411938a
Change `be_success` to `be_successful` in specs
...
Fixes deprecation warning:
```
DEPRECATION WARNING: The success? predicate is deprecated and
will be removed in Rails 6.0.
Please use successful? as provided by Rack::Response::Helpers.
```
2019-08-19 14:40:56 +02:00
Peter Leitzen
7b87ed1499
Cleanup usages of `JSON.parse` in specs
...
Prefer `json_response` where applicable.
2019-07-16 08:03:49 +00:00
gfyoung
93a44e135b
Add some frozen string to spec/**/*.rb
...
Adds frozen string to the following:
* spec/bin/**/*.rb
* spec/config/**/*.rb
* spec/controllers/**/*.rb
xref https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-04-15 10:17:05 +00:00
blackst0ne
b44a2c801a
Update specs to rails5 format
...
Updates specs to use new rails5 format.
The old format:
`get :show, { some: params }, { some: headers }`
The new format:
`get :show, params: { some: params }, headers: { some: headers }`
2018-12-19 10:04:31 +11:00
Mario de la Ossa
eaada9d706
use Gitlab::UserSettings directly as a singleton instead of including/extending it
2018-02-02 18:39:55 +00:00
Jacopo
2f40dac352
Refactor `have_http_status` into `have_gitlab_http_status` in the specs
2017-10-20 10:13:18 +02:00
Pawel Chojnacki
063f03b9d7
Differentiate shared test context using options hash instead of subject.
...
+ fix typos, and capitalization
+ point configuration to `gitlab.rb` as well
2017-07-10 17:00:43 +02:00
Pawel Chojnacki
2951a09967
Add tests for token auth.
2017-07-06 15:43:57 +02:00
Pawel Chojnacki
6d60e265b1
Add spaces between test phases
...
+ fix wrong test setup
2017-07-05 00:46:12 +02:00
Pawel Chojnacki
c1b043bdb7
Bring back healthcheck token access to monitoring resources, but mark this as deprecated
2017-07-05 00:46:11 +02:00
Pawel Chojnacki
18521584bd
Remove the need to use health check token
...
in favor of whitelist that will be used to
control the access to monitoring resources
2017-07-05 00:46:11 +02:00
Douglas Barbosa Alexandre
0fcb8ce7d6
Bump health_check gem to version 2.6.0
2017-03-03 16:35:20 -03:00
Grzegorz Bizon
632c2939bb
Revert "Merge branch 'revert-9cac0317' into 'master'
"
...
This reverts commit c20934869f
, reversing
changes made to 4b7ec44b91
.
2017-01-23 16:35:24 +01:00
Grzegorz Bizon
baeaa97ef4
Revert "Merge branch 'dont-persist-application-settings-in-test-env' into 'master'"
...
This reverts merge request !8573
2017-01-21 22:55:35 +00:00
Rémy Coutable
f6cc29ed83
Don't persist ApplicationSetting in test env
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-15 01:07:29 -05:00
Z.J. van de Weg
abca19da8b
Use HTTP matchers if possible
2016-06-27 20:10:42 +02:00
DJ Mountney
c8f23bd2ed
Support token header for health check token, and general cleanup of the health_check feature.
2016-05-11 17:27:08 -07:00
DJ Mountney
0e0caf4d17
Add tests for the health check feature
2016-05-10 16:19:16 -07:00