summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-08-20 18:12:28 +0000
committerMayra Cabrera <mcabrera@gitlab.com>2019-08-20 18:12:28 +0000
commite632ae80845f849f93e4d85ef9f836a4792844c9 (patch)
tree5715c29c7a6b6ed93e16f8ab0f59b229af3ba646 /spec/lib
parenta493cccdda6d2ab0fd21e60a144504a6cf6747ee (diff)
downloadgitlab-ce-e632ae80845f849f93e4d85ef9f836a4792844c9.tar.gz
Standardize remote_ip and path keys for auth.log and api_json.log
Current `auth.log` uses `fullpath` and `ip`, while `api_json.log` uses `remote_ip` and `path` for the same fields. Let's standardize these namings to make it easier for people working with the data. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66167
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/action_rate_limiter_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/action_rate_limiter_spec.rb b/spec/lib/gitlab/action_rate_limiter_spec.rb
index 8dbad32dfb4..8b510a475d2 100644
--- a/spec/lib/gitlab/action_rate_limiter_spec.rb
+++ b/spec/lib/gitlab/action_rate_limiter_spec.rb
@@ -74,9 +74,9 @@ describe Gitlab::ActionRateLimiter, :clean_gitlab_redis_cache do
{
message: 'Action_Rate_Limiter_Request',
env: type,
- ip: '127.0.0.1',
+ remote_ip: '127.0.0.1',
request_method: 'GET',
- fullpath: fullpath
+ path: fullpath
}
end