@@ -29,7 +29,7 @@ function createCtx(messaging?: HttpSurface) {
2929 } as any ;
3030}
3131
32- function httpFlow ( type : 'http' | 'http_request' | 'http_call' | 'webhook' , config : Record < string , unknown > ) {
32+ function httpFlow ( type : 'http' , config : Record < string , unknown > ) {
3333 return {
3434 name : 'http_flow' ,
3535 label : 'HTTP Flow' ,
@@ -50,7 +50,7 @@ function httpFlow(type: 'http' | 'http_request' | 'http_call' | 'webhook', confi
5050 } ;
5151}
5252
53- describe ( 'http (canonical node) + deprecated aliases ' , ( ) => {
53+ describe ( 'http (canonical node)' , ( ) => {
5454 it ( 'publishes a builtin io descriptor flagged needsOutbox' , ( ) => {
5555 const engine = new AutomationEngine ( createTestLogger ( ) ) ;
5656 registerHttpNodes ( engine , createCtx ( ) ) ;
@@ -61,14 +61,12 @@ describe('http (canonical node) + deprecated aliases', () => {
6161 expect ( d ?. paradigms ) . toEqual ( expect . arrayContaining ( [ 'flow' , 'approval' ] ) ) ;
6262 } ) ;
6363
64- it ( 'registers http_request/http_call/webhook as deprecated aliases of http ' , ( ) => {
64+ it ( 'does NOT register the removed http_request/http_call/webhook aliases (11.0) ' , ( ) => {
6565 const engine = new AutomationEngine ( createTestLogger ( ) ) ;
6666 registerHttpNodes ( engine , createCtx ( ) ) ;
67- for ( const alias of [ 'http_request' , 'http_call' , 'webhook' ] ) {
68- expect ( engine . getRegisteredNodeTypes ( ) ) . toContain ( alias ) ;
69- const d = engine . getActionDescriptor ( alias ) ;
70- expect ( d ?. deprecated ) . toBe ( true ) ;
71- expect ( d ?. aliasOf ) . toBe ( 'http' ) ;
67+ for ( const removed of [ 'http_request' , 'http_call' , 'webhook' ] ) {
68+ expect ( engine . getRegisteredNodeTypes ( ) ) . not . toContain ( removed ) ;
69+ expect ( engine . getActionDescriptor ( removed ) ) . toBeUndefined ( ) ;
7270 }
7371 } ) ;
7472
@@ -149,13 +147,5 @@ describe('http (canonical node) + deprecated aliases', () => {
149147 expect ( result . error ) . toContain ( 'url' ) ;
150148 } ) ;
151149
152- it ( 'a legacy http_request node still runs (via the alias → http)' , async ( ) => {
153- const engine = new AutomationEngine ( createTestLogger ( ) ) ;
154- registerHttpNodes ( engine , createCtx ( ) ) ;
155- engine . registerFlow ( 'http_flow' , httpFlow ( 'http_request' , { url : 'https://legacy.test' , method : 'GET' } ) ) ;
156- const result = await engine . execute ( 'http_flow' ) ;
157- expect ( result . success ) . toBe ( true ) ;
158- expect ( fetchMock ) . toHaveBeenCalledOnce ( ) ;
159- } ) ;
160150 } ) ;
161151} ) ;
0 commit comments