Skip to content

Commit

Permalink
Fix telemetry test regex (#1366)
Browse files Browse the repository at this point in the history
* fix telemetry regex

* Apply code review suggestions

* Apply code review suggestions

Co-authored-by: Jiri Kuncar <[email protected]>

Co-authored-by: Jiri Kuncar <[email protected]>
  • Loading branch information
skarimo and jirikuncar authored Mar 3, 2022
1 parent 182cc20 commit e70f648
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/api/v1/datadog/telemetry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestTelemetryHeaders(t *testing.T) {
assert.NoError(err)
gock.New(URL).
Get("integration/aws").
MatchHeader("User-Agent", "^datadog-api-client-go/\\d\\.\\d\\.\\d.*? \\(go .*?; os .*?; arch .*?\\)$").
MatchHeader("User-Agent", "^datadog-api-client-go\\/\\d+\\.\\d+\\.\\d+.*? \\(go .*?; os .*?; arch .*?\\)$").
Reply(299)
defer gock.Off()

Expand Down
2 changes: 1 addition & 1 deletion tests/api/v2/datadog/telemetry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestTelemetryHeaders(t *testing.T) {
assert.NoError(err)
gock.New(URL).
Get("dashboard/lists/manual/1234/dashboards").
MatchHeader("User-Agent", "^datadog-api-client-go/\\d\\.\\d\\.\\d.*? \\(go .*?; os .*?; arch .*?\\)$").
MatchHeader("User-Agent", "^datadog-api-client-go\\/\\d+\\.\\d+\\.\\d+.*? \\(go .*?; os .*?; arch .*?\\)$").
Reply(299)
defer gock.Off()

Expand Down

0 comments on commit e70f648

Please sign in to comment.