Skip to content

Commit

Permalink
[ci-visibility] Use new endpoint for code coverage (#3157)
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-fernandez authored and uurien committed Jun 1, 2023
1 parent 21367cd commit ceeb09e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion integration-tests/ci-visibility.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ testFrameworks.forEach(({

const [coveragePayload] = coverageRequest.payload
assert.notProperty(coverageRequest.headers, 'dd-api-key')
assert.propertyVal(coverageRequest.headers, 'x-datadog-evp-subdomain', 'event-platform-intake')
assert.propertyVal(coverageRequest.headers, 'x-datadog-evp-subdomain', 'citestcov-intake')
assert.propertyVal(coveragePayload, 'name', 'coverage1')
assert.propertyVal(coveragePayload, 'filename', 'coverage1.msgpack')
assert.propertyVal(coveragePayload, 'type', 'application/msgpack')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Writer extends BaseWriter {
if (this._evpProxyPrefix) {
options.path = `${this._evpProxyPrefix}/api/v2/citestcov`
delete options.headers['dd-api-key']
options.headers['X-Datadog-EVP-Subdomain'] = 'event-platform-intake'
options.headers['X-Datadog-EVP-Subdomain'] = 'citestcov-intake'
}

log.debug(() => `Request to the intake: ${safeJSONStringify(options)}`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AgentlessCiVisibilityExporter extends CiVisibilityExporter {
this._url = url || new URL(`https://citestcycle-intake.${site}`)
this._writer = new Writer({ url: this._url, tags })

this._coverageUrl = url || new URL(`https://event-platform-intake.${site}`)
this._coverageUrl = url || new URL(`https://citestcov-intake.${site}`)
this._coverageWriter = new CoverageWriter({ url: this._coverageUrl })

this._apiUrl = url || new URL(`https://api.${site}`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('CI Visibility Coverage Writer', () => {

url = {
protocol: 'https:',
hostname: 'event-platform-intake.datadog.com'
hostname: 'citestcov-intake.datadog.com'
}

log = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ describe('CI Visibility Agentless Exporter', () => {
const site = 'd4tad0g.com'
const agentlessExporter = new AgentlessCiVisibilityExporter({ site, tags: {} })
expect(agentlessExporter._url.href).to.equal(`https://citestcycle-intake.${site}/`)
expect(agentlessExporter._coverageUrl.href).to.equal(`https://event-platform-intake.${site}/`)
expect(agentlessExporter._coverageUrl.href).to.equal(`https://citestcov-intake.${site}/`)
})
})
})

0 comments on commit ceeb09e

Please sign in to comment.