@@ -93,6 +93,8 @@ pub enum Scenario {
93
93
Unavailable ,
94
94
/// Two dates, v2 manifests, RLS unavailable in first date, restored on second.
95
95
UnavailableRls ,
96
+ /// Two dates, v2 manifests, RLS available in first stable, removed on second.
97
+ RemovedRls ,
96
98
/// Three dates, v2 manifests, RLS available in first and second, not last
97
99
MissingComponent ,
98
100
/// Three dates, v2 manifests, RLS available in first, middle missing nightly
@@ -152,6 +154,7 @@ impl ConstState {
152
154
Scenario :: MissingNightly => RwLock :: new( None ) ,
153
155
Scenario :: MultiHost => RwLock :: new( None ) ,
154
156
Scenario :: None => RwLock :: new( None ) ,
157
+ Scenario :: RemovedRls => RwLock :: new( None ) ,
155
158
Scenario :: SimpleV1 => RwLock :: new( None ) ,
156
159
Scenario :: SimpleV2 => RwLock :: new( None ) ,
157
160
Scenario :: Unavailable => RwLock :: new( None ) ,
@@ -1152,6 +1155,10 @@ fn create_mock_dist_server(path: &Path, s: Scenario) {
1152
1155
Release :: stable( "1.1.0" , "2015-01-02" ) ,
1153
1156
]
1154
1157
}
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
+ ] ,
1155
1162
Scenario :: SimpleV1 | Scenario :: SimpleV2 => vec ! [
1156
1163
Release :: new( "nightly" , "1.3.0" , "2015-01-02" , "2" ) . with_rls( RlsStatus :: Renamed ) ,
1157
1164
Release :: beta( "1.2.0" , "2015-01-02" ) ,
@@ -1199,6 +1206,7 @@ fn create_mock_dist_server(path: &Path, s: Scenario) {
1199
1206
| Scenario :: MultiHost
1200
1207
| Scenario :: Unavailable
1201
1208
| Scenario :: UnavailableRls
1209
+ | Scenario :: RemovedRls
1202
1210
| Scenario :: MissingNightly
1203
1211
| Scenario :: HostGoesMissingBefore
1204
1212
| Scenario :: HostGoesMissingAfter
0 commit comments