@@ -94,6 +94,8 @@ pub enum Scenario {
94
94
Unavailable ,
95
95
/// Two dates, v2 manifests, RLS unavailable in first date, restored on second.
96
96
UnavailableRls ,
97
+ /// Two dates, v2 manifests, RLS available in first stable, removed on second.
98
+ RemovedRls ,
97
99
/// Three dates, v2 manifests, RLS available in first and second, not last
98
100
MissingComponent ,
99
101
/// Three dates, v2 manifests, RLS available in first, middle missing nightly
@@ -153,6 +155,7 @@ impl ConstState {
153
155
Scenario :: MissingNightly => RwLock :: new( None ) ,
154
156
Scenario :: MultiHost => RwLock :: new( None ) ,
155
157
Scenario :: None => RwLock :: new( None ) ,
158
+ Scenario :: RemovedRls => RwLock :: new( None ) ,
156
159
Scenario :: SimpleV1 => RwLock :: new( None ) ,
157
160
Scenario :: SimpleV2 => RwLock :: new( None ) ,
158
161
Scenario :: Unavailable => RwLock :: new( None ) ,
@@ -1160,6 +1163,10 @@ fn create_mock_dist_server(path: &Path, s: Scenario) {
1160
1163
Release :: stable( "1.1.0" , "2015-01-02" ) ,
1161
1164
]
1162
1165
}
1166
+ Scenario :: RemovedRls => vec ! [
1167
+ Release :: stable( "1.78.0" , "2024-05-01" ) ,
1168
+ Release :: stable( "1.79.0" , "2024-06-15" ) . with_rls( RlsStatus :: Unavailable ) ,
1169
+ ] ,
1163
1170
Scenario :: SimpleV1 | Scenario :: SimpleV2 => vec ! [
1164
1171
Release :: new( "nightly" , "1.3.0" , "2015-01-02" , "2" ) . with_rls( RlsStatus :: Renamed ) ,
1165
1172
Release :: beta( "1.2.0" , "2015-01-02" ) ,
@@ -1207,6 +1214,7 @@ fn create_mock_dist_server(path: &Path, s: Scenario) {
1207
1214
| Scenario :: MultiHost
1208
1215
| Scenario :: Unavailable
1209
1216
| Scenario :: UnavailableRls
1217
+ | Scenario :: RemovedRls
1210
1218
| Scenario :: MissingNightly
1211
1219
| Scenario :: HostGoesMissingBefore
1212
1220
| Scenario :: HostGoesMissingAfter
0 commit comments