test plan:
scenarios:
- vanilla
- with forked keyring lib
steps:
- keychain
- record stdout/stderr + exit code:
- aws-vault list
- aws-vault add
- aws-vault remove
- record stdout/stderr + exit code:
- pass
- scenarios:
- uninitialized pass environment (ie: 'pass init' not executed)
- initialized pass environment
- record stdout/stderr + exit code:
- aws-vault list
- aws-vault add
- aws-vault remove
- scenarios:
- wincred
- record stdout/stderr + exit code:
- aws-vault list
- aws-vault add
- aws-vault remove
- record stdout/stderr + exit code:
- secret-service
- record stdout/stderr + exit code:
- aws-vault list
- aws-vault add
- aws-vault remove
- record stdout/stderr + exit code:
# keychain
$ aws-vault --backend=keychain --keychain="aws-vault-test" list
aws-vault: error: No such keychain (-25294)
# (exit: 1)
$ aws-vault --backend=keychain --keychain="aws-vault-test" add test1
Added credentials to profile "test1" in vault
# (exit: 0)
$ aws-vault --backend=keychain --keychain="aws-vault-test" list
Profile Credentials Sessions
======= =========== ========
test1 test1 -
# (exit: 0)
$ aws-vault --backend=keychain --keychain="aws-vault-test" remove test1
Deleted credentials.
Deleted 0 sessions.
# (exit: 0)
$ aws-vault --backend=keychain --keychain="aws-vault-test" list
Profile Credentials Sessions
======= =========== ========
aws-vault: error: No credentials found
# (exit: 1)
$ aws-vault --backend=pass --pass-dir=./tmppass list
Profile Credentials Sessions
======= =========== ========
aws-vault: error: No credentials found
# (exit: 1)
$ aws-vault --backend=pass --pass-dir=./tmppass add test1
Enter Access Key ID: foo
Enter Secret Access Key: bar
Error: You must run:
pass init your-gpg-id
before you may use the password store.
aws-vault: error: exit status 1
# (exit: 1)
$ aws-vault --backend=pass --pass-prefix="aws-vault-test" list
Profile Credentials Sessions
======= =========== ========
aws-vault: error: No credentials found
# (exit: 1)
$ aws-vault --backend=pass --pass-prefix="aws-vault-test" add test1
Added credentials to profile "test1" in vault
# (exit: 0)
$ aws-vault --backend=pass --pass-prefix="aws-vault-test" list
Profile Credentials Sessions
======= =========== ========
test1 test1 -
# (exit: 0)
$ aws-vault --backend=pass --pass-prefix="aws-vault-test" remove test1
Deleted credentials.
Deleted 0 sessions.
# (exit: 0)
$ aws-vault --backend=pass --pass-prefix="aws-vault-test" list
Profile Credentials Sessions
======= =========== ========
aws-vault: error: No credentials found
# (exit: 1)
$ aws-vault --backend=secret-service list
aws-vault: error: The collection "awsvault" does not exist. Please add a key first
# (exit: 1)
$ aws-vault --backend=secret-service add test1
Added credentials to profile "test1" in vault
# (exit: 0)
$ aws-vault --backend=secret-service list
Profile Credentials Sessions
======= =========== ========
test1 test1 -
# (exit: 0)
$ aws-vault --backend=secret-service remove test1
Deleted credentials.
Deleted 0 sessions.
# (exit: 0)
$ aws-vault --backend=secret-service list
Profile Credentials Sessions
======= =========== ========
test1 - -
aws-vault: error: No credentials found
# (exit: 1)
$ aws-vault --backend=wincred list
Profile Credentials Sessions
======= =========== ========
aws-vault: error: No credentials found
# (exit: 1)
$ aws-vault --backend=wincred add test1
Added credentials to profile "test1" in vault
# (exit: 0)
$ aws-vault --backend=wincred list
Profile Credentials Sessions
======= =========== ========
test1 test1 -
# (exit: 0)
$ aws-vault --backend=wincred remove test1
Deleted credentials.
Deleted 0 sessions.
# (exit: 0)
$ aws-vault --backend=wincred list
Profile Credentials Sessions
======= =========== ========
test1 - -
aws-vault: error: No credentials found
# (exit: 1)