@@ -16,12 +16,16 @@ test('Can connect to Temporal Cloud using mTLS', async (t) => {
1616 return ;
1717 }
1818
19+ console . log (
20+ `Connecting to Temporal Cloud with mTLS: ${ address } __${ namespace } __${ clientCert ?. length } __${ clientKey ?. length } `
21+ ) ;
22+
1923 const connection = await Connection . connect ( {
2024 address,
2125 tls : {
2226 clientCertPair : {
23- crt : Buffer . from ( clientCert , 'base64' ) ,
24- key : Buffer . from ( clientKey , 'base64' ) ,
27+ crt : Buffer . from ( clientCert ) ,
28+ key : Buffer . from ( clientKey ) ,
2529 } ,
2630 } ,
2731 } ) ;
@@ -31,15 +35,16 @@ test('Can connect to Temporal Cloud using mTLS', async (t) => {
3135 address,
3236 tls : {
3337 clientCertPair : {
34- crt : Buffer . from ( clientCert , 'base64' ) ,
35- key : Buffer . from ( clientKey , 'base64' ) ,
38+ crt : Buffer . from ( clientCert ) ,
39+ key : Buffer . from ( clientKey ) ,
3640 } ,
3741 } ,
3842 } ) ;
3943 const nativeClient = new Client ( { connection : nativeConnection , namespace } ) ;
4044
4145 const taskQueue = `test-temporal-cloud-mtls-${ randomUUID ( ) } ` ;
4246 const worker = await Worker . create ( {
47+ namespace,
4348 workflowsPath : require . resolve ( './workflows' ) ,
4449 connection : nativeConnection ,
4550 taskQueue,
@@ -72,6 +77,8 @@ test('Can connect to Temporal Cloud using API Keys', async (t) => {
7277 return ;
7378 }
7479
80+ console . log ( `Connecting to Temporal Cloud with API Key: ${ address } __${ namespace } __${ apiKey ?. length } ` ) ;
81+
7582 const connection = await Connection . connect ( {
7683 address,
7784 apiKey,
@@ -88,6 +95,7 @@ test('Can connect to Temporal Cloud using API Keys', async (t) => {
8895
8996 const taskQueue = `test-temporal-cloud-api-key-${ randomUUID ( ) } ` ;
9097 const worker = await Worker . create ( {
98+ namespace,
9199 workflowsPath : require . resolve ( './workflows' ) ,
92100 connection : nativeConnection ,
93101 taskQueue,
0 commit comments