// all the following test are ignored on windows. See #2364
#[actix_rt::test]
#[cfg_attr(target_os = "windows", ignore)]
asyncfnimport_dump_v1(){
lettemp=tempfile::tempdir().unwrap();
forpathin[
GetDump::MoviesRawV1.path(),
GetDump::MoviesWithSettingsV1.path(),
GetDump::RubyGemsWithSettingsV1.path(),
]{
letoptions=Opt{
import_dump: Some(path),
..default_settings(temp.path())
};
leterror=Server::new_with_options(options)
.await
.map(|_|())
.unwrap_err();
assert_eq!(error.to_string(),"The version 1 of the dumps is not supported anymore. You can re-export your dump from a version between 0.21 and 0.24, or start fresh from a version 0.25 onwards.");
json!({"id": 100,"title": "Lock, Stock and Two Smoking Barrels","overview": "A card shark and his unwillingly-enlisted friends need to make a lot of cash quick after losing a sketchy poker match. To do this they decide to pull a heist on a small-time gang who happen to be operating out of the flat next door.","genres": ["Comedy","Crime"],"poster": "https://image.tmdb.org/t/p/w500/8kSerJrhrJWKLk1LViesGcnrUPE.jpg","release_date": 889056000})
json!({"id": 500,"title": "Reservoir Dogs","overview": "A botched robbery indicates a police informant, and the pressure mounts in the aftermath at a warehouse. Crime begets violence as the survivors -- veteran Mr. White, newcomer Mr. Orange, psychopathic parolee Mr. Blonde, bickering weasel Mr. Pink and Nice Guy Eddie -- unravel.","genres": ["Crime","Thriller"],"poster": "https://image.tmdb.org/t/p/w500/AjTtJNumZyUDz33VtMlF1K8JPsE.jpg","release_date": 715392000})
json!({"id": 10006,"title": "Wild Seven","overview": "In this darkly karmic vision of Arizona, a man who breathes nothing but ill will begins a noxious domino effect as quickly as an uncontrollable virus kills. As he exits Arizona State Penn after twenty-one long years, Wilson has only one thing on the brain, leveling the score with career criminal, Mackey Willis.","genres": ["Action","Crime","Drama"],"poster": "https://image.tmdb.org/t/p/w500/y114dTPoqn8k2Txps4P2tI95YCS.jpg","release_date": 1136073600})
json!({"id": 100,"title": "Lock, Stock and Two Smoking Barrels","genres": ["Comedy","Crime"],"overview": "A card shark and his unwillingly-enlisted friends need to make a lot of cash quick after losing a sketchy poker match. To do this they decide to pull a heist on a small-time gang who happen to be operating out of the flat next door.","poster": "https://image.tmdb.org/t/p/w500/8kSerJrhrJWKLk1LViesGcnrUPE.jpg","release_date": 889056000})
json!({"id": 500,"title": "Reservoir Dogs","genres": ["Crime","Thriller"],"overview": "A botched robbery indicates a police informant, and the pressure mounts in the aftermath at a warehouse. Crime begets violence as the survivors -- veteran Mr. White, newcomer Mr. Orange, psychopathic parolee Mr. Blonde, bickering weasel Mr. Pink and Nice Guy Eddie -- unravel.","poster": "https://image.tmdb.org/t/p/w500/AjTtJNumZyUDz33VtMlF1K8JPsE.jpg","release_date": 715392000})
json!({"id": 10006,"title": "Wild Seven","genres": ["Action","Crime","Drama"],"overview": "In this darkly karmic vision of Arizona, a man who breathes nothing but ill will begins a noxious domino effect as quickly as an uncontrollable virus kills. As he exits Arizona State Penn after twenty-one long years, Wilson has only one thing on the brain, leveling the score with career criminal, Mackey Willis.","poster": "https://image.tmdb.org/t/p/w500/y114dTPoqn8k2Txps4P2tI95YCS.jpg", "release_date": 1136073600})
json!({"name": "doggo","summary": "RSpec 3 formatter - documentation, with progress indication","description": "Similar to \"rspec -f d\", but also indicates progress by showing the current test number and total test count on each line.","id": "191940","version": "1.1.0","total_downloads": "9394"})
json!({"name": "vortex-of-agony","summary": "You dont need to use nodejs or go, just install this plugin. It will crash your application at random","description": "You dont need to use nodejs or go, just install this plugin. It will crash your application at random","id": "159227","version": "0.1.0","total_downloads": "1007"})
json!({"id": 100,"title": "Lock, Stock and Two Smoking Barrels","overview": "A card shark and his unwillingly-enlisted friends need to make a lot of cash quick after losing a sketchy poker match. To do this they decide to pull a heist on a small-time gang who happen to be operating out of the flat next door.","genres": ["Comedy","Crime"],"poster": "https://image.tmdb.org/t/p/w500/8kSerJrhrJWKLk1LViesGcnrUPE.jpg","release_date": 889056000})
json!({"id": 500,"title": "Reservoir Dogs","overview": "A botched robbery indicates a police informant, and the pressure mounts in the aftermath at a warehouse. Crime begets violence as the survivors -- veteran Mr. White, newcomer Mr. Orange, psychopathic parolee Mr. Blonde, bickering weasel Mr. Pink and Nice Guy Eddie -- unravel.","genres": ["Crime","Thriller"],"poster": "https://image.tmdb.org/t/p/w500/AjTtJNumZyUDz33VtMlF1K8JPsE.jpg","release_date": 715392000})
json!({"id": 10006,"title": "Wild Seven","overview": "In this darkly karmic vision of Arizona, a man who breathes nothing but ill will begins a noxious domino effect as quickly as an uncontrollable virus kills. As he exits Arizona State Penn after twenty-one long years, Wilson has only one thing on the brain, leveling the score with career criminal, Mackey Willis.","genres": ["Action","Crime","Drama"],"poster": "https://image.tmdb.org/t/p/w500/y114dTPoqn8k2Txps4P2tI95YCS.jpg","release_date": 1136073600})
json!({"id": 100,"title": "Lock, Stock and Two Smoking Barrels","genres": ["Comedy","Crime"],"overview": "A card shark and his unwillingly-enlisted friends need to make a lot of cash quick after losing a sketchy poker match. To do this they decide to pull a heist on a small-time gang who happen to be operating out of the flat next door.","poster": "https://image.tmdb.org/t/p/w500/8kSerJrhrJWKLk1LViesGcnrUPE.jpg","release_date": 889056000})
json!({"id": 500,"title": "Reservoir Dogs","genres": ["Crime","Thriller"],"overview": "A botched robbery indicates a police informant, and the pressure mounts in the aftermath at a warehouse. Crime begets violence as the survivors -- veteran Mr. White, newcomer Mr. Orange, psychopathic parolee Mr. Blonde, bickering weasel Mr. Pink and Nice Guy Eddie -- unravel.","poster": "https://image.tmdb.org/t/p/w500/AjTtJNumZyUDz33VtMlF1K8JPsE.jpg","release_date": 715392000})
json!({"id": 10006,"title": "Wild Seven","genres": ["Action","Crime","Drama"],"overview": "In this darkly karmic vision of Arizona, a man who breathes nothing but ill will begins a noxious domino effect as quickly as an uncontrollable virus kills. As he exits Arizona State Penn after twenty-one long years, Wilson has only one thing on the brain, leveling the score with career criminal, Mackey Willis.","poster": "https://image.tmdb.org/t/p/w500/y114dTPoqn8k2Txps4P2tI95YCS.jpg","release_date": 1136073600})
json!({"name": "doggo","summary": "RSpec 3 formatter - documentation, with progress indication","description": "Similar to \"rspec -f d\", but also indicates progress by showing the current test number and total test count on each line.","id": "191940","version": "1.1.0","total_downloads": "9394"})
json!({"name": "vortex-of-agony","summary": "You dont need to use nodejs or go, just install this plugin. It will crash your application at random","description": "You dont need to use nodejs or go, just install this plugin. It will crash your application at random","id": "159227","version": "0.1.0","total_downloads": "1007"})
json!({"id": 100,"title": "Lock, Stock and Two Smoking Barrels","overview": "A card shark and his unwillingly-enlisted friends need to make a lot of cash quick after losing a sketchy poker match. To do this they decide to pull a heist on a small-time gang who happen to be operating out of the flat next door.","genres": ["Comedy","Crime"],"poster": "https://image.tmdb.org/t/p/w500/8kSerJrhrJWKLk1LViesGcnrUPE.jpg","release_date": 889056000})
json!({"id": 500,"title": "Reservoir Dogs","overview": "A botched robbery indicates a police informant, and the pressure mounts in the aftermath at a warehouse. Crime begets violence as the survivors -- veteran Mr. White, newcomer Mr. Orange, psychopathic parolee Mr. Blonde, bickering weasel Mr. Pink and Nice Guy Eddie -- unravel.","genres": ["Crime","Thriller"],"poster": "https://image.tmdb.org/t/p/w500/AjTtJNumZyUDz33VtMlF1K8JPsE.jpg","release_date": 715392000})
json!({"id": 10006,"title": "Wild Seven","overview": "In this darkly karmic vision of Arizona, a man who breathes nothing but ill will begins a noxious domino effect as quickly as an uncontrollable virus kills. As he exits Arizona State Penn after twenty-one long years, Wilson has only one thing on the brain, leveling the score with career criminal, Mackey Willis.","genres": ["Action","Crime","Drama"],"poster": "https://image.tmdb.org/t/p/w500/y114dTPoqn8k2Txps4P2tI95YCS.jpg","release_date": 1136073600})
json!({"id": 100,"title": "Lock, Stock and Two Smoking Barrels","genres": ["Comedy","Crime"],"overview": "A card shark and his unwillingly-enlisted friends need to make a lot of cash quick after losing a sketchy poker match. To do this they decide to pull a heist on a small-time gang who happen to be operating out of the flat next door.","poster": "https://image.tmdb.org/t/p/w500/8kSerJrhrJWKLk1LViesGcnrUPE.jpg","release_date": 889056000})
json!({"id": 500,"title": "Reservoir Dogs","genres": ["Crime","Thriller"],"overview": "A botched robbery indicates a police informant, and the pressure mounts in the aftermath at a warehouse. Crime begets violence as the survivors -- veteran Mr. White, newcomer Mr. Orange, psychopathic parolee Mr. Blonde, bickering weasel Mr. Pink and Nice Guy Eddie -- unravel.","poster": "https://image.tmdb.org/t/p/w500/AjTtJNumZyUDz33VtMlF1K8JPsE.jpg","release_date": 715392000})
json!({"id": 10006,"title": "Wild Seven","genres": ["Action","Crime","Drama"],"overview": "In this darkly karmic vision of Arizona, a man who breathes nothing but ill will begins a noxious domino effect as quickly as an uncontrollable virus kills. As he exits Arizona State Penn after twenty-one long years, Wilson has only one thing on the brain, leveling the score with career criminal, Mackey Willis.","poster": "https://image.tmdb.org/t/p/w500/y114dTPoqn8k2Txps4P2tI95YCS.jpg","release_date": 1136073600})
json!({"name": "doggo","summary": "RSpec 3 formatter - documentation, with progress indication","description": "Similar to \"rspec -f d\", but also indicates progress by showing the current test number and total test count on each line.","id": "191940","version": "1.1.0","total_downloads": "9394"})
json!({"name": "vortex-of-agony","summary": "You dont need to use nodejs or go, just install this plugin. It will crash your application at random","description": "You dont need to use nodejs or go, just install this plugin. It will crash your application at random","id": "159227","version": "0.1.0","total_downloads": "1007"})