Commit 0a3f398a authored by Stan Hu's avatar Stan Hu

Rename usage_ping URL to usage_data

parent 150aee0e
......@@ -29,8 +29,8 @@ class GitlabUsagePingWorker
end
def data
usage_data = { version: Gitlab::VERSION }
usage_data[:active_users] = current_active_user_count
usage_data = { version: Gitlab::VERSION,
active_users: current_active_user_count }
license = License.current
if license
......@@ -48,6 +48,6 @@ class GitlabUsagePingWorker
end
def url
'https://version.gitlab.com/usage_ping'
'https://version.gitlab.com/usage_data'
end
end
......@@ -22,7 +22,7 @@ describe GitlabUsagePingWorker do
it "sends POST request" do
stub_application_setting(usage_ping_enabled: true)
stub_request(:post, "https://version.gitlab.com/usage_ping").
stub_request(:post, "https://version.gitlab.com/usage_data").
to_return(status: 200, body: '', headers: {})
expect(subject).to receive(:try_obtain_lease).and_return(true)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment