@@ -38,7 +38,7 @@ describe("public token API key routing", () => {
3838 } ) ;
3939
4040 it ( "uses server minting for additional keys" , async ( ) => {
41- const key = "tr_prod_ak_0123456789abcdefghijklmn " ;
41+ const key = "tr_prod_sk_0123456789abcdefghijklmn " ;
4242 const token = await apiClientManager . runWithConfig ( { baseURL : baseUrl , accessToken : key } , ( ) =>
4343 auth . createPublicToken ( {
4444 scopes : { read : { runs : [ "run_123" ] } } ,
@@ -63,7 +63,7 @@ describe("public token API key routing", () => {
6363 } ) ;
6464
6565 it ( "server-mints trigger tokens with one-time-use semantics" , async ( ) => {
66- const key = "tr_dev_ak_0123456789abcdefghijklmn " ;
66+ const key = "tr_dev_sk_0123456789abcdefghijklmn " ;
6767 await apiClientManager . runWithConfig ( { baseURL : baseUrl , accessToken : key } , ( ) =>
6868 auth . createTriggerPublicToken ( [ "task-one" , "task-two" ] , { multipleUse : true } )
6969 ) ;
@@ -75,7 +75,7 @@ describe("public token API key routing", () => {
7575 } ) ;
7676
7777 it ( "server-mints batch trigger tokens for additional keys" , async ( ) => {
78- const key = "tr_stg_ak_0123456789abcdefghijklmn " ;
78+ const key = "tr_stg_sk_0123456789abcdefghijklmn " ;
7979 await apiClientManager . runWithConfig ( { baseURL : baseUrl , accessToken : key } , ( ) =>
8080 auth . createBatchTriggerPublicToken ( "batch-task" , {
8181 expirationTime : "2h" ,
@@ -136,7 +136,7 @@ describe("public token API key routing", () => {
136136 [ "an empty scopes object" , { } ] ,
137137 [ "a scope group with nothing selected" , { read : { } } ] ,
138138 ] ) ( "rejects %s clearly for additional keys" , async ( _label , scopes ) => {
139- const key = "tr_prod_ak_0123456789abcdefghijklmn " ;
139+ const key = "tr_prod_sk_0123456789abcdefghijklmn " ;
140140 const promise = apiClientManager . runWithConfig ( { baseURL : baseUrl , accessToken : key } , ( ) =>
141141 auth . createPublicToken ( scopes === undefined ? undefined : { scopes } )
142142 ) ;
@@ -152,7 +152,7 @@ describe("public token API key routing", () => {
152152 const promise = apiClientManager . runWithConfig (
153153 {
154154 baseURL : baseUrl ,
155- accessToken : "tr_prod_ak_0123456789abcdefghijklmn " ,
155+ accessToken : "tr_prod_sk_0123456789abcdefghijklmn " ,
156156 } ,
157157 ( ) => auth . createPublicToken ( { scopes : { read : { runs : true } } } )
158158 ) ;
0 commit comments