Commit Graph

65 Commits

Author SHA1 Message Date
joshr
4c2c9a9719 remove diagnostic debug output 2018-09-07 15:48:19 -04:00
joshr
6eedaab489 rename test to show SECRETS_DIR. add debug output. 2018-08-25 10:05:48 -04:00
joshr
2287b3e54e test that $_SECRETS_DIR is set as expected 2018-08-25 09:58:12 -04:00
joshr
4dd04a06e0 comment out old debug code 2018-08-25 08:14:14 -04:00
joshr
1ea3b3139d clarify comment for devs regarding bats TAP diagnostic output 2018-08-18 10:34:48 -04:00
joshr
5d5392232b remove debug code 2018-08-18 10:31:57 -04:00
joshr
645fc2370e change preserve option from -C to -P 2018-08-18 10:09:58 -04:00
joshr
afec23fb17 add test for -C option. fix typos in comments. 2018-08-18 09:17:05 -04:00
joshr
835fe80d8f set permissions when hiding files. change option to -C. 2018-08-18 09:16:50 -04:00
joshr
a090bbddac fix 2018-07-22 23:16:01 -04:00
joshr
cfdca85469 fixes, use _get_encrypted_filename, show TAP diag output 2018-07-22 23:13:12 -04:00
joshr
eb528df301 test permissions 2018-07-22 22:43:37 -04:00
joshr
2e7d6a12a5 add -c (preserve permission) option to reveal. For #172 2018-07-22 16:13:06 -04:00
Josh Rabinowitz
246825c658
fix for keys with only emails, and no usernames. Closes #227 (#240)
* test and fix for keys with only emails, and no usernames. Closes #227
2018-07-17 12:01:16 -04:00
joshr
c141fd4492 test with filenames with spaces 2018-07-14 15:23:17 -04:00
joshr
7096499465 fix quoting for files with spaces. use filenames from _test_base.bats 2018-07-14 15:21:41 -04:00
joshr
7648e2f604 cleanup 2018-07-12 10:22:36 -04:00
joshr
2b28271d8b create a test displaying issue #230 2018-07-12 09:46:49 -04:00
Josh Rabinowitz
5d97c66e90 for testing, use bats-core v1.0.2, not bats 2018-06-20 09:56:25 -04:00
Josh Rabinowitz
553eae53f7
Revert "migrate from bats to bats-core (redux)" 2018-06-19 09:22:56 -04:00
Josh Rabinowitz
bde7a3ca90 migrate from bats to bats-core (redux) 2018-06-13 12:03:25 -04:00
Josh Rabinowitz
bfa3015394
Revert "migrate from bats to bats-core " 2018-06-12 11:24:47 -04:00
joshr
84f9605519 use bats-core 2018-06-09 08:15:32 -04:00
Josh Rabinowitz
c2081514d6 fixes for git secret changes (#160)
* fixes for git secret changes

check that we can find filenames passed on command line, and that
we can find the unencrypted versions of hidden files.

* new test

* add tests
2018-04-21 18:25:38 +03:00
Josh Rabinowitz
deae0d1cd5 'git secret hide' without source files gives appropriate error (#158)
* don't hide files that don't exist decrypted.

and change related error message to 'file not found: filename'.

* ensure all source files are present before hiding

* test for 'add' while unencrypted file missing
2018-04-18 20:56:54 +03:00
joshr
33adc19682 fix test to match _abort() output 2018-04-16 22:24:11 -04:00
Josh Rabinowitz
b626faf472 typos fixed 2018-04-16 11:05:50 -04:00
Josh Rabinowitz
cb64fb15a7 remove unneeded lines 2018-04-14 16:23:13 -04:00
Josh Rabinowitz
7b00d81ea7 change to test CI 2018-04-14 16:14:10 -04:00
Josh Rabinowitz
5c5a49bc3b cleanup 2018-04-14 15:50:38 -04:00
Josh Rabinowitz
50b23c9739 fix 2018-04-14 10:05:27 -04:00
Josh Rabinowitz
d5b1dd7829 test cat with wrong filename 2018-04-14 09:28:05 -04:00
Josh Rabinowitz
29b36ae3a8 remove unneeded code 2018-04-14 08:43:27 -04:00
Josh Rabinowitz
50c9463763 add test for 'git secret cat' 2018-04-14 08:33:57 -04:00
Carlos Hernandez
408b26ee61
Adding test for hide option '-m'. closes #109. 2017-11-27 22:30:39 -07:00
Carlos Hernandez
0cabcbc92a Add alpine to test matrix and fix tests 2017-11-27 10:54:19 -07:00
Carlos Hernandez
1c10408734 Make test compatible with macos ps 2017-11-27 09:52:08 -07:00
Carlos Hernandez
9d1125b1bb Workaround bug in gpg v2.0.22 where rc 2 is return on decryption. 2017-11-27 09:50:38 -07:00
Carlos Hernandez
8a03a41e47 Fixing bug in test_usage 2017-09-25 12:47:39 -06:00
Carlos Hernandez
fea9c3201d Remove left over files from tests 2017-09-23 17:58:25 -06:00
Carlos Hernandez
f9b70fbd16 Added fixes for gnupg >= 2.1 2017-09-13 16:06:16 -06:00
Carlos Hernandez
6ced466a84 Making test compat with gnupg 2.1 2017-09-12 10:49:24 -06:00
Carlos Hernandez
c602db9583 Migrate to exported keys. 2017-09-11 21:06:02 -06:00
Christoph Tavan
078729a0c6
Make hide -d work with secrets in subdirectories
When searching for files to be removed after being hidden we must use
find with -path instead of -name if we want to remove files in
subdirectories as well.
2017-03-09 19:00:29 +01:00
sobolevn
763e130b8d
Adds new strategy on working with the relative paths.
Changes:
1. When adding new file path is normalized in respect to both CWD and repo root
2. All commands now know about that
3. Tests are fixed

Refs #86, #85, #83
2017-03-06 13:14:44 +03:00
sobolevn
8a1fe788f8
Adds fix to the changes command
Changes:
1. Fixes #80, there was a pipe to null, which broke the output
2. Also changed the `diff` formating
3. Also added test case to test deletions
2017-03-06 02:19:50 +03:00
sobolevn
9d0a2ac1c1
Adds fixes to subdirectories bug.
Changes:
1. Fixes #86, now all variables are accessed as functions
2. Fixes #85, now these use cases are working correctly
3. Fixes #83, now init works relative to `.git` folder
4. Closes #77, zsh-plugin is deprecated
5. Refs #53, done some refactoring to tests
6. Closes #82, added additional information to pull-request template
7. Refs #22, plugins are deprecated
8. Also made a lot of improvments into both code and tests
2017-03-06 00:46:49 +03:00
sobolevn
728371912e
Version 0.2.2 pre-release
There are a lot of changes, multiple things were refactored: tests,
some commands, building and meta.

Several critical bugs fixed.

Changes:
1. Fixed #74, when `_user_required` was not working after reimporting keys
2. Closes #73, now it is possible to provide multiple emails to the `killperson` command
3. Closes #72, now it is possible to provide multiple emails to the `tell` command
4. Closes #71, now every doc in this project refer to `git-secret.io` instead of old `gh-pages` website
5. Closes #70, now installation section is removed from main `man` file
6. Closes #69, now "See also" section in the `man`s are clickable
7. Closes #61, added "Manual" section to the manuals
8. Refs #38, added `centos` Dockerfile, but `ci` testing is still failing
9. Refs #52, tests are refactored. Added `clean` command tests, removed a lot of hardcoded things, moved tests execution from `./temp` folder to `/tmp`, added a lot of new check in old tests, and some new test cases
10. Refactored `hide` and `clean` commands to be shorter
11. `shellcheck` is now supported with `make lint`

Additional features are not comming to 0.2.2 after this commit.
2017-02-26 18:10:51 +03:00
Miguel Silvestre
40777fe450 Test changes using multiple files passed as argument 2017-02-21 18:52:02 +00:00
Tim Churchard
1f8a9809a2 Add -d option to hide command to remove unencrypted files. 2017-02-11 19:59:34 +00:00