@@ -29,7 +29,7 @@ describe('detect-region: probeRegion auth style fallback', () => {
2929 it ( 'succeeds when endpoint only accepts Bearer token' , async ( ) => {
3030 server = createMockServer ( {
3131 routes : {
32- '/v1/api/openplatform/coding_plan /remains' : ( req ) => {
32+ '/v1/token_plan /remains' : ( req ) => {
3333 if ( req . headers . get ( 'Authorization' ) === 'Bearer bearer-only-key' ) {
3434 return jsonResponse ( { base_resp : { status_code : 0 } } ) ;
3535 }
@@ -55,7 +55,7 @@ describe('detect-region: probeRegion auth style fallback', () => {
5555 it ( 'succeeds when endpoint only accepts x-api-key header' , async ( ) => {
5656 server = createMockServer ( {
5757 routes : {
58- '/v1/api/openplatform/coding_plan /remains' : ( req ) => {
58+ '/v1/token_plan /remains' : ( req ) => {
5959 if ( req . headers . get ( 'x-api-key' ) === 'xapikey-only-key' ) {
6060 return jsonResponse ( { base_resp : { status_code : 0 } } ) ;
6161 }
@@ -80,7 +80,7 @@ describe('detect-region: probeRegion auth style fallback', () => {
8080 it ( 'falls back to global when key is invalid for all auth styles and regions' , async ( ) => {
8181 server = createMockServer ( {
8282 routes : {
83- '/v1/api/openplatform/coding_plan /remains' : ( ) =>
83+ '/v1/token_plan /remains' : ( ) =>
8484 jsonResponse ( { error : 'unauthorized' } , 401 ) ,
8585 } ,
8686 } ) ;
0 commit comments