Skip to content

Commit

Permalink
Modify fixtures and re-enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mkenigs committed Feb 19, 2024
1 parent bc775ff commit 35293c5
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 6 deletions.
20 changes: 19 additions & 1 deletion tests/fixtures/linux/linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,23 @@
}
},
"state": "Uncompleted"
},
"setup_channels": {
"action": {
"create_file": {
"action": {
"path": "/root/.nix-channels",
"user": null,
"group": null,
"mode": 436,
"buf": "https://nixos.org/channels/nixpkgs-unstable nixpkgs\n",
"force": false
},
"state": "Uncompleted"
},
"unpacked_path": "/nix/temp-install-dir"
},
"state": "Uncompleted"
}
},
"state": "Uncompleted"
Expand Down Expand Up @@ -416,6 +433,7 @@
"ssl_cert_file": null,
"extra_conf": [],
"force": false,
"add_channel": true,
"diagnostic_endpoint": "https://install.determinate.systems/nix/diagnostic"
},
"init": {
Expand All @@ -435,4 +453,4 @@
"ssl_cert_file": null,
"failure_chain": null
}
}
}
20 changes: 19 additions & 1 deletion tests/fixtures/linux/steam-deck.json
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,23 @@
}
},
"state": "Uncompleted"
},
"setup_channels": {
"action": {
"create_file": {
"action": {
"path": "/root/.nix-channels",
"user": null,
"group": null,
"mode": 436,
"buf": "https://nixos.org/channels/nixpkgs-unstable nixpkgs\n",
"force": false
},
"state": "Uncompleted"
},
"unpacked_path": "/nix/temp-install-dir"
},
"state": "Uncompleted"
}
},
"state": "Uncompleted"
Expand Down Expand Up @@ -400,6 +417,7 @@
"ssl_cert_file": null,
"extra_conf": [],
"force": false,
"add_channel": true,
"diagnostic_endpoint": "https://install.determinate.systems/nix/diagnostic"
}
},
Expand All @@ -415,4 +433,4 @@
"ssl_cert_file": null,
"failure_chain": null
}
}
}
20 changes: 19 additions & 1 deletion tests/fixtures/macos/macos.json
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,23 @@
}
},
"state": "Uncompleted"
},
"setup_channels": {
"action": {
"create_file": {
"action": {
"path": "/var/root/.nix-channels",
"user": null,
"group": null,
"mode": 436,
"buf": "https://nixos.org/channels/nixpkgs-unstable nixpkgs\n",
"force": false
},
"state": "Uncompleted"
},
"unpacked_path": "/nix/temp-install-dir"
},
"state": "Uncompleted"
}
},
"state": "Uncompleted"
Expand Down Expand Up @@ -427,6 +444,7 @@
"ssl_cert_file": null,
"extra_conf": [],
"force": false,
"add_channel": true,
"diagnostic_endpoint": "https://install.determinate.systems/nix/diagnostic"
},
"encrypt": null,
Expand All @@ -446,4 +464,4 @@
"ssl_cert_file": null,
"failure_chain": null
}
}
}
3 changes: 0 additions & 3 deletions tests/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const MACOS: &str = include_str!("./fixtures/macos/macos.json");
// Ensure existing plans still parse
// If this breaks and you need to update the fixture, disable these tests, bump `nix_installer` to a new version, and update the plans.
#[cfg(target_os = "linux")]
#[ignore]
#[test]
fn plan_compat_linux() -> eyre::Result<()> {
let _: InstallPlan = serde_json::from_str(LINUX)?;
Expand All @@ -20,7 +19,6 @@ fn plan_compat_linux() -> eyre::Result<()> {
// Ensure existing plans still parse
// If this breaks and you need to update the fixture, disable these tests, bump `nix_installer` to a new version, and update the plans.
#[cfg(target_os = "linux")]
#[ignore]
#[test]
fn plan_compat_steam_deck() -> eyre::Result<()> {
let _: InstallPlan = serde_json::from_str(STEAM_DECK)?;
Expand All @@ -30,7 +28,6 @@ fn plan_compat_steam_deck() -> eyre::Result<()> {
// Ensure existing plans still parse
// If this breaks and you need to update the fixture, disable these tests, bump `nix_installer` to a new version, and update the plans.
#[cfg(target_os = "macos")]
#[ignore]
#[test]
fn plan_compat_macos() -> eyre::Result<()> {
let _: InstallPlan = serde_json::from_str(MACOS)?;
Expand Down

0 comments on commit 35293c5

Please sign in to comment.