@@ -569,8 +569,8 @@ describe('run — changeset file resolution', () => {
569569 await promise ;
570570
571571 const callArgs = mockFetch . mock . calls [ 0 ] ; // First call is execute
572- // YAML files are sent as text /yaml with buildYamlPayload format
573- expect ( callArgs [ 1 ] . headers [ 'Content-Type' ] ) . toBe ( 'text /yaml' ) ;
572+ // YAML files are sent as application /yaml with buildYamlPayload format
573+ expect ( callArgs [ 1 ] . headers [ 'Content-Type' ] ) . toBe ( 'application /yaml' ) ;
574574 expect ( callArgs [ 1 ] . body ) . toContain ( 'changeset: |' ) ;
575575 expect ( callArgs [ 1 ] . body ) . toContain ( 'name: Test Queue' ) ;
576576 expect ( mockCore . info ) . toHaveBeenCalledWith ( expect . stringContaining ( 'Read changeset from file' ) ) ;
@@ -719,7 +719,7 @@ describe('run — execute without validation', () => {
719719 method : 'POST' ,
720720 headers : {
721721 'Authorization' : 'Api-Key key' ,
722- 'Content-Type' : 'text /yaml' ,
722+ 'Content-Type' : 'application /yaml' ,
723723 } ,
724724 } )
725725 ) ;
@@ -1375,7 +1375,7 @@ describe('run — changeset variables', () => {
13751375
13761376 // Verify the first fetch call (execute) has variables in YAML request body
13771377 const callArgs = mockFetch . mock . calls [ 0 ] ;
1378- expect ( callArgs [ 1 ] . headers [ 'Content-Type' ] ) . toBe ( 'text /yaml' ) ;
1378+ expect ( callArgs [ 1 ] . headers [ 'Content-Type' ] ) . toBe ( 'application /yaml' ) ;
13791379 expect ( callArgs [ 1 ] . body ) . toContain ( 'variables:' ) ;
13801380 expect ( callArgs [ 1 ] . body ) . toContain ( 'DATABASE_PASSWORD: "secret123"' ) ;
13811381 expect ( callArgs [ 1 ] . body ) . toContain ( 'API_TOKEN: "token456"' ) ;
@@ -1406,7 +1406,7 @@ describe('run — changeset variables', () => {
14061406 expect ( postCalls . length ) . toBeGreaterThanOrEqual ( 2 ) ; // validate and execute
14071407 postCalls . forEach ( call => {
14081408 expect ( call [ 0 ] ) . toContain ( 'inprod.io' ) ;
1409- expect ( call [ 1 ] . headers [ 'Content-Type' ] ) . toBe ( 'text /yaml' ) ;
1409+ expect ( call [ 1 ] . headers [ 'Content-Type' ] ) . toBe ( 'application /yaml' ) ;
14101410 expect ( call [ 1 ] . body ) . toContain ( 'changeset: |' ) ;
14111411 expect ( call [ 1 ] . body ) . toContain ( 'variables:' ) ;
14121412 expect ( call [ 1 ] . body ) . toContain ( 'DB_USER: "admin"' ) ;
@@ -1525,7 +1525,7 @@ describe('run — changeset variables', () => {
15251525 const postCalls = mockFetch . mock . calls . filter ( call => call [ 1 ] . method === 'POST' ) ;
15261526 expect ( postCalls . length ) . toBe ( 3 ) ; // 3 files
15271527 postCalls . forEach ( call => {
1528- expect ( call [ 1 ] . headers [ 'Content-Type' ] ) . toBe ( 'text /yaml' ) ;
1528+ expect ( call [ 1 ] . headers [ 'Content-Type' ] ) . toBe ( 'application /yaml' ) ;
15291529 expect ( call [ 1 ] . body ) . toContain ( 'variables:' ) ;
15301530 expect ( call [ 1 ] . body ) . toContain ( 'DB_PASSWORD: "secret"' ) ;
15311531 expect ( call [ 1 ] . body ) . toContain ( 'API_KEY: "key123"' ) ;
0 commit comments