@@ -93,6 +93,8 @@ pub enum Scenario {
9393 Unavailable ,
9494 /// Two dates, v2 manifests, RLS unavailable in first date, restored on second.
9595 UnavailableRls ,
96+ /// Two dates, v2 manifests, RLS available in first stable, removed on second.
97+ RemovedRls ,
9698 /// Three dates, v2 manifests, RLS available in first and second, not last
9799 MissingComponent ,
98100 /// Three dates, v2 manifests, RLS available in first, middle missing nightly
@@ -152,6 +154,7 @@ impl ConstState {
152154 Scenario :: MissingNightly => RwLock :: new( None ) ,
153155 Scenario :: MultiHost => RwLock :: new( None ) ,
154156 Scenario :: None => RwLock :: new( None ) ,
157+ Scenario :: RemovedRls => RwLock :: new( None ) ,
155158 Scenario :: SimpleV1 => RwLock :: new( None ) ,
156159 Scenario :: SimpleV2 => RwLock :: new( None ) ,
157160 Scenario :: Unavailable => RwLock :: new( None ) ,
@@ -1152,6 +1155,10 @@ fn create_mock_dist_server(path: &Path, s: Scenario) {
11521155 Release :: stable( "1.1.0" , "2015-01-02" ) ,
11531156 ]
11541157 }
1158+ Scenario :: RemovedRls => vec ! [
1159+ Release :: stable( "1.78.0" , "2024-05-01" ) ,
1160+ Release :: stable( "1.79.0" , "2024-06-15" ) . with_rls( RlsStatus :: Unavailable ) ,
1161+ ] ,
11551162 Scenario :: SimpleV1 | Scenario :: SimpleV2 => vec ! [
11561163 Release :: new( "nightly" , "1.3.0" , "2015-01-02" , "2" ) . with_rls( RlsStatus :: Renamed ) ,
11571164 Release :: beta( "1.2.0" , "2015-01-02" ) ,
@@ -1199,6 +1206,7 @@ fn create_mock_dist_server(path: &Path, s: Scenario) {
11991206 | Scenario :: MultiHost
12001207 | Scenario :: Unavailable
12011208 | Scenario :: UnavailableRls
1209+ | Scenario :: RemovedRls
12021210 | Scenario :: MissingNightly
12031211 | Scenario :: HostGoesMissingBefore
12041212 | Scenario :: HostGoesMissingAfter
0 commit comments