Skip to content

Commit

Permalink
chore(deps): Update Rust dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Rene Leonhardt <[email protected]>
  • Loading branch information
reneleonhardt committed Sep 14, 2024
1 parent 422c397 commit 54f3d8d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 15 deletions.
12 changes: 11 additions & 1 deletion .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2

updates:
- package-ecosystem: "docker"
directory: "/"
directory: "/.release"
labels: ["dependencies"]
schedule:
# By default, this will be on a Monday.
Expand Down Expand Up @@ -39,3 +39,13 @@ updates:
go:
patterns:
- "*"

- package-ecosystem: "cargo"
directory: "/functional-tests"
labels: ["area/CI"]
schedule:
interval: "weekly"
groups:
ci:
patterns:
- "*"
8 changes: 4 additions & 4 deletions functional-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ edition = "2021"
authors = ["Adrian Utrilla <[email protected]>"]

[dependencies]
tempdir = "0.3.5"
tempfile = "3"
serde = "1.0"
serde_json = "1.0.99"
serde_yaml = "0.9.22"
serde_json = "1.0"
serde_yaml = "0.9"
serde_derive = "1.0"
lazy_static = "1.4.0"
lazy_static = "1.5"
19 changes: 9 additions & 10 deletions functional-tests/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
extern crate serde;
extern crate serde_json;
extern crate serde_yaml;
extern crate tempdir;
#[macro_use]
extern crate tempfile;
#[cfg_attr(test, macro_use)]
extern crate lazy_static;
#[macro_use]
extern crate serde_derive;

#[cfg(test)]
mod tests {
Expand All @@ -19,7 +17,8 @@ mod tests {
use std::io::{Read, Write};
use std::path::Path;
use std::process::Command;
use tempdir::TempDir;
use tempfile::Builder;
use tempfile::TempDir;
const SOPS_BINARY_PATH: &'static str = "./sops";
const KMS_KEY: &'static str = "FUNCTIONAL_TEST_KMS_ARN";

Expand All @@ -37,7 +36,7 @@ mod tests {

lazy_static! {
static ref TMP_DIR: TempDir =
TempDir::new("sops-functional-tests").expect("Unable to create temporary directory");
Builder::new().prefix("sops-functional-tests").tempdir().expect("Unable to create temporary directory");
}

fn prepare_temp_file(name: &str, contents: &[u8]) -> String {
Expand Down Expand Up @@ -806,7 +805,7 @@ b: ba"#
let file_path = "res/comments.yaml";
let output = Command::new(SOPS_BINARY_PATH)
.arg("encrypt")
.arg(file_path.clone())
.arg(file_path)
.output()
.expect("Error running sops");
assert!(output.status.success(), "SOPS didn't return successfully");
Expand All @@ -825,7 +824,7 @@ b: ba"#
let file_path = "res/comments_list.yaml";
let output = Command::new(SOPS_BINARY_PATH)
.arg("encrypt")
.arg(file_path.clone())
.arg(file_path)
.output()
.expect("Error running sops");
assert!(output.status.success(), "SOPS didn't return successfully");
Expand All @@ -844,7 +843,7 @@ b: ba"#
let file_path = "res/comments.enc.yaml";
let output = Command::new(SOPS_BINARY_PATH)
.arg("decrypt")
.arg(file_path.clone())
.arg(file_path)
.output()
.expect("Error running sops");
assert!(output.status.success(), "SOPS didn't return successfully");
Expand All @@ -863,7 +862,7 @@ b: ba"#
let file_path = "res/comments_unencrypted_comments.yaml";
let output = Command::new(SOPS_BINARY_PATH)
.arg("decrypt")
.arg(file_path.clone())
.arg(file_path)
.output()
.expect("Error running sops");
assert!(output.status.success(), "SOPS didn't return successfully");
Expand Down

0 comments on commit 54f3d8d

Please sign in to comment.