@@ -10,7 +10,7 @@ describe('EVP proxy discovery', () => {
1010 const url = new URL ( 'http://localhost:8126' )
1111 const options = {
1212 supportedPaths : [ '/evp_proxy/v4' , '/evp_proxy/v2' ] ,
13- requiredHeaders : [ 'X-Datadog-EVP-Subdomain ' ] ,
13+ requiredHeaders : [ 'Content-Type ' ] ,
1414 }
1515
1616 let discoverEVPProxy
@@ -35,7 +35,7 @@ describe('EVP proxy discovery', () => {
3535 it ( 'uses caller preference order and normalizes trailing slashes' , ( ) => {
3636 const path = selectEVPProxyPath ( {
3737 endpoints : [ '/evp_proxy/v2/' , '/evp_proxy/v4/' ] ,
38- evp_proxy_allowed_headers : [ 'x-datadog-evp-subdomain ' ] ,
38+ evp_proxy_allowed_headers : [ 'content-type ' ] ,
3939 } , options )
4040
4141 assert . strictEqual ( path , '/evp_proxy/v4' )
@@ -64,7 +64,7 @@ describe('EVP proxy discovery', () => {
6464 it ( 'rejects a malformed allowed-header field' , ( ) => {
6565 const path = selectEVPProxyPath ( {
6666 endpoints : [ '/evp_proxy/v2' ] ,
67- evp_proxy_allowed_headers : 'X-Datadog-EVP-Subdomain ' ,
67+ evp_proxy_allowed_headers : 'Content-Type ' ,
6868 } , options )
6969
7070 assert . strictEqual ( path , undefined )
@@ -73,7 +73,7 @@ describe('EVP proxy discovery', () => {
7373 it ( 'rejects a missing required header' , ( ) => {
7474 const path = selectEVPProxyPath ( {
7575 endpoints : [ '/evp_proxy/v2' ] ,
76- evp_proxy_allowed_headers : [ 'Content-Type ' ] ,
76+ evp_proxy_allowed_headers : [ 'Accept-Encoding ' ] ,
7777 } , options )
7878
7979 assert . strictEqual ( path , undefined )
@@ -88,7 +88,7 @@ describe('EVP proxy discovery', () => {
8888 it ( 'fetches information only when discovery is called' , ( done ) => {
8989 fetchAgentInfo . yields ( null , {
9090 endpoints : [ '/evp_proxy/v2' ] ,
91- evp_proxy_allowed_headers : [ 'X-Datadog-EVP-Subdomain ' ] ,
91+ evp_proxy_allowed_headers : [ 'content-type ' ] ,
9292 } )
9393
9494 sinon . assert . notCalled ( fetchAgentInfo )
0 commit comments