@@ -185,6 +185,7 @@ describe('SubscriptionCallbackPlugin', () => {
185
185
"SubscriptionManager: Terminating subscriptions for ID: 1234-cats",
186
186
"SubscriptionManager: Terminating heartbeat interval for http://mock-router-url.com",
187
187
"SubscriptionCallback: Successfully cleaned up outstanding subscriptions and heartbeat intervals.",
188
+ "SubscriptionManager[1234-cats]: Subscription completed without errors",
188
189
]
189
190
` ) ;
190
191
} ) ;
@@ -289,6 +290,7 @@ describe('SubscriptionCallbackPlugin', () => {
289
290
"SubscriptionManager[1234-cats]: \`complete\` request successful",
290
291
"SubscriptionManager: Terminating subscriptions for ID: 1234-cats",
291
292
"SubscriptionCallback: Successfully cleaned up outstanding subscriptions and heartbeat intervals.",
293
+ "SubscriptionManager[1234-cats]: Subscription completed without errors",
292
294
]
293
295
` ) ;
294
296
} ) ;
@@ -405,6 +407,7 @@ describe('SubscriptionCallbackPlugin', () => {
405
407
"SubscriptionManager: Terminating subscriptions for ID: 1234-cats",
406
408
"SubscriptionManager: Terminating heartbeat interval for http://mock-router-url.com",
407
409
"SubscriptionCallback: Successfully cleaned up outstanding subscriptions and heartbeat intervals.",
410
+ "SubscriptionManager[1234-cats]: Subscription completed without errors",
408
411
]
409
412
` ) ;
410
413
} ) ;
@@ -522,6 +525,7 @@ describe('SubscriptionCallbackPlugin', () => {
522
525
"SubscriptionManager: Terminating subscriptions for ID: 1234-cats",
523
526
"SubscriptionManager: Terminating heartbeat interval for http://mock-router-url.com",
524
527
"SubscriptionCallback: Successfully cleaned up outstanding subscriptions and heartbeat intervals.",
528
+ "SubscriptionManager[1234-cats]: Subscription completed without errors",
525
529
]
526
530
` ) ;
527
531
} ) ;
@@ -684,10 +688,12 @@ describe('SubscriptionCallbackPlugin', () => {
684
688
"SubscriptionManager[1234-cats]: \`complete\` request successful",
685
689
"SubscriptionManager: Terminating subscriptions for ID: 1234-cats",
686
690
"SubscriptionManager: Terminating heartbeat interval for http://mock-router-url.com",
691
+ "SubscriptionManager[1234-cats]: Subscription completed without errors",
687
692
"SubscriptionManager[5678-dogs]: \`complete\` request successful",
688
693
"SubscriptionManager: Terminating subscriptions for ID: 5678-dogs",
689
694
"SubscriptionManager: Terminating heartbeat interval for http://mock-router-url-2.com",
690
695
"SubscriptionCallback: Successfully cleaned up outstanding subscriptions and heartbeat intervals.",
696
+ "SubscriptionManager[5678-dogs]: Subscription completed without errors",
691
697
]
692
698
` ) ;
693
699
} ) ;
@@ -879,20 +885,20 @@ describe('SubscriptionCallbackPlugin', () => {
879
885
"SubscriptionManager: Heartbeat request received invalid ID: 1234-cats",
880
886
"SubscriptionManager: Terminating subscriptions for ID: 1234-cats",
881
887
"SubscriptionManager: Terminating heartbeat interval for http://mock-router-url.com",
888
+ "SubscriptionManager[1234-cats]: Subscription completed without errors",
882
889
"SubscriptionManager: Heartbeat received response for ID: 5678-dogs",
883
890
"SubscriptionManager: Heartbeat request received invalid ID: 5678-dogs",
884
891
"SubscriptionManager: Terminating subscriptions for ID: 5678-dogs",
885
892
"SubscriptionManager: Terminating heartbeat interval for http://mock-router-url.com/5678-dogs",
893
+ "SubscriptionManager[5678-dogs]: Subscription completed without errors",
886
894
"TESTING: Triggering third update",
887
- "SubscriptionManager[1234-cats]: Subscription already cancelled, ignoring current and future payloads",
888
- "SubscriptionManager[5678-dogs]: Subscription already cancelled, ignoring current and future payloads",
889
895
"SubscriptionCallback: Server is shutting down. Cleaning up outstanding subscriptions and heartbeat intervals",
890
896
"SubscriptionCallback: Successfully cleaned up outstanding subscriptions and heartbeat intervals.",
891
897
]
892
898
` ) ;
893
899
} ) ;
894
900
895
- it ( 'handles router termination via 404' , async ( ) => {
901
+ ( process . env . INCREMENTAL_DELIVERY_TESTS_ENABLED ? it : it . skip ) ( 'handles router termination via 404' , async ( ) => {
896
902
const server = await startSubscriptionServer ( { logger } ) ;
897
903
898
904
mockRouterCheckResponse ( ) ;
@@ -1231,7 +1237,7 @@ describe('SubscriptionCallbackPlugin', () => {
1231
1237
` ) ;
1232
1238
} ) ;
1233
1239
1234
- it ( 'handles failed heartbeats' , async ( ) => {
1240
+ ( process . env . INCREMENTAL_DELIVERY_TESTS_ENABLED ? it : it . skip ) ( 'handles failed heartbeats' , async ( ) => {
1235
1241
const server = await startSubscriptionServer ( { logger } ) ;
1236
1242
1237
1243
// Mock the initial check response from the router.
@@ -1305,12 +1311,13 @@ describe('SubscriptionCallbackPlugin', () => {
1305
1311
"ERROR: SubscriptionManager[1234-cats]: Heartbeat request failed 5 times, terminating subscriptions and heartbeat interval: request to http://mock-router-url.com/ failed, reason: network request error",
1306
1312
"SubscriptionManager: Terminating subscriptions for ID: 1234-cats",
1307
1313
"SubscriptionManager: Terminating heartbeat interval for http://mock-router-url.com",
1314
+ "SubscriptionManager[1234-cats]: Subscription completed without errors",
1308
1315
"SubscriptionCallback: Successfully cleaned up outstanding subscriptions and heartbeat intervals.",
1309
1316
]
1310
1317
` ) ;
1311
1318
} ) ;
1312
1319
1313
- it ( 'handles failed heartbeats with unexpected status codes' , async ( ) => {
1320
+ ( process . env . INCREMENTAL_DELIVERY_TESTS_ENABLED ? it : it . skip ) ( 'handles failed heartbeats with unexpected status codes' , async ( ) => {
1314
1321
const server = await startSubscriptionServer ( { logger } ) ;
1315
1322
1316
1323
// Mock the initial check response from the router.
@@ -1389,13 +1396,14 @@ describe('SubscriptionCallbackPlugin', () => {
1389
1396
"ERROR: SubscriptionManager[1234-cats]: Heartbeat request failed 5 times, terminating subscriptions and heartbeat interval: Unexpected status code: 500",
1390
1397
"SubscriptionManager: Terminating subscriptions for ID: 1234-cats",
1391
1398
"SubscriptionManager: Terminating heartbeat interval for http://mock-router-url.com",
1399
+ "SubscriptionManager[1234-cats]: Subscription completed without errors",
1392
1400
"SubscriptionCallback: Successfully cleaned up outstanding subscriptions and heartbeat intervals.",
1393
1401
]
1394
1402
` ) ;
1395
1403
} ) ;
1396
1404
1397
1405
describe ( 'retries' , ( ) => {
1398
- it ( 'failed `check` requests' , async ( ) => {
1406
+ ( process . env . INCREMENTAL_DELIVERY_TESTS_ENABLED ? it : it . skip ) ( 'failed `check` requests' , async ( ) => {
1399
1407
const server = await startSubscriptionServer ( { logger } ) ;
1400
1408
1401
1409
// Mock the initial check response from the router. We'll fail a couple
@@ -1490,12 +1498,13 @@ describe('SubscriptionCallbackPlugin', () => {
1490
1498
"SubscriptionManager[1234-cats]: \`complete\` request successful",
1491
1499
"SubscriptionManager: Terminating subscriptions for ID: 1234-cats",
1492
1500
"SubscriptionManager: Terminating heartbeat interval for http://mock-router-url.com",
1501
+ "SubscriptionManager[1234-cats]: Subscription completed without errors",
1493
1502
"SubscriptionCallback: Successfully cleaned up outstanding subscriptions and heartbeat intervals.",
1494
1503
]
1495
1504
` ) ;
1496
1505
} ) ;
1497
1506
1498
- it ( 'failed `next` requests' , async ( ) => {
1507
+ ( process . env . INCREMENTAL_DELIVERY_TESTS_ENABLED ? it : it . skip ) ( 'failed `next` requests' , async ( ) => {
1499
1508
const server = await startSubscriptionServer ( { logger } ) ;
1500
1509
1501
1510
// Mock the initial check response from the router.
@@ -1619,12 +1628,13 @@ describe('SubscriptionCallbackPlugin', () => {
1619
1628
"SubscriptionManager[1234-cats]: \`complete\` request successful",
1620
1629
"SubscriptionManager: Terminating subscriptions for ID: 1234-cats",
1621
1630
"SubscriptionManager: Terminating heartbeat interval for http://mock-router-url.com",
1631
+ "SubscriptionManager[1234-cats]: Subscription completed without errors",
1622
1632
"SubscriptionCallback: Successfully cleaned up outstanding subscriptions and heartbeat intervals.",
1623
1633
]
1624
1634
` ) ;
1625
1635
} ) ;
1626
1636
1627
- it ( 'failed `complete` requests' , async ( ) => {
1637
+ ( process . env . INCREMENTAL_DELIVERY_TESTS_ENABLED ? it : it . skip ) ( 'failed `complete` requests' , async ( ) => {
1628
1638
const server = await startSubscriptionServer ( { logger } ) ;
1629
1639
1630
1640
// Mock the initial check response from the router.
@@ -1719,12 +1729,13 @@ describe('SubscriptionCallbackPlugin', () => {
1719
1729
"SubscriptionManager[1234-cats]: \`complete\` request successful",
1720
1730
"SubscriptionManager: Terminating subscriptions for ID: 1234-cats",
1721
1731
"SubscriptionManager: Terminating heartbeat interval for http://mock-router-url.com",
1732
+ "SubscriptionManager[1234-cats]: Subscription completed without errors",
1722
1733
"SubscriptionCallback: Successfully cleaned up outstanding subscriptions and heartbeat intervals.",
1723
1734
]
1724
1735
` ) ;
1725
1736
} ) ;
1726
1737
1727
- it ( '`complete` requests to failure' , async ( ) => {
1738
+ ( process . env . INCREMENTAL_DELIVERY_TESTS_ENABLED ? it : it . skip ) ( '`complete` requests to failure' , async ( ) => {
1728
1739
const server = await startSubscriptionServer ( { logger } ) ;
1729
1740
1730
1741
// Mock the initial check response from the router.
@@ -1824,12 +1835,13 @@ describe('SubscriptionCallbackPlugin', () => {
1824
1835
"ERROR: SubscriptionManager[1234-cats]: \`complete\` request failed: \`complete\` request failed with unexpected status code: 500",
1825
1836
"SubscriptionManager: Terminating subscriptions for ID: 1234-cats",
1826
1837
"SubscriptionManager: Terminating heartbeat interval for http://mock-router-url.com",
1838
+ "SubscriptionManager[1234-cats]: Subscription completed without errors",
1827
1839
"SubscriptionCallback: Successfully cleaned up outstanding subscriptions and heartbeat intervals.",
1828
1840
]
1829
1841
` ) ;
1830
1842
} ) ;
1831
1843
1832
- it ( 'terminates subscription after max retries `next` requests' , async ( ) => {
1844
+ ( process . env . INCREMENTAL_DELIVERY_TESTS_ENABLED ? it : it . skip ) ( 'terminates subscription after max retries `next` requests' , async ( ) => {
1833
1845
const server = await startSubscriptionServer ( { logger } ) ;
1834
1846
1835
1847
// Mock the initial check response from the router.
0 commit comments