Skip to content

Commit

Permalink
introduce DEFAULT_DD_SITE constant
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Oct 20, 2023
1 parent 3302a76 commit 3005a8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/datadog/ci/ext/transport.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module Datadog
module CI
module Ext
module Transport
DEFAULT_DD_SITE = "datadoghq.com"

HEADER_DD_API_KEY = "DD-API-KEY"
HEADER_CONTENT_TYPE = "Content-Type"
HEADER_CONTENT_ENCODING = "Content-Encoding"
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/ci/transport/api/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Transport
module Api
module Builder
def self.build_ci_test_cycle_api(settings)
dd_site = settings.site || "datadoghq.com"
dd_site = settings.site || Ext::Transport::DEFAULT_DD_SITE
url = settings.ci.agentless_url ||
"https://#{Ext::Transport::TEST_VISIBILITY_INTAKE_HOST_PREFIX}.#{dd_site}:443"

Expand Down
2 changes: 2 additions & 0 deletions sig/datadog/ci/ext/transport.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module Datadog
module CI
module Ext
module Transport
DEFAULT_DD_SITE: "datadoghq.com"

HEADER_DD_API_KEY: "DD-API-KEY"

HEADER_CONTENT_TYPE: "Content-Type"
Expand Down

0 comments on commit 3005a8c

Please sign in to comment.