Skip to content

Commit

Permalink
implement more code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan A committed Nov 23, 2017
1 parent 13f8820 commit b6e4cf2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _meta/beat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ apm-server:
# Defines the host and port the server is listening on
host: "localhost:8200"

frontend.enabled: true
frontend.enabled: false

# Authorization token to be checked. If a token is set here the agents must
# send their token in the following format: Authorization: Bearer <secret-token>
Expand Down
2 changes: 1 addition & 1 deletion apm-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ apm-server:
# Defines the host and port the server is listening on
host: "localhost:8200"

frontend.enabled: true
frontend.enabled: false

# Authorization token to be checked. If a token is set here the agents must
# send their token in the following format: Authorization: Bearer <secret-token>
Expand Down
2 changes: 1 addition & 1 deletion beater/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const (
BackendErrorsURL = "/v1/errors"
FrontendErrorsURL = "/v1/client-side/errors"
HealthCheckURL = "/healthcheck"
SourcemapsURL = "/sourcemaps"
SourcemapsURL = "/v1/client-side/sourcemaps"

rateLimitCacheSize = 1000
rateLimitBurstMultiplier = 2
Expand Down
4 changes: 2 additions & 2 deletions tests/system/test_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def test_sourcemap_upload(self):
'sourcemap',
'bundle.min.map'))
file = open(path)
r = requests.post("http://localhost:8200/sourcemaps",
r = requests.post("http://localhost:8200/v1/client-side/sourcemaps",
files={'sourcemap': file},
data={'app_version': 'bar',
'bundle_filepath': 'bundle.min.map',
Expand All @@ -162,7 +162,7 @@ def test_sourcemap_upload_fail(self):
'sourcemap',
'bundle.min.map'))
file = open(path)
r = requests.post("http://localhost:8200/sourcemaps",
r = requests.post("http://localhost:8200/v1/client-side/sourcemaps",
files={'sourcemap': file})
assert r.status_code == 400, r.status_code

Expand Down

0 comments on commit b6e4cf2

Please sign in to comment.