forked from krysopath/vaultify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
265 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
|
||
run/test: | ||
rm -rf tests/new* assets/* | ||
gpg \ | ||
--symmetric\ | ||
--batch\ | ||
--passphrase=abc\ | ||
-o assets/test.gpg\ | ||
tests/secrets.env | ||
openssl enc \ | ||
-k abc \ | ||
-aes-256-cbc \ | ||
-salt \ | ||
-a \ | ||
-in tests/secrets.env \ | ||
-out assets/test.enc | ||
VAULTIFY_LOG_LEVEL=WARNING python3 runtests.py | ||
|
||
manual: | ||
@groff -man -Tascii man/vaultify.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
hvac>=0.6.4 | ||
pyyaml | ||
PyYAML==3.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import unittest | ||
import doctest | ||
import os | ||
|
||
files = [] | ||
root_dir = 'vaultify/' | ||
|
||
for root, _, filenames in os.walk(root_dir): | ||
for filename in filenames: | ||
if (filename == '__init__.py' | ||
or filename[-3:] != '.py' | ||
or filename.startswith('.#') | ||
): | ||
continue | ||
f = os.path.join(root, filename) | ||
f = f.replace('/', '.') | ||
f = f[:-3] | ||
files.append(f) | ||
|
||
suite = unittest.TestSuite() | ||
for module in files: | ||
suite.addTest(doctest.DocTestSuite(module)) | ||
unittest.TextTestRunner(verbosity=1).run(suite) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
printf "K1=%s\n" "$K1" | ||
printf "K2=%s\n" "$K2" | ||
printf "K3=%s" "$K3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters