Files
foxhunt/fxt/tests/minimal_keyring_test.rs
jgrusewski 2da5bafc0e refactor: rename tli→fxt, delete legacy scripts/RunPod/deploy artifacts
- Rename tli/ directory to fxt/, update package + binary name to "fxt"
- Replace all `use tli::` → `use fxt::` across 52 Rust files
- Update build.rs proto paths (tli/proto → fxt/proto) in 6 services
- Update Dockerfiles, CI workflows, deploy.sh for new paths
- Delete ~170 legacy shell scripts (kept 15 essential ones)
- Delete RunPod Python client (runpod/), tests (tests/runpod/)
- Delete foxhunt-deploy crate (RunPod-only deployment tool)
- Delete terraform/runpod/ (moved to Scaleway)
- Delete ML Python hyperopt scripts (replaced by Rust Argmin PSO)
- Delete .gitlab-ci.yml (using GitHub + Gitea)
- Remove foxhunt-deploy from workspace members

504 files changed, -74,355 lines of legacy code removed.
Workspace compiles clean (0 errors, 0 warnings).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 10:32:21 +01:00

38 lines
1.1 KiB
Rust

//! Minimal keyring test to isolate the issue
// Suppress false-positive unused_crate_dependencies warnings
// dev-dependencies are shared across ALL test targets in the crate
// This test may not use all deps, but they are required by other integration tests
#![allow(unused_crate_dependencies)]
#[tokio::test]
async fn minimal_keyring_test() {
use anyhow::Result;
// Direct keyring usage
let result: Result<()> = tokio::task::spawn_blocking(|| {
let entry =
keyring::Entry::new("test-minimal", "test-user").expect("Failed to create entry");
entry
.set_password("test-password-123")
.expect("Failed to set password");
println!("Password set successfully");
let retrieved = entry.get_password().expect("Failed to get password");
println!("Retrieved: {}", retrieved);
assert_eq!(retrieved, "test-password-123");
// Cleanup
let _ = entry.delete_credential();
Ok(())
})
.await
.expect("Blocking task panicked");
result.expect("Keyring operations failed");
}