33using Ocelot . Configuration ;
44using Ocelot . Configuration . File ;
55using Ocelot . DependencyInjection ;
6- using Ocelot . Testing . Steps ;
76using Polly . CircuitBreaker ;
87using Polly . Timeout ;
98using Shouldly ;
@@ -14,8 +13,10 @@ namespace Ocelot.QualityOfService.Polly.Acceptance;
1413
1514[ Trait ( "Feat" , "23" ) ] // https://github.com/ThreeMammals/Ocelot/issues/23
1615[ Trait ( "Feat" , "39" ) ] // https://github.com/ThreeMammals/Ocelot/pull/39
17- public sealed class PollyQosTests : PollyQosSteps
16+ public sealed class PollyQosTests : QosSteps
1817{
18+ public PollyQosTests ( ) : base ( null ! ) => self = this ;
19+
1920 [ Fact ]
2021 [ Trait ( "Feat" , "318" ) ] // https://github.com/ThreeMammals/Ocelot/issues/318
2122 [ Trait ( "PR" , "319" ) ] // https://github.com/ThreeMammals/Ocelot/pull/319
@@ -505,32 +506,3 @@ private void GivenThereIsAPossiblyBrokenServiceRunningOn(int port, string respon
505506 public override void GivenThereIsAServiceRunningOn ( int port , HttpStatusCode statusCode , int timeout , [ CallerMemberName ] string response = nameof ( PollyQosTests ) )
506507 => base . GivenThereIsAServiceRunningOn ( port , statusCode , timeout , response ) ;
507508}
508-
509- public class PollyQosSteps : TimeoutSteps , IQosSteps , IDisposable
510- {
511- private readonly QosSteps steps ;
512- public PollyQosSteps ( ) => steps = new ( this ) ;
513-
514- public override void Dispose ( )
515- {
516- steps . Dispose ( ) ;
517- base . Dispose ( ) ;
518- GC . SuppressFinalize ( this ) ;
519- }
520-
521- public void GivenThereIsABrokenServiceOnline ( HttpStatusCode onlineStatusCode , int index = 0 , int length = 1 , bool isDiscovery = false )
522- => steps . GivenThereIsABrokenServiceOnline ( onlineStatusCode , index , length , isDiscovery ) ;
523-
524- public void GivenThereIsABrokenServiceRunningOn ( int port , HttpStatusCode brokenStatusCode , int index = 0 )
525- => steps . GivenThereIsABrokenServiceRunningOn ( port , brokenStatusCode , index ) ;
526-
527- public void GivenThereIsAServiceRunningOn ( int port , HttpStatusCode statusCode ,
528- Func < int > timeoutStrategy , Func < bool > failingStrategy , [ CallerMemberName ] string ? response = null )
529- => steps . GivenThereIsAServiceRunningOn ( port , statusCode , timeoutStrategy , failingStrategy , response ) ;
530-
531- public Task TestRouteCircuitBreaker ( int [ ] ports , string upstreamPath , FileQoSOptions qos , int index = 0 , bool isDiscovery = false )
532- => steps . TestRouteCircuitBreaker ( ports , upstreamPath , qos , index , isDiscovery ) ;
533-
534- public Task TestRouteTimeout ( int [ ] ports , string upstreamPath , FileQoSOptions qos )
535- => steps . TestRouteTimeout ( ports , upstreamPath , qos ) ;
536- }
0 commit comments