Skip to content

Commit e8faa77

Browse files
committed
Rename mock exec script and make it executable
- That way its implementation can change without modifying the executables call site in the code.
1 parent 43b11bb commit e8faa77

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/secrets/exec.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,9 @@ mod tests {
234234

235235
fn make_test_backend(protocol: ExecVersion) -> ExecBackend {
236236
let command_path = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
237-
.join("tests/behavior/secrets/mock_secrets_exec.py");
237+
.join("tests/behavior/secrets/mock_secrets_exec");
238238
ExecBackend {
239-
command: ["python", command_path.to_str().unwrap()]
240-
.map(String::from)
241-
.to_vec(),
239+
command: [command_path.to_str().unwrap()].map(String::from).to_vec(),
242240
timeout: 5,
243241
protocol,
244242
}

tests/behavior/secrets/mock_secrets_exec.py renamed to tests/behavior/secrets/mock_secrets_exec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python3
2+
13
"""
24
Mock secret manager implementation used for testing the secrets.exec backend type.
35
This program is meant to be exec'ed by a unit test so that the implementation can be tested.

0 commit comments

Comments
 (0)