mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 05:48:16 +08:00
Refactor qos as options
This commit is contained in:
@ -46,9 +46,7 @@ namespace Ocelot.AcceptanceTests
|
||||
DownstreamPort = 51879,
|
||||
UpstreamTemplate = "/",
|
||||
UpstreamHttpMethod = "Get",
|
||||
ExceptionsAllowedBeforeBreaking = 3,
|
||||
DurationOfBreak =5,
|
||||
TimeoutValue = 5000,
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -77,9 +75,7 @@ namespace Ocelot.AcceptanceTests
|
||||
DownstreamPort = 51879,
|
||||
UpstreamTemplate = "/",
|
||||
UpstreamHttpMethod = "Get",
|
||||
ExceptionsAllowedBeforeBreaking = 3,
|
||||
DurationOfBreak =5,
|
||||
TimeoutValue = 5000,
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -108,9 +104,7 @@ namespace Ocelot.AcceptanceTests
|
||||
DownstreamPort = 51879,
|
||||
UpstreamTemplate = "/",
|
||||
UpstreamHttpMethod = "Get",
|
||||
ExceptionsAllowedBeforeBreaking = 3,
|
||||
DurationOfBreak =5,
|
||||
TimeoutValue = 5000,
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -139,9 +133,7 @@ namespace Ocelot.AcceptanceTests
|
||||
DownstreamPort = 51879,
|
||||
UpstreamTemplate = "/products/",
|
||||
UpstreamHttpMethod = "Get",
|
||||
ExceptionsAllowedBeforeBreaking = 3,
|
||||
DurationOfBreak =5,
|
||||
TimeoutValue = 5000,
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -170,9 +162,7 @@ namespace Ocelot.AcceptanceTests
|
||||
DownstreamPort = 51879,
|
||||
UpstreamTemplate = "/products",
|
||||
UpstreamHttpMethod = "Get",
|
||||
ExceptionsAllowedBeforeBreaking = 3,
|
||||
DurationOfBreak =5,
|
||||
TimeoutValue = 5000,
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -201,9 +191,11 @@ namespace Ocelot.AcceptanceTests
|
||||
DownstreamPort = 51879,
|
||||
UpstreamTemplate = "/products/{productId}",
|
||||
UpstreamHttpMethod = "Get",
|
||||
QoSOptions = new FileQoSOptions()
|
||||
{
|
||||
ExceptionsAllowedBeforeBreaking = 3,
|
||||
DurationOfBreak =5,
|
||||
TimeoutValue = 5000,
|
||||
TimeoutValue = 5000 }
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -231,9 +223,6 @@ namespace Ocelot.AcceptanceTests
|
||||
DownstreamPort = 51879,
|
||||
UpstreamTemplate = "/products/{productId}",
|
||||
UpstreamHttpMethod = "Get",
|
||||
ExceptionsAllowedBeforeBreaking = 3,
|
||||
DurationOfBreak =5,
|
||||
TimeoutValue = 5000,
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -261,10 +250,7 @@ namespace Ocelot.AcceptanceTests
|
||||
DownstreamPort = 51879,
|
||||
DownstreamScheme = "http",
|
||||
UpstreamTemplate = "/",
|
||||
UpstreamHttpMethod = "Post",
|
||||
ExceptionsAllowedBeforeBreaking = 3,
|
||||
DurationOfBreak =5,
|
||||
TimeoutValue = 5000,
|
||||
UpstreamHttpMethod = "Post",
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -293,9 +279,6 @@ namespace Ocelot.AcceptanceTests
|
||||
DownstreamHost = "localhost",
|
||||
DownstreamPort = 51879,
|
||||
UpstreamHttpMethod = "Get",
|
||||
ExceptionsAllowedBeforeBreaking = 3,
|
||||
DurationOfBreak =5,
|
||||
TimeoutValue = 5000,
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user