feat: AWS Secrets Manager support

This commit is contained in:
2025-09-12 17:11:44 -06:00
parent ae7f04a423
commit 81989f8c94
11 changed files with 344 additions and 142 deletions
+2 -2
View File
@@ -113,7 +113,7 @@ fn cli_add_get_list_update_delete_roundtrip() {
.env("XDG_CACHE_HOME", &xdg_cache)
.args(["--output", "json", "get", "my_api_key"]);
get_json.assert().success().stdout(
predicate::str::contains("MY_API_KEY").and(predicate::str::contains("super_secret")),
predicate::str::contains("my_api_key").and(predicate::str::contains("super_secret")),
);
// list
@@ -123,7 +123,7 @@ fn cli_add_get_list_update_delete_roundtrip() {
.arg("list");
list.assert()
.success()
.stdout(predicate::str::contains("MY_API_KEY"));
.stdout(predicate::str::contains("my_api_key"));
// update
let mut update = Command::cargo_bin("gman").unwrap();
-8
View File
@@ -1,14 +1,6 @@
use gman::config::ProviderConfig;
use gman::providers::ParseProviderError;
use pretty_assertions::assert_eq;
use validator::Validate;
#[test]
fn test_parse_provider_error_display() {
let err = ParseProviderError::Unsupported("test".to_string());
assert_eq!(err.to_string(), "unsupported provider 'test'");
}
#[test]
fn test_provider_config_missing_name() {
let config = ProviderConfig {