Skip to content

Commit

Permalink
[Synthetics] Push cloud and deployment id to service (#155660)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 authored Apr 25, 2023
1 parent b16736b commit 8d8c2aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,11 @@ describe('callAPI', () => {
manifestUrl: 'http://localhost:8080/api/manifest',
tls: { certificate: 'test-certificate', key: 'test-key' } as any,
},
{ isDev: true, stackVersion: '8.7.0' } as UptimeServerSetup
{
isDev: true,
stackVersion: '8.7.0',
cloud: { cloudId: 'test-id', deploymentId: 'deployment-id' },
} as UptimeServerSetup
);

apiClient.locations = testLocations;
Expand All @@ -462,6 +466,8 @@ describe('callAPI', () => {
stack_version: '8.7.0',
license_level: 'trial',
license_issued_to: '2c515bd215ce444441f83ffd36a9d3d2546',
cloud_id: 'test-id',
deployment_id: 'deployment-id',
},
headers: {
'x-kibana-version': '8.7.0',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ export class ServiceAPIClient {
is_edit: isEdit,
license_level: license.type,
license_issued_to: license.issued_to,
deployment_id: this.server.cloud?.deploymentId,
cloud_id: this.server.cloud?.cloudId,
},
headers: authHeader,
httpsAgent: this.getHttpsAgent(baseUrl),
Expand Down

0 comments on commit 8d8c2aa

Please sign in to comment.