@@ -29,7 +29,6 @@ import { DATA_CONNECT_ERROR_CODE_MAPPING, DataConnectApiClient, FirebaseDataConn
2929import { FirebaseApp } from '../../../src/app/firebase-app' ;
3030import { ConnectorConfig , GraphqlOptions } from '../../../src/data-connect' ;
3131import { getMetricsHeader , getSdkVersion } from '../../../src/utils' ;
32- import { DataConnectService } from '../../../src/data-connect/data-connect' ;
3332
3433describe ( 'DataConnectApiClient' , ( ) => {
3534
@@ -311,7 +310,7 @@ describe('DataConnectApiClient', () => {
311310 expect ( resp . data . users ) . to . deep . equal ( TEST_RESPONSE . data . users ) ;
312311 expect ( stub ) . to . have . been . calledOnce . and . calledWith ( {
313312 method : 'POST' ,
314- url : `https://firebasedataconnect.googleapis.com/v1alpha/projects/test-project/locations/${ connectorConfig . location } /services/${ connectorConfig . serviceId } /connectors/${ DataConnectService . getId ( connectorConfig ) } :impersonateQuery` ,
313+ url : `https://firebasedataconnect.googleapis.com/v1alpha/projects/test-project/locations/${ connectorConfig . location } /services/${ connectorConfig . serviceId } /connectors/${ connectorConfig . location } - ${ connectorConfig . serviceId } :impersonateQuery` ,
315314 headers : EXPECTED_HEADERS ,
316315 data : {
317316 operationName : unauthenticatedOptions . operationName ,
@@ -330,7 +329,7 @@ describe('DataConnectApiClient', () => {
330329 . then ( ( ) => {
331330 expect ( stub ) . to . have . been . calledOnce . and . calledWith ( {
332331 method : 'POST' ,
333- url : `http://localhost:9399/v1alpha/projects/test-project/locations/${ connectorConfig . location } /services/${ connectorConfig . serviceId } /connectors/${ DataConnectService . getId ( connectorConfig ) } :impersonateQuery` ,
332+ url : `http://localhost:9399/v1alpha/projects/test-project/locations/${ connectorConfig . location } /services/${ connectorConfig . serviceId } /connectors/${ connectorConfig . location } - ${ connectorConfig . serviceId } :impersonateQuery` ,
334333 headers : EMULATOR_EXPECTED_HEADERS ,
335334 data : {
336335 operationName : unauthenticatedOptions . operationName ,
@@ -420,7 +419,7 @@ describe('DataConnectApiClient', () => {
420419 expect ( resp . data . users ) . to . deep . equal ( TEST_RESPONSE . data . users ) ;
421420 expect ( stub ) . to . have . been . calledOnce . and . calledWith ( {
422421 method : 'POST' ,
423- url : `https://firebasedataconnect.googleapis.com/v1alpha/projects/test-project/locations/${ connectorConfig . location } /services/${ connectorConfig . serviceId } /connectors/${ DataConnectService . getId ( connectorConfig ) } :impersonateMutation` ,
422+ url : `https://firebasedataconnect.googleapis.com/v1alpha/projects/test-project/locations/${ connectorConfig . location } /services/${ connectorConfig . serviceId } /connectors/${ connectorConfig . location } - ${ connectorConfig . serviceId } :impersonateMutation` ,
424423 headers : EXPECTED_HEADERS ,
425424 data : {
426425 operationName : unauthenticatedOptions . operationName ,
@@ -439,7 +438,7 @@ describe('DataConnectApiClient', () => {
439438 . then ( ( ) => {
440439 expect ( stub ) . to . have . been . calledOnce . and . calledWith ( {
441440 method : 'POST' ,
442- url : `http://localhost:9399/v1alpha/projects/test-project/locations/${ connectorConfig . location } /services/${ connectorConfig . serviceId } /connectors/${ DataConnectService . getId ( connectorConfig ) } :impersonateMutation` ,
441+ url : `http://localhost:9399/v1alpha/projects/test-project/locations/${ connectorConfig . location } /services/${ connectorConfig . serviceId } /connectors/${ connectorConfig . location } - ${ connectorConfig . serviceId } :impersonateMutation` ,
443442 headers : EMULATOR_EXPECTED_HEADERS ,
444443 data : {
445444 operationName : unauthenticatedOptions . operationName ,
0 commit comments