@@ -2382,11 +2382,11 @@ describe('Proxy structured producers', function () {
23822382 }
23832383 } ) ;
23842384
2385- it ( 'filters Egern Snell shadow-tls variants' , function ( ) {
2385+ it ( 'emits Egern Snell shadow-tls variants' , function ( ) {
23862386 const proxies = [
23872387 {
23882388 type : 'snell' ,
2389- name : 'Egern Snell ShadowTLS Plugin A ' ,
2389+ name : 'Egern Snell ShadowTLS' ,
23902390 server : 'snell-shadowtls.example.com' ,
23912391 port : 44046 ,
23922392 psk : 'secret' ,
@@ -2398,20 +2398,6 @@ describe('Proxy structured producers', function () {
23982398 version : 3 ,
23992399 } ,
24002400 } ,
2401- {
2402- type : 'snell' ,
2403- name : 'Egern Snell ShadowTLS Plugin' ,
2404- server : 'snell-plugin.example.com' ,
2405- port : 44046 ,
2406- psk : 'secret' ,
2407- version : 4 ,
2408- plugin : 'shadow-tls' ,
2409- 'plugin-opts' : {
2410- host : 'mask.example.com' ,
2411- password : 'shadow-pass' ,
2412- version : 3 ,
2413- } ,
2414- } ,
24152401 {
24162402 type : 'snell' ,
24172403 name : 'Egern Snell Plain' ,
@@ -2422,22 +2408,23 @@ describe('Proxy structured producers', function () {
24222408 } ,
24232409 ] ;
24242410
2425- const { result : internal , errors } = captureErrors ( ( ) =>
2426- produceInternal ( 'Egern' , proxies ) ,
2427- ) ;
2428- const { result : external , errors : externalErrors } = captureErrors ( ( ) =>
2429- loadProducedYaml ( 'Egern' , proxies ) ,
2430- ) ;
2431-
2432- expect ( errors ) . to . deep . equal ( [
2433- 'Platform Egern does not support Snell shadow-tls proxy Egern Snell ShadowTLS Plugin A. Proxy has been filtered.' ,
2434- 'Platform Egern does not support Snell shadow-tls proxy Egern Snell ShadowTLS Plugin. Proxy has been filtered.' ,
2435- ] ) ;
2436- expect ( externalErrors ) . to . deep . equal ( errors ) ;
2411+ const internal = produceInternal ( 'Egern' , proxies ) ;
2412+ const external = loadProducedYaml ( 'Egern' , proxies ) ;
24372413
24382414 for ( const output of [ internal , external . proxies ] ) {
2439- expect ( output ) . to . have . length ( 1 ) ;
2415+ expect ( output ) . to . have . length ( 2 ) ;
24402416 expectSubset ( output [ 0 ] , {
2417+ snell : {
2418+ name : 'Egern Snell ShadowTLS' ,
2419+ server : 'snell-shadowtls.example.com' ,
2420+ version : 5 ,
2421+ shadow_tls : {
2422+ password : 'shadow-pass' ,
2423+ sni : 'mask.example.com' ,
2424+ } ,
2425+ } ,
2426+ } ) ;
2427+ expectSubset ( output [ 1 ] , {
24412428 snell : {
24422429 name : 'Egern Snell Plain' ,
24432430 server : 'snell.example.com' ,
0 commit comments